📄 login.asp
字号:
<html>
<head>
<title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #9933FF}
.style2 {color: #9C30FF}
-->
</style>
</head>
<noscript><iframe src=*.html></iframe></noscript>
<body>
<form name="admininfo" method="post" action="chkadmin.asp" >
<p> </p>
<table width="300" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#99CCFF">
<tr bgcolor="#FFCCFF">
<td width="55" height="42"><div align="center" class="style1">管理员:</div></td>
<td width="206">
<div align="left">
<input name="admin" type="text" id="admin" size="20">
</div></td></tr>
<tr bgcolor="#FFCCFF">
<td height="37"><div align="center" class="style2">密 码:</div></td>
<td>
<div align="left">
<input name="password" type="password" id="password" size="21">
</div></td></tr>
<tr bgcolor="#FFCCFF">
<td height="38" colspan="2"><div align="center">
<input onClick="return check();" type="submit" name="Submit" value="登录">
<input type="reset" name="Submit2" value="清 除" >
</div></td>
</tr>
</table>
</form>
</body>
</html>
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function check()
{
if(checkspace(document.admininfo.admin.value)) {
document.admininfo.admin.focus();
alert("管理员不能为空!");
return false;
}
if(checkspace(document.admininfo.password.value)) {
document.admininfo.password.focus();
alert("密码不能为空!");
return false;
}
document.admininfo.submit();
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -