yassmin

Untitled

May 12th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <!douctype html>
  2. <html>
  3. <head>
  4. <style>
  5. #log {
  6. text-align: center;
  7. }
  8. #reg {
  9. text-align: center;
  10. }
  11. </style>
  12. <script>
  13. function showlog() {
  14. var e = document.getElementById("log");
  15. var x = document.getElementById("but");
  16. e.style.display = 'block';
  17. x.style.display = 'none';
  18.  
  19. }
  20. function showreg() {
  21. var e = document.getElementById("reg");
  22. var x = document.getElementById("but");
  23. e.style.display = 'block';
  24. x.style.display = 'none';
  25.  
  26. }
  27. </script>
  28. </head>
  29. <body style="background-color:rgb(144, 237, 234);">
  30. <form action="login" method="POST">
  31. <dive id = log style="display:none">
  32. Email:<br>
  33. <input type="text" name="Email" ><br>
  34. password:<br>
  35. <input type="password" ><br>
  36. <input type="submit" value="Submit">
  37. </dive>
  38. </form>
  39. <form action="register" method="POST">
  40. <dive id = reg style="display:none">
  41. Your name:<br>
  42. <input type="text" name = "Your_name"><br>
  43. Email:<br>
  44. <input type="text" name="Email" ><br>
  45. password:<br>
  46. <input type="password" ><br>
  47. <input type="submit" value="Submit">
  48. </dive>
  49. </form>
  50. <dive id = but style="display:block">
  51. <button type="submit" onclick="showlog()">login</button>
  52. <button type="submit" onclick="showreg()">register</button>
  53. </dive>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment