View Full Version : Randomly change multiple image sets

05-19-2010, 01:25 AM
Hey guys.

Im looking to add a little more zazz to my website, if you take a quick look at my website (http://www.leftofnormal.com) you'll see that basically, I have one large picture (which is in turn, 3 smaller pictures) thats splits when you click on it, opening smaller hidden divs that hold my content.

What I'd like to do is randomly change the big picture on page load, just like a random image script.

is there any way to set up 3 different image arrrays that'd link back to the same random number generator to produce a 'set' of images to accomplish this task?

05-19-2010, 04:34 AM
That's certainly possible, just like you described it. Alternatively you could use a single fnction that simultaneously sets all three images.
The shared random number idea is probably the easiest-- look for a script where this will work (basically any of them using a random number, that you can then link to the other random numbers).