Page 1 of 1
A Javascript Randomizer?
Posted: Sun Jul 15, 2007 3:28 pm
by beloveddoll
I want to create a randomizer for my website. Some of the entries will be just plain text, some will have text with a clickable image. How do I create a randomizer that can do this?
Posted: Sun Jul 15, 2007 3:40 pm
by Zoxive
Can you explain more?
Do you want the JavaScript to randomly fill in these fields randomly?
Please explain.
Posted: Sun Jul 15, 2007 3:56 pm
by beloveddoll
What I`m looking for is that the javascript runs the randomizer. I specify what these random objects are.
I`ve found scripts that do just text. I`ve found scripts that do just images.
I`m looking for a script that will do all of them without requiring all of them.
Example:
I may decide that one field will be like:
Code: Select all
You found nothing! Click <a href="link.htm">here</a> to try again!
Another field would be:
Code: Select all
You found a shell! Click on the image to add it to your inventory!
<a href="link2.htm"><img src="image.jpg"></a>
All the scripts I found seem to be all one thing, or all another thing. I haven`t found any that will allow room for having different things.
One script will require that each and every field MUST have an image for it to work.
But I don`t want that.
I want to be able to have different kinds of fields. Like in the examples above.
Posted: Sun Jul 15, 2007 7:46 pm
by Zoxive
So every time you call the javascript you want it to display different html strings?
Your explanations are very vague.
Where is this data being pulled from? (The different "fields" that you are talking about, that you want randomly shown)
Can you show what code you have? and point out the problems?