Prikazi cijelu temu 11.02.2015 16:56
zxz Van mreze
Administrator
Registrovan od:03.02.2009
Lokacija:Tuzla


Predmet:Kalkulator
PreuzmiIzvorni kôd (PHP):
  1. <html>
  2. <head>
  3. <title>Kalkulator</title>
  4. </head>
  5. <body>
  6. <FORM NAME="Calc">
  7. <TABLE BORDER=2>
  8. <TR>
  9. <TD>
  10. <INPUT TYPE="text"   NAME="Input" Size="16">
  11. <br>
  12. </TD>
  13. </TR>
  14. <TR>
  15. <TD>
  16. <INPUT TYPE="button" NAME="one"   VALUE="  1  " OnClick="Calc.Input.value += '1'">
  17. <INPUT TYPE="button" NAME="two"   VALUE="  2  " OnCLick="Calc.Input.value += '2'">
  18. <INPUT TYPE="button" NAME="three" VALUE="  3  " OnClick="Calc.Input.value += '3'">
  19. <INPUT TYPE="button" NAME="plus"  VALUE="  +  " OnClick="Calc.Input.value += ' + '">
  20. <br>
  21. <INPUT TYPE="button" NAME="four"  VALUE="  4  " OnClick="Calc.Input.value += '4'">
  22. <INPUT TYPE="button" NAME="five"  VALUE="  5  " OnCLick="Calc.Input.value += '5'">
  23. <INPUT TYPE="button" NAME="six"   VALUE="  6  " OnClick="Calc.Input.value += '6'">
  24. <INPUT TYPE="button" NAME="minus" VALUE="  -  " OnClick="Calc.Input.value += ' - '">
  25. <br>
  26. <INPUT TYPE="button" NAME="seven" VALUE="  7  " OnClick="Calc.Input.value += '7'">
  27. <INPUT TYPE="button" NAME="eight" VALUE="  8  " OnCLick="Calc.Input.value += '8'">
  28. <INPUT TYPE="button" NAME="nine"  VALUE="  9  " OnClick="Calc.Input.value += '9'">
  29. <INPUT TYPE="button" NAME="times" VALUE="  x  " OnClick="Calc.Input.value += ' * '">
  30. <br>
  31. <INPUT TYPE="button" NAME="clear" VALUE="  c  " OnClick="Calc.Input.value = ''">
  32. <INPUT TYPE="button" NAME="zero"  VALUE="  0  " OnClick="Calc.Input.value += '0'">
  33. <INPUT TYPE="button" NAME="DoIt"  VALUE="  =  " OnClick="Calc.Input.value = eval(Calc.Input.value)">
  34. <INPUT TYPE="button" NAME="div"   VALUE="  /  " OnClick="Calc.Input.value += ' / '">
  35. <br>
  36. </TD>
  37. </TR>
  38. </TABLE>
  39. </FORM>
  40. </body>
  41. </html>

Podrska samo putem foruma, jer samo tako i ostali imaju koristi od toga.