📄 getpassword.htm
字号:
<HTML>
<HEAD>
<TITLE>Regist</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
if(regist.UserName.value.length<1)
{
alert("名字不能为空") ;
regist.UserName.focus() ;
return false;
}
str3=regist.UserName.value.toString().toLowerCase();
if(str3.substring(0,5)=="guest")
{
alert("名字不能以guest开头,请另选名字");
regist.UserName.focus() ;
return false;
}
if(!validstr(regist.UserName)) return false ;
if(regist.Password1.value.length<3)
{
alert("密码不能小于3位");
regist.Password1.focus() ;
return false;
}
if(regist.Password1.value != regist.Password.value)
{
alert("您两次输入的密码不相同,请检查!") ;
regist.Password.focus() ;
return false;
}
/* if(ValidEmail(regist.Email.value))
{
alert("请输入有效的Email地址!") ;
regist.Email.focus() ;
return false ;
}
*/ if(regist.Photo.value.length > 60)
{
alert("照片路径太长!") ;
regist.Photo.focus() ;
return false ;
}
if(regist.Resume.value.length > 100)
{
alert("简介太多了点吧!") ;
regist.Resume.focus() ;
return false ;
}
regist.UserName.focus();
return true;
}
function validstr(str)
{
var s,i,j;
if (str.value.length <1)
{
alert("请输入您的大名,名字不能为空!");
str.focus();
return false;
}
s=" +=|'#&<>%*`^/\\\";,.";
str1=str.value.toString();
for (i=0; i<str1.length; i++)
{
for(j=0;j<s.length;j++)
{
if (str1.charAt(i) == s.charAt(j))
{
alert("名字中不能包含特殊字符: +=|'#&<>%*`^/\\\";,.空格");
str.focus();
return false;
}
}
}
return true;
}
function ValidEmail(item){
var etext
var elen
var i
var aa
etext=item
elen=etext.length
if (elen<5)
return true;
i= etext.indexOf("@",0)
if (i==0 || i==-1 || i==elen-1)
return true;
else
{if (etext.indexOf("@",i+1)!=-1)
return true;}
if (etext.indexOf("..",i+1)!=-1)
return true;
i=etext.indexOf(".",0)
if (i==0 || i==-1 || etext.charAt(elen-1)=='.')
return true;
if ( etext.charAt(0)=='-' || etext.charAt(elen-1)=='-')
return true;
if ( etext.charAt(0)=='_' || etext.charAt(elen-1)=='_')
return true;
for (i=0;i<=elen-1;i++)
{ aa=etext.charAt(i)
if (!((aa=='.') || (aa=='@') || (aa=='-') ||(aa=='_') || (aa>='0' && aa<='9') || (aa>='a' && aa<='z') || (aa>='A' && aa<='Z')))
return true;
}
return false;
}
//-->
</SCRIPT>
<meta name="keywords" content="语音聊天">
<meta name="keywords" content="语音视频聊天">
<meta name="keywords" content="视频聊天">
</HEAD>
<STYLE type=text/css>
td { font-family: "宋体"; font-size: 9pt}
body { font-family: "宋体"; font-size: 11pt; line-height: 15pt}
.title { font-family: "宋体"; font-size: 11pt}
A {text-decoration: none; font-family: "宋体"}
A:hover {text-decoration: underline; color: #FF0000; font-family: "宋体"}
</style>
<BODY bgcolor="#EEEEFF" LANGUAGE="JavaScript">
<div align=center>
<form name="form1" method="post" action="getpassword2.htm">
<table border="2" width="250">
<tr>
<td align="center" class="title"> <font color="red">找回密码</font> </td>
</tr>
<tr>
<td> 用户名:
<input type="text" name="UserName" maxlength="10" value="">
</td>
</tr>
<tr>
<td> 问 题:
<input type="text" name="Question" value="我的生日" maxlength="30">
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td >
答案:
<input type="text" name="Answer" value="" maxlength="30">
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<input type="submit" name="Submit" value="提交">
</form>
</div>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -