Código HTML:
Ver original
<%-- Document : Calculadora Created on : 03-jun-2012, 11:00:15 Author : @Velandia --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> @import url('EstilosCalculadora.css'); </style> </head> <body> <div id="global_container"> <form> <table border="5" align=center> <tr align="center"> <td colspan = 4> <table border="3"> <tr> </tr> </table> </td> </tr> <tr align=center> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 7 " onClick="System.out.print(this.form.display, '7')"/> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 8 " onClick="addChar(this.form.display, '8')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 9 " onClick="addChar(this.form.display, '9')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" / " onClick="addChar(this.form.display, '/')"> </label> </td> </tr> <tr align=center> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 4 " onClick="addChar(this.form.display, '4')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 5 " onClick="addChar(this.form.display, '5')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 6 " onClick="addChar(this.form.display, '6')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" * " onClick="addChar(this.form.display, '*')"> </label> </td> </tr> <tr align=center> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 1 " onClick="addChar(this.form.display, '1')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 2 " onClick="addChar(this.form.display, '2')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 3 " onClick="addChar(this.form.display, '3')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" - " onClick="addChar(this.form.display, '-')"> </label> </td> </tr> <tr align=center> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" 0 " onClick="addChar(this.form.display, '0')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" . " onClick="addChar(this.form.display, '.')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" +/- " onClick="changeSign(this.form.display)"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" + " onClick="addChar(this.form.display, '+')"> </label> </td> </tr> <tr align=center> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" ( " onClick="addChar(this.form.display, '(')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" ) " onClick="addChar(this.form.display, ')')"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" sq " onClick="if (checkNum(this.form.display.value)) { square(this.form) }"> </label> </td> <td> <label class="uiButton uiButtonConfirm" for="uc5md2_3"> <input id="uc5md2_3" type="button" value=" <- " onClick="deleteChar(this.form.display)"> </label> </td> </tr> <tr align=center> <td colspan="2"> <label class="uiButton uiButtonSpecial" for="gxz_4124"> <input id="gxz_4124" type="button" value=" Invio " name="enter" onClick="if (checkNum(this.form.display.value)) { compute(this.form) }"> </label> </td> <td colspan="2"> <label class="uiButton uiButtonSpecial" for="gxz_4124"> <input id="gxz_4124" type="button" value=" C " onClick="this.form.display.value = 0 "> </label> </td> </tr> </table> </form> </div </body> </html>