Advertisement
Mochinov

Untitled

Mar 5th, 2021
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.78 KB | None | 0 0
  1.  
  2. <!DOCTYPE HTML>
  3.  
  4. <html>
  5.  
  6. <head>
  7.  
  8. <title>Router</title>
  9.  
  10. <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
  11.  
  12. <meta http-equiv=Content-Type content="text/html; charset=UTF-8">
  13.  
  14. <link rel="stylesheet" href="reset.css">
  15.  
  16. <link rel="stylesheet" href="base.css">
  17.  
  18. <link rel="stylesheet" href="style.css">
  19.  
  20.  
  21.  
  22.  
  23. <script language=javascript>
  24.  
  25. function onlogin() {
  26.   if(document.test.username.value.length <= 0) {
  27.   alert("Пожалуйста, введите имя пользователя!");
  28.   document.test.username.focus();
  29.   return false;
  30.  }
  31.  
  32.  if(document.test.password.value.length <= 0) {
  33.   alert("Пожалуйста, введите пароль!");
  34.   document.test.password.focus();
  35.   return false;
  36.  }
  37.  
  38.  return true;
  39. }
  40.  
  41. function frmLoad() {
  42.    document.test.username.focus();
  43. }
  44.  
  45. </script>
  46.  
  47.  
  48. </head>
  49.  
  50. <body onload=frmLoad() id="login_body">
  51.  
  52. <form action="login.cgi" method=POST name="test" autocomplete="off" >
  53.  
  54. <div class="loginBox">
  55.  
  56.  <div class="login_left_bg"></div>
  57.  
  58.  <div class="loginCtr">
  59.  
  60.   <h2>Авторизация</h2>
  61.   <table>
  62.  
  63.    <tr>
  64.  
  65.     <td>Имя пользователя:</td>
  66.     <td><input type="text" id="username" name="username" maxlength="64"></td>
  67.  
  68.    </tr>
  69.  
  70.    <tr>
  71.  
  72.     <td>Пароль:</td>
  73.     <td><input name="password" id="password" type="password" maxlength="64"></td>
  74.  
  75.    </tr>
  76.  
  77.   </table>
  78.  
  79.   <div class="login_btn">
  80.  
  81.    <input id="loginBtn" onclick="return onlogin()" type="submit" value="Войти" class="link_bg">
  82.    <input id="rewBtn" type="reset" value="Сбросить" class="link_bg" autocomplete="off" >
  83.    <input type="hidden" name="submit.htm?login.htm" value="Send">
  84.  
  85.   </div>
  86.  
  87.  </div>
  88.  
  89.  <div class="login_right_bg"></div>
  90.  
  91. </div>
  92.  
  93. </form>
  94.  
  95. </body>
  96.  
  97. </html>
  98.  
  99.  
  100.  
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement