管理员登录(5)


        Response.Write "    var setfocus = """";" & vbCrLf 
        Response.Write vbCrLf 
        Response.Write "    if (!numRE.test(theForm['verifycode'].value)){" & vbCrLf 
        Response.Write "        errMsg = ""请填写右边的确认密码。"";" & vbCrLf 
        Response.Write "        setfocus = ""['verifycode']"";" & vbCrLf 
        Response.Write "    }" & vbCrLf 
        Response.Write "    if (theForm['password'].value == """"){" & vbCrLf 
        Response.Write "        errMsg = ""请填写登录密码!"";" & vbCrLf 
        Response.Write "        setfocus = ""['password']"";" & vbCrLf 
        Response.Write "    }" & vbCrLf 
        Response.Write "    if (theForm['username'].value == """"){" & vbCrLf 
        Response.Write "        errMsg = ""请填写登录用户名!"";" & vbCrLf 
        Response.Write "        setfocus = ""['username']"";" & vbCrLf 
        Response.Write "    }" & vbCrLf 
        Response.Write "    if (errMsg != """"){" & vbCrLf 
        Response.Write "        alert(errMsg);" & vbCrLf 
        Response.Write "        eval(""theForm"" + setfocus + "".focus()"");" & vbCrLf 
        Response.Write "    }" & vbCrLf 
        Response.Write "    else theForm.submit();" & vbCrLf 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3119.html