Revista Humor

Código de Calculadora para tu Web

Por Jarol19


<html><head> <script language="LiveScript"></script> </head> <body bgcolor="white"> <form><table border="5" align="center"><tr align="center"><td colspan="4"> <table border="3"><tr><td align="center"><input name="display" value="0" size="20" /></td></tr></table> </td></tr> <tr align="center"><td><input type="button" value=" 7 " onclick="addChar(this.form.display, '7')" /></td><td><input type="button" value=" 8 " onclick="addChar(this.form.display, '8')" /></td><td><input type="button" value=" 9 " onclick="addChar(this.form.display, '9')" /></td><td><input type="button" value=" / " onclick="addChar(this.form.display, '/')" /></td></tr> <tr align="center"><td><input type="button" value=" 4 " onclick="addChar(this.form.display, '4')" /></td><td><input type="button" value=" 5 " onclick="addChar(this.form.display, '5')" /></td><td><input type="button" value=" 6 " onclick="addChar(this.form.display, '6')" /></td><td><input type="button" value=" * " onclick="addChar(this.form.display, '*')" /></td></tr> <tr align="center"><td><input type="button" value=" 1 " onclick="addChar(this.form.display, '1')" /></td><td><input type="button" value=" 2 " onclick="addChar(this.form.display, '2')" /></td><td><input type="button" value=" 3 " onclick="addChar(this.form.display, '3')" /></td><td><input type="button" value=" - " onclick="addChar(this.form.display, '-')" /></td></tr> <tr align="center"><td><input type="button" value=" 0 " onclick="addChar(this.form.display, '0')" /> </td><td><input type="button" value=" . " onclick="addChar(this.form.display, '.')" /> </td><td><input type="button" value=" +/- " onclick="changeSign(this.form.display)" /></td><td><input type="button" value=" + " onclick="addChar(this.form.display, '+')" /></td></tr> <tr align="center"><td><input type="button" value=" ( " onclick="addChar(this.form.display, '(')" /> </td><td><input type="button" value=" ) " onclick="addChar(this.form.display, ')')" /> </td><td><input type="button" value=" sq " onclick="if (checkNum(this.form.display.value)) { square(this.form) }" /></td><td><input type="button" value=" <- " /><- " onClick="deleteChar(this.form.display)"></td></tr> <tr align="center"><td colspan="2"><input type="button" value=" Invio " name="enter" onclick="if (checkNum(this.form.display.value)) { compute(this.form) }" /></td><td colspan="2"><input type="button" value=" C " onclick="this.form.display.value = 0 " /></td></tr></table></form> </body></html>
el código para insertar en tu página

Volver a la Portada de Logo Paperblog