Results 1 to 2 of 2

Thread: Randomly change multiple image sets

  1. #1
    Join Date
    May 2010
    Location
    Canada, eh!
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Randomly change multiple image sets

    Hey guys.

    Im looking to add a little more zazz to my website, if you take a quick look at my website 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?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •