Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Semplice Calcolatrice Javascript - BuzzCalculator.html

BuzzCalculator.html

Caricato da: A_butta
Scarica il programma completo

  1. <html>
  2. <head>
  3. <b><title>BuzzCalculator 1.0</title></b>
  4. <script language="javascript" src="script.js"></script>
  5. </head>
  6. <body
  7. bgcolor='#99FF33'
  8. >
  9.  
  10. <input
  11. type="textbox"
  12. style='background-color:yellow'
  13. value=""
  14. disabled=true
  15. id='display'
  16. style='width:125px'
  17. >
  18. <br>
  19. <input
  20. style="width:30px"
  21. type="button"
  22. id="btn1"
  23. value="1"
  24. onclick='getElementById("display").value=getElementById("display").value+"1"'
  25. onMouseOver='this.style.background="00CCFF"'
  26. onMouseOut='this.style.background=""'
  27. >
  28.  
  29. <input
  30. style="width:30px"
  31. type="button"
  32. id="btn2"
  33. value="2"
  34. onclick='getElementById("display").value=getElementById("display").value+"2"'
  35. onMouseOver='this.style.background="00CCFF"'
  36. onMouseOut='this.style.background=""'
  37. >
  38.  
  39.  
  40. <input
  41. style="width:30px"
  42. type="button"
  43. id="btn3"
  44. value="3"
  45. onclick='getElementById("display").value=getElementById("display").value+"3"'
  46. onMouseOver='this.style.background="00CCFF"'
  47. onMouseOut='this.style.background=""'>
  48.  
  49. <input
  50. style="width:30px"
  51. type="button"
  52. id="btn+"
  53. value="+"
  54. onclick='a=parseFloat(getElementById("display").value); op="+"; getElementById("display").value=""'
  55. onMouseOver='this.style.background="00CCFF"'
  56. onMouseOut='this.style.background=""'> <br>
  57.  
  58. <input
  59. style="width:30px"
  60. type="button"
  61. id="btn4"
  62. value="4"
  63. onclick='getElementById("display").value=getElementById("display").value+"4"'
  64. onMouseOver='this.style.background="00CCFF"'
  65. onMouseOut='this.style.background=""'>
  66.  
  67. <input
  68. style="width:30px"
  69. type="button"
  70. id="btn5"
  71. value="5"
  72. onclick='getElementById("display").value=getElementById("display").value+"5"'
  73. onMouseOver='this.style.background="00CCFF"'
  74. onMouseOut='this.style.background=""'>
  75.  
  76. <input
  77. style="width:30px"
  78. type="button"
  79. id="btn6"
  80. value="6"
  81. onclick='getElementById("display").value=getElementById("display").value+"6"'
  82. onMouseOver='this.style.background="00CCFF"'
  83. onMouseOut='this.style.background=""'>
  84.  
  85. <input
  86. style="width:30px"
  87. type="button"
  88. id="btn-"
  89. value="-"
  90. onclick='a=parseFloat(getElementById("display").value); op="-"; getElementById("display").value=""'
  91. onMouseOver='this.style.background="00CCFF"'
  92. onMouseOut='this.style.background=""'><br>
  93.  
  94. <input
  95. style="width:30px"
  96. type="button"
  97. id="btn7"
  98. value="7"
  99. onclick='getElementById("display").value=getElementById("display").value+"7"'
  100. onMouseOver='this.style.background="00CCFF"'
  101. onMouseOut='this.style.background=""'>
  102.  
  103. <input
  104. style="width:30px"
  105. type="button"
  106. id="btn8"
  107. value="8"
  108. onclick='getElementById("display").value=getElementById("display").value+"8"'
  109. onMouseOver='this.style.background="00CCFF"'
  110. onMouseOut='this.style.background=""'>
  111.  
  112. <input
  113. style="width:30px"
  114. type="button"
  115. id="btn9"
  116. value="9"
  117. onclick='getElementById("display").value=getElementById("display").value+"9"'
  118. onMouseOver='this.style.background="00CCFF"'
  119. onMouseOut='this.style.background=""'>
  120.  
  121. <input
  122. style="width:30px"
  123. type="button"
  124. id="btn*"
  125. value="*"
  126. onclick='a=parseFloat(getElementById("display").value); op="*"; getElementById("display").value=""'
  127. onMouseOver='this.style.background="00CCFF"'
  128. onMouseOut='this.style.background=""'><br>
  129.  
  130. <input
  131. style="width:30px"
  132. type="button"
  133. id="btns"
  134. value="+/-"
  135. onclick='getElementById("display").value=getElementById("display").value+"1"'
  136. onMouseOver='this.style.background="00CCFF"'
  137. onMouseOut='this.style.background=""'>
  138.  
  139. <input
  140. style="width:30px"
  141. type="button"
  142. id="btn0"
  143. value="0"
  144. onclick='if (del == true) getElementById("btnCancel").click(); getElementById("display").value=getElementById("display").value+"0"'
  145. onMouseOver='this.style.background="00CCFF"'
  146. onMouseOut='this.style.background=""'>
  147.  
  148. <input
  149. style="width:30px"
  150. type="button"
  151. id="btnp"
  152. value="."
  153. onclick='segno()'
  154. onMouseOver='this.style.background="00CCFF"'
  155. onMouseOut='this.style.background=""'>
  156.  
  157. <input
  158. style="width:30px"
  159. type="button"
  160. id="btn/"
  161. value="/"
  162. onclick='a=parseFloat(getElementById("display").value); op="/"; getElementById("display").value=""'
  163. onMouseOver='this.style.background="00CCFF"'
  164. onMouseOut='this.style.background=""'><br>
  165.  
  166. <input
  167. style="width:132px"
  168. type="button"
  169. id="btn="
  170. value="="
  171. onclick='operazione()'
  172. style="this.style.backgroundColor=#E45601"
  173. onMouseOver='this.style.background="00CCFF"'
  174. onMouseOut='this.style.background=""'><br>
  175.  
  176. <input
  177. style="width:132px"
  178. type="button"
  179. id="btnCancel"
  180. value="Cancel"
  181. onclick='cancel()'
  182. onMouseOver='this.style.background="00CCFF"'
  183. onMouseOut='this.style.background=""'><br>
  184.  
  185. </body>
  186. </html>