Advertisement
Guest User

hahahdjrirjxjd

a guest
May 29th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <meta charset="UTF-8" >
  5. <title> suma liczb</title>
  6. <style>
  7. body{background-color:blue;
  8. color: white;
  9. font-size:1.5em;
  10. }
  11. input{
  12. height:20px;
  13. margin:6px;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <h1>Suma liczb</h1>
  19. <form>
  20. Podaj pierwszą liczbę: <input id="liczba1" autofocus type="text" ><br> Podaj drugą liczbę:<input id="liczba2" type="text" ><br>
  21. <input type="button" onclick="obliczSume()" value="oblicz sumę "><input id="suma" type="text" disabled> <input type="reset" value="wyczysc pola">
  22. </form>
  23. <script>
  24. function obliczSume(){
  25. var n1=parseInt(document.getElementById("lic­zba1").value);
  26. var n2=parseInt(document.getElementById("lic­zba2").value); document.getElementById("suma").value=n1+n2;
  27. }
  28. </script>
  29. </body>
  30. </html>
  31. 12 minutes ago · Sent from Web
  32. Adrian Bernatek
  33. zad4
  34. 12 minutes ago · Sent from Web
  35. Adrian Bernatek
  36. <head>
  37. <meta http-equiv="Content-type" content="text/html; Windows-1250"/> <meta name="lang" content="pl"/>
  38. </head>
  39. <body>
  40. <h2>Podaj imię</h1>
  41. <hr/>
  42. <form action="" method="GET">
  43. <label>Podaj imię:<br/>
  44. <input type="text" name="imie"/>
  45. </label> <label>Nazwisko: <input type="text" name="nazwisko"/> </label>
  46. <button type="submit">Wyślij</button>
  47. </form>
  48. </body>
  49. </html>
  50. Just now · Sent from Web
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement