Log in

View Full Version : Need code to generate random text on click



JenWeb3
12-21-2009, 04:24 AM
Hi All

Love the Dynamic Scripts website it has always provided me with fantastic code until now ...

I need a script that when someone clicks on an image (button) a random piece of text or a random image appears.

BACKGROUND
I have a list of 100 sayings/proverbs that I wish to display randomly (one at a time) when a button is clicked. Ideally it would be text that would appear randomly but I could change the text to images.

Can anyone suggest where I can find some code to do this please?

Thank you so much.
Jen

jscheuer1
12-21-2009, 06:24 AM
See:

http://home.comcast.net/~jscheuer1/side/quotes.htm

Use your browser's 'view source' to get the code.