📄 password.asp
字号:
<HTML>
<HEAD>
<TITLE>取回密码第1步</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
background-image: url(../images/bg.gif);
}
body,td,th {
font-size: 12px;
}
-->
</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_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.id; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' 必须是数字.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' 项目为空.\n'; }
} if (errors) alert('发现错误:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (未标题-1) -->
<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD><img src="../images/password.gif" width="500" height="50"></TD>
</TR>
<TR>
<TD><form name="form1" method="post" action="password2.asp?zd=dengluming"><table width="498" height="101" border="0">
<tr>
<td colspan="2" scope="col"><div align="center">请输入您的用户名
<input name="username" type="text" id="用户名">
</div></td>
</tr>
<tr>
<td width="218" height="38" scope="row"><div align="right">请输入验证码</div></td>
<td width="270"><input name="getcode" type="text" id="验证码" size="8">
<img src="code/code.asp"></td>
</tr>
<tr>
<td height="24" colspan="2"><div align="center">
<input name="Submit" type="submit" onClick="MM_validateForm('username','','R','getcode','','RinRange0:9999');return document.MM_returnValue" value="提交">
<input type="reset" name="Submit" value="重置">
</div></td>
</tr>
</table>
</form> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -