![]() |
|
![]() |
|
#1
|
||||
|
||||
|
aki les traigo un codigo html para los que teien web y les da hueva sacar la calculadora
Cita:
__________________
.:..:.guilib@aldo..:..: ![]()
Última edición por guilibaldo; 22-may-2009 a las 23:56 |
| Anuncios |
|
|
|
#2
|
||||
|
||||
|
Hola Guilibaldo
Gracias por el Aporte.. pero digame una cosa.. ¿usted ha probado este script? porque si finaliza: Código HTML:
// End --> </script>
Código HTML:
<---START SCRIPT--->
Código HTML:
<script type="text/javascript" src=" a mi me salen tablas sin sentido y sin orden ¿a usted que le sale? a mi me sale esto:
__________________
. Una vida feliz consiste en tener tranquilidad de espíritu "Ciceron". ![]() ![]() Leer las Reglas Aquí ->http://www.fooros.com/Reglas.html |
|
#3
|
||||
|
||||
|
yo tampoco puedo ponerlo.. incluso probe con el dreamwaver para que trate de compilarlo de alguna forma pero no puedo ...
Si podes arreglaro ..Saludos!
__________________
============================ .....::::: HAKU :::::..... ¿Por qué pondrán restricciones de edad en Internet si basta con pinchar en 'Sí, tengo 18'? ¡Hasta los chicos de 17 saben eso!» ![]() ![]() --------------------------------------------------------------------------------------------------------------------------------Gregory House |
|
#4
|
||||
|
||||
|
el problema es q estan pegados los comentarios eso es todo no desesperen compañeros
![]() aqui ta el texto completo y corregido Código HTML:
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Calculadora</title> </head> <form action name="Keypad"> <b> <div align="center"> <table border="2" cellpadding="1" cellspacing="5" height="60" width="50"> <tbody> <tr> <td align="middle" colspan="3"><input name="ReadOut" size="24" value="0" width="100%" style="text-align: right" /></td> <td> </td> <td align="center"><input name="btnClear" onclick="Clear()" type="button" value=" C " /></td> <td align="center"><input name="btnClearEntry" onclick="ClearEntry()" type="button" value=" CE " /></td> </tr> <tr> <td align="center"><input name="btnSeven" onclick="NumPressed(7)" type="button" value=" 7 " /></td> <td align="center"><input name="btnEight" onclick="NumPressed(8)" type="button" value=" 8 " /></td> <td align="center"><input name="btnNine" onclick="NumPressed(9)" type="button" value=" 9 " /></td> <td align="center"> </td> <td align="center"><input name="btnNeg" onclick="Neg()" type="button" value=" +/- " /></td> <td align="center"><input name="btnPercent" onclick="Percent()" type="button" value=" % " /></td> </tr> <tr> <td align="center"><input name="btnFour" onclick="NumPressed(4)" type="button" value=" 4 " /></td> <td align="center"><input name="btnFive" onclick="NumPressed(5)" type="button" value=" 5 " /></td> <td align="center"><input name="btnSix" onclick="NumPressed(6)" type="button" value=" 6 " /></td> <td align="center"> </td> <td align="center"><input name="btnPlus" onclick="Operation('+')" type="button" value=" + " /></td> <td align="center"><input name="btnMinus" onclick="Operation('-')" type="button" value=" - " /></td> </tr> <tr> <td align="center"><input name="btnOne" onclick="NumPressed(1)" type="button" value=" 1 " /></td> <td align="center"><input name="btnTwo" onclick="NumPressed(2)" type="button" value=" 2 " /></td> <td align="center"><input name="btnThree" onclick="NumPressed(3)" type="button" value=" 3 " /></td> <td align="center"> </td> <td align="center"><input name="btnMultiply" onclick="Operation('*')" type="button" value=" * " /></td> <td align="center"><input name="btnDivide" onclick="Operation('/')" type="button" value=" / " /></td> </tr> <tr> <td align="center"><input name="btnZero" onclick="NumPressed(0)" type="button" value=" 0 " /></td> <td align="center"><input name="btnDecimal" onclick="Decimal()" type="button" value=" . " /></td> <td colspan="3" align="center"><b>KALIRO^_^</b> </td> <td align="center"><input name="btnEquals" onclick="Operation('=')" type="button" value=" = " /></td> </tr> </tbody> </table> </div> </b> </form> <script language="JavaScript"> <!-- modifica este script para tu uso --> <!-- puedes cambiar tamaño y color de botones y fondo --> var FKeyPad = document.Keypad; var Accum = 0; var FlagNewNum = false; var PendingOp = ""; function NumPressed (Num) { if (FlagNewNum) { FKeyPad.ReadOut.value = Num; FlagNewNum = false; } else { if (FKeyPad.ReadOut.value == "0") FKeyPad.ReadOut.value = Num; else FKeyPad.ReadOut.value += Num; } } function Operation (Op) { var Readout = FKeyPad.ReadOut.value; if (FlagNewNum && PendingOp != "="); else { FlagNewNum = true; if ( '+' == PendingOp ) Accum += parseFloat(Readout); else if ( '-' == PendingOp ) Accum -= parseFloat(Readout); else if ( '/' == PendingOp ) Accum /= parseFloat(Readout); else if ( '*' == PendingOp ) Accum *= parseFloat(Readout); else Accum = parseFloat(Readout); FKeyPad.ReadOut.value = Accum; PendingOp = Op; } } function Decimal () { var curReadOut = FKeyPad.ReadOut.value; if (FlagNewNum) { curReadOut = "0."; FlagNewNum = false; } else { if (curReadOut.indexOf(".") == -1) curReadOut += "."; } FKeyPad.ReadOut.value = curReadOut; } function ClearEntry () { FKeyPad.ReadOut.value = "0"; FlagNewNum = true; } function Clear () { Accum = 0; PendingOp = ""; ClearEntry(); } function Neg () { FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1; } function Percent () { FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum); } End </script> </body> </html> saludos Última edición por kaliro; 22-may-2009 a las 23:51 |
| Este usuario kaliro ha agradecido este post: | ||
hippy (23-may-2009) | ||
|
#5
|
||||
|
||||
|
Ahora si
ya tiene un sentido y se puede modificar a placer ![]() ![]() Gracias Kaliro desde un principio le ví complicado para mis minímos conocimientos y como empezaba-> Código HTML:
<form action name=" me fastidia mucho cuando no puedo resolver o modificar <blink>y pasa el tiempo y ya lo dejo por imposible!!</blink> para quien pueda estar interesado siempre es útil tener información y datos: http://sestud.uv.es/manual.esp/ ![]() Como aporte le dejo un pequeño tesoro a tod@s
__________________
. Una vida feliz consiste en tener tranquilidad de espíritu "Ciceron". ![]() ![]() Leer las Reglas Aquí ->http://www.fooros.com/Reglas.html Última edición por hippy; 23-may-2009 a las 03:51 |
|
#6
|
|||
|
|||
|
Hola, Kaliro:
Tomé el código, de la calculadora, corregido y salió bien, pero puse 120 /4 y no me dió respuesta. Así que No Va. Se ve que existe otro problema. Si lo podes arreglar, gracias. Saludos. Kubic Aster. |
![]() |
| Herramientas | |
| Desplegado | |
|
|