给注册用户填写和修改密码增加“密码强度”的方法(3)_动易Cms教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
Response.Write " function ignoreError(){return true;}" & vbCrLf
Response.Write " function EvalPwdStrength(oF,sP){" & vbCrLf
Response.Write " PadPasswd(oF,sP.length*2);" & vbCrLf
Response.Write " if(ClientSideStrongPassword(sP,gSimilarityMap,gDictionary)){DispPwdStrength(3,'cssStrong');}" & vbCrLf
Response.Write " else if(ClientSideMediumPassword(sP,gSimilarityMap,gDictionary)){DispPwdStrength(2,'cssMedium');}" & vbCrLf
Response.Write " else if(ClientSideWeakPassword(sP,gSimilarityMap,gDictionary)){DispPwdStrength(1,'cssWeak');}" & vbCrLf
Response.Write " else{DispPwdStrength(0,'cssPWD');}" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " function PadPasswd(oF,lPwd){" & vbCrLf
Response.Write " if(typeof oF.PwdPad=='object'){var sPad='IfYouAreReadingThisYouHaveTooMuchFreeTime';var lPad=sPad.length-lPwd;oF.PwdPad.value=sPad.substr(0,(lPad<0)?0:lPad);}" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " function DispPwdStrength(iN,sHL){" & vbCrLf
Response.Write " if(iN>3){ iN=3;}for(var i=0;i<4;i ){ var sHCR='cssPWD';if(i<=iN){ sHCR=sHL;}if(i>0){ GEId('idSM' i).className=sHCR;}GEId('idSMT' i).style.display=((i==iN)?'inline':'none');}" & vbCrLf
Response.Write " }" & vbCrLf
Response.Write " function GEId(sID){return document.getElementById(sID);}" & vbCrLf
//-->
Response.Write " </script>" & vbCrLf
Response.Write " <style>" & vbCrLf
Response.Write " input{FONT-FAMILY:宋体;FONT-SIZE: 9pt;}" & vbCrLf
Response.Write " .cssPWD{background-color:#EBEBEB;border-right:solid 1px #BEBEBE;border-bottom:solid 1px #BEBEBE;}" & vbCrLf
Response.Write " .cssWeak{background-color:#FF4545;border-right:solid 1px #BB2B2B;border-bottom:solid 1px #BB2B2B;}" & vbCrLf
Response.Write " .cssMedium{background-color:#FFD35E;border-right:solid 1px #E9AE10;border-bottom:solid 1px #E9AE10;}" & vbCrLf
Response.Write " .cssStrong{background-color:#3ABB1C;border-right:solid 1px #267A12;border-bottom:solid 1px #267A12;}" & vbCrLf
Response.Write " .cssPWT{width:132px;}" & vbCrLf
Response.Write " </style>" & vbCrLf
Response.Write " <table cellpadding='0' cellspacing='0' class='cssPWT' style='height:16px'>" & vbCrLf
Response.Write " <tr valign='bottom'>" & vbCrLf
Response.Write " <td id='idSM1' class='cssPWD' align='center'>" & vbCrLf
Response.Write " <span style='font-size:1px'> </span>" & vbCrLf
Response.Write " <span id='idSMT1' style='display:none;'>弱</span></td><td id='idSM2' class='cssPWD' align='center' style='border-left:solid 1px #fff'><span style='font-size:1px'> </span><span id='idSMT0' style='display:inline;font-weight:normal;color:#666'>无</span><span id='idSMT2' style='display:none;'>中</span></td><td id='idSM3' class='cssPWD' align='center' style='border-left:solid 1px #fff'><span style='font-size:1px'> </span><span id='idSMT3' style='display:none;'>强</span></td>" & vbCrLf
相关动易Cms教程:
- MAC错误的解决方法
- 如何屏蔽动易后台导航里的某个功能菜单?
- 动易.NET版本留言自动选定栏目方法
- 动易SiteFactoty整合Discuz!NT3.0
- 在任意位置获取根节点ID标签
- 如何开启SiteWeaver6.8的支持,反对功能
- Windows 2008安装动易.NET系统之四----动易系统安装篇
- Windows 2008安装动易.NET系统之三----数据库篇
- Windows 2008安装动易.NET系统之二----IIS、目录环境配置篇
- 数据库修复,SQL Server 2005内部操作不一致的处理
- 如何安装动易.net程序权限配置
- 为什么提示对Windows系统文件夹下的Temp目录没有访问权限?
- 相关链接:
- 教程说明:
动易Cms教程-给注册用户填写和修改密码增加“密码强度”的方法(3)。