A Javascript Randomizer?
Moderator: General Moderators
-
beloveddoll
- Forum Commoner
- Posts: 40
- Joined: Sat Jul 14, 2007 6:18 pm
A Javascript Randomizer?
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?
-
beloveddoll
- Forum Commoner
- Posts: 40
- Joined: Sat Jul 14, 2007 6:18 pm
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:
Another field would be:
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.
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!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>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.