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

📄 登陆界面.html

📁 个人主页
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript">
function check(){
    var UserID=document.form1.UserID.value;
	var Password=document.form1.Password.value;
	if (UserID=='' || Password==''){
		alert('用户名或密码为空,请重新填写');
		return false;
	}
	if (Password.length<=6){
		alert('密码太少,请用6位以上');
		return false;
	}
	if (UserID=="" && Password.lenght>=6)
	{
		//document.write("登陆成功");
		return true;
	}
}
function test_location(){
    window.location="注册界面.html";
	}
 </script>
<style type="text/css">
h2{color:#009900;
   font-family:"宋体";
   font-size:36px;
    }	
body {
	background-color: #CCCCFF;
}	   
</style>
<title>邮箱登陆界面</title>
</head>

<body onsubmit="return mycheck()">
<form id="form1" name="form1" method="post" action="登陆成功.html"  onsubmit="return check()">
  <table width="760" border="0">
	 <tr>
     <td height="84" colspan="2" align="center"><h2>邮 箱 登 陆 注 册 界 面</h2></td>
    </tr>
    <tr>
      <td width="241" height="113"><div align="right">用户名:</div></td>
      <td width="509"><label>
        
        <div align="left">
          <input name="UserID" type="text" id="UserID" size="27" maxlength="20"/>
          </label>
      </div></td>
    </tr>
    <tr>
      <td height="113"><div align="right">密码:</div></td>
      <td><label>
        
        <div align="left">
          <input name="Password" type="password" id="Password" size="27" maxlength="20"/>
          </label>
      </div></td>
    </tr>
    <tr>
      <td height="234" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

	  <input type="submit" name="submit" value="提 交" id="submit"/>
        <label>
        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value="重 置" />
       
         &nbsp;&nbsp;&nbsp;&nbsp;<input name="Submit2" type="button" id="Submit2" value="注 册" onclick="test_location()" />
        </label></td>
    </tr>
  </table>

 
 </form>
</body>
</html>

⌨️ 快捷键说明

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