Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  javascript  >  正文 密码强度检测

密码强度检测

发布时间:2017-04-10   编辑:www.jquerycn.cn
jquery中文网为您提供密码强度检测等资源,欢迎您收藏本站,我们将为您提供最新的密码强度检测资源
提示:您可以先修改部分代码再运行

<textarea name="runcool" rows="28" cols="75" ><script language="javascript" > //密码强度; function PasswordStrength(showed){ this.showed = (typeof(showed) == "boolean")?showed:true; this.styles = new Array(); this.styles[0] = {backgroundColor:"#EBEBEB",borderLeft:"solid 1px #FFFFFF",borderRight:"solid 1px #BEBEBE",borderBottom:"solid 1px #BEBEBE"}; this.styles[1] = {backgroundColor:"#FF4545",borderLeft:"solid 1px #FFFFFF",borderRight:"solid 1px #BB2B2B",borderBottom:"solid 1px #BB2B2B"}; this.styles[2] = {backgroundColor:"#FFD35E",borderLeft:"solid 1px #FFFFFF",borderRight:"solid 1px #E9AE10",borderBottom:"solid 1px #E9AE10"}; this.styles[3] = {backgroundColor:"#95EB81",borderLeft:"solid 1px #FFFFFF",borderRight:"solid 1px #3BBC1B",borderBottom:"solid 1px #3BBC1B"}; this.labels= ["弱","中","强"]; this.divName = "pwd_div_" Math.ceil(Math.random()*100000); this.minLen = 5; this.width = "150px"; this.height = "16px"; this.content = ""; this.selectedIndex = 0; this.init(); } PasswordStrength.prototype.init = function(){ var s = '<table cellpadding="0" id="' this.divName '_table" cellspacing="0" style="width:' this.width ';height:' this.height ';">'; s = '<tr>'; for(var i=0;i<3;i ){ s = '</td> </tr> </tbody> </table>

 

</textarea>
提示:您可以先修改部分代码再运行

您可能感兴趣的文章:
JS检测密码强度(密码过短、密码强度良好、密码强度高)
jQuery密码强度提示插件 Complexify
php 密码强度检测代码
js检测密码强度的代码(附效果图)
Js用户注册时的密码强度提示代码
passwordStrength 基于jquery的密码强度检测代码使用介绍
js 验证密码强度的代码分享
js 验证密码强度的例子
js检测密码强度 js验证密码强度的原生代码
js验证密码强度 js检测密码强度的类

[关闭]