artdirectoreric
Instructor
I have a site that the client wants to change the background image in the upper left randomly. This image needs to be broken up for reasons I won't get into. I've found tutorials on how to make a random image, but not on how to make a random SET of images. I've created 4 folders of images and have named them 1, 2, 3 and 4. I want a random number generated when a visitors comes to the site and I want the img src tags to use the same number that was generated to find all of the images for a certain section of the page. So, if the function returned a 3, I want say, six different img src tags to use the images in folder 3.