Script Categories













Messages >>> Random Name.

Creates a random male or female character name for use in a story, movie, play, etc.

First Name:
Last Name:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var malename = new Array(
"Allen","Bob","Carlton",
"David","Ernie","Foster",
"George","Howard","Ian",
"Jeffery","Kenneth","Lawrence",
"Michael","Nathen","Orson",
"Peter","Quinten","Reginald",
"Stephen","Thomas","Morris",
"Victor","Walter","Xavier",
"Charles","Anthony","Gordon",
"Percy","Conrad","Quincey",
"Armand","Jamal","Andrew",
"Matthew","Mark","Gerald"
)
var femalename = new Array(
"Alice","Bonnie","Cassie",
"Donna","Ethel","Grace",
"Heather","Jan","Katherine",
"Julie","Marcia","Patricia",
"Mabel","Jennifer","Dorthey",
"Mary Ellen","Jacki","Jean",
"Betty","Diane","Annette",
"Dawn","Jody","Karen",
"Mary Jane","Shannon","Stephanie",
"Kathleen","Emily","Tiffany",
"Angela","Christine","Debbie",
"Karla","Sandy","Marilyn",
"Brenda","Hayley","Linda"
)
var lastname = new Array(
"Adams","Bowden","Conway",
"Darden","Edwards","Flynn",
"Gilliam","Holiday","Ingram",
"Johnson","Kraemer","Hunter",
"McDonald","Nichols","Pierce",
"Sawyer","Saunders","Schmidt",
"Schroeder","Smith","Douglas",
"Ward","Watson","Williams",
"Winters","Yeager","Ford",
"Forman","Dixon","Clark",
"Churchill","Brown","Blum",
"Anderson","Black","Cavenaugh",
"Hampton","Jenkins","Prichard"
)
var r = 0;
var i = 0;
function RandomName(nameform) {
r = Math.floor(Math.random() * lastname.length);
if(nameform.gender.options[1].selected == true) {
i = Math.floor(Math.random() * femalename.length);
nameform.first.value=femalename[i]
nameform.last.value=lastname[r]
}
else {
i = Math.floor(Math.random() * malename.length);
nameform.first.value=malename[i]
nameform.last.value=lastname[r]
   }
}
//  End -->
</script>
<form>
<table width=300>
<tr>
<td
align=center colspan=2>
<select name=gender size=1>
<option
value="Male">Male
<option value="Female">Female
</select>
<input
type=button name=generate value="Generate Name" onClick="RandomName(this.form)">
</td>
</tr>
<tr>
<td
align=center><b>First Name:</b></td>
<td
align=center><input type=text name=first size=15></td>
</tr>
<tr>
<td
align=center><b>Last Name:</b></td>
<td
align=center><input type=text name=last size=15></td>
</tr>
</table>
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

http://www.cashadvance-loans.net/washington/cash-advance-burien-wa/ . Bitcoin Gambling Site


©