大概样式: 源码: 代码如下://=================HTML页面================= <body onload="InitCss();"> <form> <div> <table> <tr> <td> 密码: </td> <td> <input id="txtPassword" type="password" style="width: 130px;" maxlength="16" onfocus="InitCss();" onblur="ValidateInput(password,this.value)" onkeydown="validatePwdStrong(this.value);" /> </td> <td> <div id="tipPosition"> </div> </td> </tr> <tr> <td> </...
因为是基于JQuery的控件,当然需要JQuery库,还要一个本控件的JS。JQuery的JS大家可以到官网下载:http://code.jquery.com/jquery-1.4.2.min.js 这个控件的JS文件:password_strength_plugin.js password_strength_plugin.js 代码如下:(function($){ $.fn.shortPass = Too short; $.fn.badPass = Weak; $.fn.goodPass = Good; $.fn.strongPass = Strong; $.fn.samePassword = Username and Password identical.; $.fn.resultStyle...
代码如下:<script language="javascript"> function IsDigit(cCheck) { return (('0'<=cCheck) && (cCheck<='9')); } function IsAlpha(cCheck) { return ((('a'<=cCheck) && (cCheck<='z')) || (('A'<=cCheck) && (cCheck<='Z'))) } function IsaNull(cCheck) { return(cCheck != " ") } function checkform() { id = document.sform1.id.value; if (id == "") { alert("请输入注册名"); document.sform1.id.focus(); return fals...
代码如下:<script type="text/javascript"> //CharMode函数 //测试某个字符是属于哪一类. function CharMode(iN){ if (iN>=48 && iN <=57) //数字 return 1; if (iN>=65 && iN <=90) //大写字母 return 2; if (iN>=97 && iN <=122) //小写 return 4; else return 8; //特殊字符 } //bitTotal函数 //计算出当前密码当中一共有多少种模式 function bitTotal(num){ modes=0; for (i=0;i<4;i++){ if (num & 1) modes++; num>>>=1; } re...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>网页密码强弱度检测</title> </head> <style type="text/css"> #pwdpower { width:195px; border:0px none; background-color:#f...
<script language=javascript> //CharMode函数 //测试某个字符是属于哪一类. function CharMode(iN){ if (iN>=48 && iN <=57) //数字 return 1; if (iN>=65 && iN <=90) //大写字母 return 2; if (iN>=97 && iN <=122) //小写 return 4; else return 8; //特殊字符 } //bitTotal函数 //计算出当前密码当中一共有多少种模式 function bitTotal(num){ modes=0; for (i=0;i<4;i++){ if (num & 1) modes++; num>>>=1; } return modes; ...
效果: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title> 密码输入框 </title> <meta name="generator" content="Microsoft FrontPage 6.0"/> <meta name="author" content="lin.x"/> <meta name="keywords" c...
密码框简单制作,还可以替换成自己想用得符号. <style type="text/css"> #c { position: relative; } #a { position: absolute; left: 0; top: 0; font-size: 12px; font-family: 宋体; } #b { position: absolute; left: 0; top: 0; font-size: 12px; font-family: 宋体; -moz-opacity:0;opacity: 0;filter: alpha(opacity=0); } </style> <body> <div id="c"> <input id="a" /> <input id="b" onkeyup="document.getElementById('...
function EvaluatePassword(word) { if (word == "") { return 0; } else if (word.length [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]改成这样的也行…… 密码: function ck(t){ n.innerText=/(?:^(w)1{0,8}$)|^(?:(0?1?2?3?4?5?6?7?8?9?0?)2?$)|^w{0,6}$/i.test(t)?'太简单了':'还行吧'; } [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]google效果 //CharMode函数 //测试某个字符是属于哪一类. function Cha...
keyword.js 代码如下://定义当前是否大写的状态 window.onload= function() { password1=null; initCalc(); } var CapsLockValue=0; var check; function setVariables() { tablewidth=630; // logo width, in pixels tableheight=20; // logo height, in pixels if (navigator.appName == "Netscape") { horz=".left"; vert=".top"; docStyle="document."; styleDoc=""; innerW="window.in...
*{font-family:宋体;font-size:10pt} body{text-align:center} .txt{border:1px groove gray} 破解md5加密扫描程序(适合扫描弱密码) var sAscii = " !\"#$%&'()*+,-./0123456789:;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ" var sAscii = sAscii + "[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; var sHex = "0123456789ABCDEF"; function hex(i) { h = ""; for(j = 0; j > (j * 8 + 4)) & 0x0F) + sHex.charAt((i >> (j * ...
偶尔想知道IUSR和IWAM账号的密码,但是经常忘记adsutil.vbs的用法,今天查了一下,发现代码其实很简单:(另存为.wsf文件双击运行即可。) 代码如下:<job><script language="javascript"> var IIS = GetObject("IIS://Localhost/W3SVC"); var IUSR = "IUSR_机器名的密码是:" + IIS.Get("AnonymousUserPass"); var IWAM = "IWAM_机器名的密码是:" + IIS.Get("WamUserPass"); WSH.Echo([IUSR, IWAM].join("\r\n")); </script></jo...
New Document //程序设计:环球万维,专业提供虚拟主机,域名注册服务 //网址:http://www.netInter.cn //本程序是环球万维原创程序,若需转载,请注明网址及出处,谢谢. //以上信息与文章正文是不可分割的一部分,所以如果您要转载本文章,您必须保留以上信息.//CharMode函数 //测试某个字符是属于哪一类. function CharMode(iN){ if (iN>=48 && iN =65 && iN =97 && iN //bitTotal函数 //计算出当前密码当中一共有多少种模式 function bi...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>显示、隐藏密码-www.51windows.Net</title> <style> body,input{font:menu} </style> </head> <body> <form method="POST" action="addcheck.asp" name="forms"> <span id=box><input type="password" name="p...
本文给出了两个密码强度的正则表达式方案,一个简单,一个更复杂和安全。并分别给出了两个方案的解析和测试程序。一般大家可以根据自己的项目的实际需要,自行定义自己的密码正则约定。 前言 用户注册时,都会用到密码正则校验。要写出正确的正则表达式,先要定义表达式规则。 方案1 (简单) 假设密码验证做如下规则定义: 最短6位,最长16位 {6,16}可以包含小写大母 [a-z] 和大写字母 [A-Z]可以包含数字 [0-9]可以包含下划线 [...