局域网不能访问-win7电脑主题下载
2023年4月3日发(作者:deviceid)
密码强度提⽰
body
{}{
/**//*ieneedsthis*/
margin:0px;
padding:0px;
/**//*setglobalfontsettings*/
font-size:10px;
font-family:Tahoma,Verdana,Arial;
}
a:hover
{}{
color:#fff;
}
#user_registration
{}{
border:1pxsolid#cccccc;
margin:autoauto;
margin-top:100px;
width:400px;
}
#user_registrationlabel
{}{
display:block;/**//*blockfloatthelabelstoleftcolumn,setawidth*/
float:left;
width:70px;
margin:0px10px0px5px;
text-align:right;
line-height:1em;
font-weight:bold;
}
#user_registrationinput
{}{
width:250px;
}
#user_registrationp
{}{
clear:both;
}
#submit
{}{
border:1pxsolid#cccccc;
width:100px!important;
margin:10px;
}
h1
{}{
text-align:center;
}
#passwordStrength
{}{
height:10px;
display:block;
float:left;
}
.strength0
{}{
width:250px;
background:#cccccc;
}
.strength1
{}{
width:50px;
background:#ff0000;
}
.strength2
{}{
width:100px;
background:#ff5f5f;
}
.strength3
{}{
width:150px;
background:#56e500;
}
.strength4
{}{
background:#4dcd00;
width:200px;
}
.strength5
{}{
background:#399800;
width:250px;
}
functionpasswordStrength(password)
{
vardesc=newArray();
desc[0]="VeryWeak";
desc[1]="Weak";
desc[2]="Better";
desc[3]="Medium";
desc[4]="Strong";
desc[5]="Strongest";
varscore=0;
//ifpasswordbiggerthan6give1point
if(>6)score++;
//ifpasswordhasbothloweranduppercasecharactersgive1point
if(((/[a-z]/))&&((/[A-Z]/)))score++;
//ifpasswordhasatleastonenumbergive1point
if((/d+/))score++;
//ifpasswordhasatleastonespecialcaracthergive1point
if((/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/))score++;
//ifpasswordbiggerthan12giveanother1point
if(>12)score++;
mentById("passwordDescription").innerHTML=desc[score];
mentById("passwordStrength").className="strength"+score;
}
发布评论