SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:39:23 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Password Generator.  (Read 542 times)
0 Members and 1 Guest are viewing this topic.
Supernovadelta
SMF For Free Full Member
*
Offline Offline

Posts: 104


Supernovadelta Productions.


View Profile WWW
« on: June 24, 2008, 01:58:33 am »

Password Generator.
The script is taken from this site: http://www.javascriptkit.com/script/

Purpose:if you are having a hard time to think of a password,this is the Javascript for you.
Here is a preview.Please download this website to see the preview: http://uppit.com/BUVGYBX

Here is the code:
Code:
<script>

//Random password generator- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''

function generatepass(plength){
temp=''
for (i=0;i<plength;i++)
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length))
return temp
}

function populateform(enterlength){
document.pgenerate.output.value=generatepass(enterlength)
}
</script>

<form name="pgenerate">
<input type="text" size=18 name="output">
<input type="button" value="Generate Password" onClick="populateform

(this.form.thelength.value)"><br />
<b>Password Length:</b> <input type="text" name="thelength" size=3

value="7">
</form>


If you get any errors,or need more help.Please comment.

Thank you for your time.
« Last Edit: June 27, 2008, 03:20:03 pm by simply sibyl » Logged

ixy
SMF For Free Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #1 on: June 24, 2008, 12:58:44 pm »

Does this go in the headers, or the footers?
Logged
Ravage™
SMF For Free Hero
*
Offline Offline

Posts: 567


Ravage Beast!


View Profile WWW
« Reply #2 on: June 24, 2008, 03:49:58 pm »

either its just a maker you can use it anywhere
Logged

Shimmy Shabby
SMF For Free Full Member
*
Offline Offline

Posts: 143



View Profile
« Reply #3 on: June 24, 2008, 05:23:29 pm »

You should go more in depth with your explanation.
Logged


Supernovadelta
SMF For Free Full Member
*
Offline Offline

Posts: 104


Supernovadelta Productions.


View Profile WWW
« Reply #4 on: June 25, 2008, 12:29:58 am »

You should go more in depth with your explanation.
I made the code for people who are having a hard time to think of a password,or it can be a fun little script you can add on your website.Either way it can be useful,and sometimes not useful.
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.382 seconds with 16 queries.