⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.html

📁 shooting flash game with script
💻 HTML
字号:
<html>
  <head>
    <style>
      body { font-family: Verdana; font-size: 18; font-weight: bold; color: red; text-align: center; }
      input { font-family: Verdana; font-size: 16; }
    </style>
    <script>
        
        function checkInput() {
            var input_field = document.getElementById("name");
            var input = input_field.getAttribute("value");
            if (input.length == 0) {
                alert("Please enter a name!");
                return false;
            }
            var reg = new RegExp("\\W");
            if (input.match(reg)) {
                alert("Invalid user name!\nPlease don't use space and the following characters.\n\"\':;<>()[]{}!@#$%^&*-+=");
                return false;
            }
            return true;
        }
    </script>
  </head>
  <body bgcolor="#CCCCFF">
    <form method="POST" action="login.php" onsubmit="return checkInput();">
      <p>
        Please enter your user name:
        <input name="name" id="name" type="text" size="10" maxlength="10" />&nbsp;

 	 <select name="agentname">
            <option selected>Merlin</option>
            <option>Peedy</option>
            <option>Genie</option>
            <option>Robby</option>
        </select>

      </p>
      <input type="submit" value="Go!">
    </form>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -