By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,569 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,569 IT Pros & Developers. It's quick & easy.

website programing questions

P: 1
if i have a website and on that website i want a specific "word" on that site to change from a list of say 100 words every time you reload the page, how would i do this? i don't even know if this is possibly but I'm sure there's a way out there!
Sep 13 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
have an array of words and a function to output the word. There is an rand function and Javascript (I think) that will allow you to obtain a random number.

When the function is called randomly pick an entry from the array and use document.write to display it.
Sep 13 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.