📄 index.asp
字号:
<%
'产生随机验证码
dim rndnum,verifycode
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
loop
session("verifycode")=rndnum
%>
<html>
<head>
<title>后台登录页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.style1 {color: #FF0000}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_setTextOfTextfield(objName,x,newText) { //v3.0
var obj = MM_findObj(objName); if (obj) obj.value = newText;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p> </p>
<form name="form1" method="post" action="check.asp?action=login">
<table width="630" height="415" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr valign="bottom">
<td colspan="4"><img src="images/wuliu.jpg" width="630" height="223"></td>
</tr>
<tr>
<td rowspan="4" valign="top"> <img src="images/h_02.gif" width="221" height="192" alt=""></td>
<td colspan="2" background="images/h_03.gif"><table width="100%" border="0">
<tr>
<td width="28%">用户名:</td>
<td width="72%"><input name="admin_name" type="text" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1;width:120px;height:20px" onFocus="this.select(); " onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" size="20"></td>
</tr>
<tr>
<td width="28%">密 码:</td>
<td><input name="admin_pass" type="password" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1;width:120px;height:20px" onFocus="this.select(); " onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" size="20"></td>
</tr>
</table></td>
<td> <img src="images/h_04.gif" width="208" height="59" alt=""></td>
</tr>
<tr>
<td height="34" colspan="2" background="images/h_05.gif"><table width="100%" border="0">
<tr>
<td width="28%">验证码:</td>
<td width="72%"><input name="verifycode" id="verifycode" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onFocus="this.select(); " onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" size="6" maxlength="4">
<span class="style1"><%=session("verifycode")%> </span>
<input type="hidden" name="verifycode2" value="<%=session("verifycode")%>">
</td>
</tr>
</table> </td>
<td rowspan="3" valign="top"> <img src="images/h_06.gif" width="208" height="133" alt=""></td>
</tr>
<tr>
<td> <input name="Submit" type="image" value="提交" src="images/h_07.gif"></td>
<td> <a href="javascript:;" onClick="MM_setTextOfTextfield('name1','','');MM_setTextOfTextfield('pwd','','')"><img src="images/h_08.gif" alt="" width="100" height="29" border="0"></a></td>
</tr>
<tr>
<td colspan="2"> <img src="images/h_09.gif" width="201" height="70" alt=""></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -