password strength meter script

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts, DHTML & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Libraries
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list

   

 

Home > Scripts > JavaScripts, DHTML & Ajax > Forms > Ajax Password Strength Meter Script

 

Ajax Password Strength Meter Script

AUTHOR: Digital Spaghetti
TYPE: Open Source MIT License
BROWSERS: JavaScript enabled IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+

jQuery password strength meter is a small plugin to jQuery that provides an easy way to show the strength of a user's (intended) password. jQuery is required.


EXAMPLE

Password*

 

To install the script on your Web page follow these instructions:

1) Download this ZIP file with jQuery 1.2.1 and jquery.pstrength-min.1.2.js. Unpack the files and upload both to your server.

2) Insert this anywhere before the password field on the page:

<script type="text/javascript" src="js/jquery.js"></script>  // adjust the path as is required
<script type="text/javascript" src="js/jquery.pstrength-min.1.2.js">
</script>
<script type="text/javascript">
$(function() {
$('.password').pstrength();
});
</script>

3) Insert class="password" into your input box tag to identify a password box:

<INPUT class="password" type=password name="Password">

4) Insert these tags into your CSS and modify as is needed:

.password {
font-size : 12px;
border : 1px solid #cc9933;
width : 200px;
font-family : arial, sans-serif;
}
.pstrength-minchar {
font-size : 10px;
}

You can adjust a few more settings inside the jquery.pstrength-min.1.2.js script, such as messages, length/height of the bar, and so forth.


Visit the jQuery Web site for more details if needed


[BACK] [TOP]

 
   
 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.