ahmed0saber

Log in and Sign up 2 in html css js

May 1st, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>Log in and Sign up</title>
  4. <style>
  5.  
  6. #log {display:none;}
  7. #sign {display:none;}
  8.  
  9. div{
  10. background-color:#B8EEF8;
  11. box-shadow: 5px 5px 10px #000000;}
  12.  
  13. #b1{
  14. background-color: white;
  15. color: black;
  16. border: 2px solid #4CAF50;
  17. transition-duration: 0.5s;
  18. cursor: pointer;
  19. border-radius:5px;}
  20. #b1:hover {background-color: #4CAF50;
  21. color: white;
  22. border: 2px solid black;}
  23.  
  24. #b2{
  25. background-color: white;
  26. color: black;
  27. border: 2px solid #008CBA;
  28. transition-duration: 0.5s;
  29. cursor: pointer;
  30. border-radius:5px;}
  31. #b2:hover {background-color: #008CBA;
  32. color: white;
  33. border: 2px solid black;}
  34.  
  35. #b3{
  36. background-color: white;
  37. color: black;
  38. border: 2px solid #FF0000;
  39. transition-duration: 0.5s;
  40. cursor: pointer;
  41. border-radius:5px;}
  42. #b3:hover {background-color: #FF0000;
  43. color: white;
  44. border: 2px solid black;}
  45.  
  46. input[type=text],input[type=password]{
  47. margin: 5px 30px;
  48. padding-left: 10px;
  49. height: 30px;
  50. width: 200px;
  51. border-radius:25px;}
  52.  
  53. input[type=button]{
  54. height: 40px;
  55. width: 60px;
  56. margin-left: 30px;}
  57.  
  58. button{
  59. height: 40px;
  60. width: 40px;
  61. margin-left: 50px;
  62. font-size: 20px;}
  63.  
  64. </style>
  65. <script>
  66. function over1(){document.getElementById("log").style.display = "block";
  67. document.getElementById("sign").style.display = "none";}
  68.  
  69. function over2(){document.getElementById("sign").style.display = "block";
  70. document.getElementById("log").style.display = "none";}
  71.  
  72. function over3(){document.getElementById("sign").style.display = "none";
  73. document.getElementById("log").style.display = "none";}
  74. </script>
  75. </head>
  76. <body>
  77. <form>
  78.  
  79. <div id="d1" width="100%" height="100%"><br/>
  80. <input type="button" value="Log in" onmouseover="over1()" id="b1">
  81. <input type="button" value="Sign up" onmouseover="over2()" id="b2">
  82. <button onmouseover"over3()" id="b3">x</button>
  83. <br/><br/></div><br>
  84.  
  85. <div id="log">
  86. <input type="text" placeholder="email"/><br/>
  87. <input type="password" placeholder="password"/><br/>
  88. </div>
  89.  
  90. <div id="sign">
  91. <input type="text" placeholder="username"/><br/>
  92. <input type="text" placeholder="email"/><br/>
  93. <input type="password" placeholder="password"/><br/>
  94. <input type="password" placeholder="confirm password"/><br/>
  95. </div>
  96.  
  97. </form>
  98. </body>
  99. </html>
Advertisement
Add Comment
Please, Sign In to add comment