Reg_User.asp
资源名称:1731.rar [点击查看]
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:2k
源码类别:
游戏
开发平台:
Visual C++
- <!--#include file="head.inc"-->
- <TITLE><%=ForumName%>·新会员登记</TITLE>
- <SCRIPT language=javascript id=clientEventHandlersJS>
- //函数名:fucCheckLength
- //功能介绍:检查字符串的长度
- //参数说明:要检查的字符串
- //返回值:长度值
- function fucCheckLength(strTemp)
- {
- var i,sum;
- sum=0;
- for(i=0;i<strTemp.length;i++)
- {
- if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
- sum=sum+1;
- else
- sum=sum+2;
- }
- return sum;
- }
- function FORM1_onsubmit()
- {
- if (chkitem(document.FORM1.uid.value)==0)
- {
- alert("请输入正确的会员帐号。");
- document.FORM1.uid.focus();
- return false;
- }
- if ((document.FORM1.uid.vlaue=='') || (chkspc(document.FORM1.uid.value)==0)|| (chkspc(document.FORM1.uid.value)==2))
- {
- alert("请将会员帐号填写完整,且不能使用空格!");
- document.FORM1.uid.focus();
- return false;
- }
- if (fucCheckLength(document.FORM1.uid.value) <4 )
- {
- alert("会员帐号必须至少4位");
- document.FORM1.uid.focus();
- return false;
- }
- }
- </SCRIPT>
- <TABLE cellSpacing=0 cellPadding=0 width=750 height=220>
- <TBODY>
- <TR>
- <TD height=62>
- <DIV align=center>
- <FORM language=javascript name=FORM1 onsubmit="return FORM1_onsubmit()"
- action=reg_user_2.asp method=post>
- <TABLE cellSpacing=0 cellPadding=0 width=230>
- <TBODY>
- <TR>
- <TD align=middle><STRONG><FONT color=red>
- </FONT></STRONG>
- <TABLE border=1 borderColorDark=#ffffff borderColorLight=#000000 cellPadding=0 cellSpacing=0 width=230>
- <TBODY>
- <TR height=28 bgColor=#EFEFEF>
- <TD colSpan=2 width="216" align="center"><b><font color="#ff6600">
- 会员登记</a></b></TD></TR>
- <TR height=30>
- <TD width=84>新会员帐号:</TD>
- <TD width=120><INPUT maxLength=16 size=16 name=uid class=main></TD>
- </TR>
- <TR vAlign=top>
- <TD colSpan=2 width="216"><FONT face=宋体>帐号最少4位,最多16位
- </FONT></TD></TR>
- <TR height=30>
- <TD colSpan=2 width="216">
- <DIV align=center><INPUT class=stbtm2 type=submit value="确 定" name=Submit1> <INPUT class=stbtm2 type=reset value="返 回" name=Submit2>
- </DIV></TD></TR></TBODY></TABLE>
- </TD></TR></TBODY></TABLE><BR></FORM></DIV></TD></TR></TBODY></TABLE>
- <!--#include file="end.inc"-->
- </DIV>
- </BODY>
- </HTML>