Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-05-2006, 09:50 PM   #1 (permalink)
Whiteyyyyy's Avatar
 
Newb Techie

Join Date: Jun 2006

Location: Eastern Seaboard

Posts: 28

Whiteyyyyy

Question Random word generator

Is it possible for me to create a random word genertor in notepad or dreamwever mx? I want to have a new random phrase pop up when u visit the wepage. Thx in adv.
Whiteyyyyy is offline  
Old 10-15-2006, 01:41 PM   #2 (permalink)
 
Newb Techie

Join Date: Oct 2006

Posts: 29

zach014

Default

Code:
<script language="JavaScript">
<!--

/*
Random Content Script- By JavaScript Kit(http://www.javascriptkit.com) 
Over 200+ free JavaScripts here!
*/

function random_content(){
var mycontent=new Array()
//specify random content below.
mycontent[1]='Random content 1'
mycontent[2]='Random content 2'
mycontent[3]='Random content 3'
mycontent[4]='Random content 4'
mycontent[5]='Random content 5'


var ry=Math.floor(Math.random()*mycontent.length)
if (ry==0)
ry=1
document.write(mycontent[ry])
}
random_content()
//-->
</script>

<p align="center"><font face="arial" size="-2">This free script provided by</font>

<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>

just change it to your needs. (courtesy of javascriptkit.com)
zach014 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On