Forum Moderators: open

Message Too Old, No Replies

Dynamic Slide-Show Script

Scripts displays all images in folder

         

geoapa

2:58 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



Anyone know of any sort of script (doesn't have to be JavaScript) where the script reads every file in a folder and displays them in a slide show?

I'm looking for a way not to hard-code the names of the files into the script. The names may change from time to time.

garann

10:12 pm on Aug 9, 2005 (gmt 0)

10+ Year Member



If you have some sort of server-side scripting available, I'd do this:

1. Create a list or array object of the files you want to display when the application starts, making it available to all users
2. Use one page to iterate through your list, having it send its current position in the list back to the server in the querystring
3. set that page up with a meta refresh
4. in the script that loads the page, increment the index it receives in the querystring

You should be able to do that in any server scripting language you want. If you want to do it in Javascript, you'll need to know the names of your images ahead of time, but you can do basically the same thing.