daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Sep 25th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <HTML>
  2. <head>
  3.     <style>
  4.     input[type=button]{
  5.     margin: 1px 1px 1px 1px;
  6.     height: 50px;
  7.     width: 50px;
  8.     border: 2px solid brown;
  9.     font-size: 30px;
  10.     }
  11.     input[type=text]{
  12.     height: 50px;
  13.     width: 225px;
  14.     border: 2px solid black;
  15.     margin-bottom: 10px;
  16.     font-size: 30px;
  17.     font-color: black;
  18.     }
  19. </style>
  20.     <script type="text/javascript">
  21.     function displynum(n1) {
  22.     calcform.txt1.value=calcform.txt1.value+n1;
  23.     }
  24. </script>
  25. </head>
  26. <body>
  27.  
  28.     <div style=" width: 220px; padding:5px; height:43%; align2 ;  background-color: lightblue";>
  29.    
  30.         <form name=calcform>
  31.  
  32.     <input type=text placeholder="0" name=txt1 style="text-align:right; width: 220px">
  33.     <br>
  34.     <input type=button name=btn9 value=9 onclick="displynum(btn9.value)">
  35.     <input type=button name=btn8 value=8 onclick="displynum(btn8.value)">
  36.     <input type=button name=btn7 value=7 onclick="displynum(btn7.value)">
  37.     <input type=button name=addbtn value=+ onclick="displynum(addbtn.value)">
  38.     <br>
  39.     <input type=button name=btn6 value=6 onclick="displynum(btn6.value)">
  40.     <input type=button name=btn5 value=5 onclick="displynum(btn5.value)">
  41.     <input type=button name=btn4 value=4 onclick="displynum(btn4.value)">
  42.     <input type=button name=subbtn value=- onclick="displynum(subbtn.value)">
  43.     <br>
  44.     <input type=button name=btn3 value=3 onclick="displynum(btn3.value)">
  45.     <input type=button name=btn2 value=2 onclick="displynum(btn2.value)">
  46.     <input type=button name=btn1 value=1 onclick="displynum(btn1.value)">
  47.     <input type=button name=btnmul value=* onclick="displynum(btnmul.value)">
  48.     <br>
  49.     <input type=button name=btn0 value=0 onclick="displynum(btn0.value)">
  50.     <input type=button name=potbtn value=. onclick="displynum(potbtn.value)">    
  51.     <input type=button name=eqlbtn value="=" onclick="txt1.value=eval(txt1.value)">
  52.     <input type=button name=divbtn value=/ onclick="displynum(divbtn.value)">
  53.     </form>
  54.     </div>
  55. </body>
  56. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top