|
I am trying to create a script that will display a random image from an array of 10, wait 30 minutes and then display another image from this array, and on until every image has been displayed. By searching "random image slideshow" I find code that will display random images after a specified delay, but the images will always repeat. Example: The images might show up in the order 3-7-5-1-5-9-3... I need them not to repeat. Once image 3 has been displayed I want it to move on to the next random image and never show image 3 again. Is this possible? Also I would like to set up this slideshow on a webpage where everyone will view the same random slideshow live. I don't want everyone seeing a different random slideshow, but rather that no matter what time you check in on the slideshow you will see the same thing another user sees. Any help would be tremendously appreciated!
|
# ¿ Sep 7, 2009 18:53 |
|
|
# ¿ May 4, 2024 01:49 |
|
argz posted:pop it off the array. how? I've tried the splice command with no success.
|
# ¿ Sep 7, 2009 19:24 |
|
argz posted:randomize the order of your array, then use pop Thanks a lot! I'll give it a shot!
|
# ¿ Sep 7, 2009 20:26 |