r3dh4t
11-29-2004, 08:30 PM
-------------
Script: Preloaded Slide Show
http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm
To a degree, this script is exactly what I have been searching for for about a week, however, I'm going to need to... 'mutate' it a bit (ha ha! That's a coding joke! Get it? No? Nevermind).
what I would LIKE this to do is have a self populating array of the images (.gifs and .pngs) construct instead of me having to put the image names in manually every time I put a new one in.
I bet that sounded confusing. What I'm trying to do is make this work for my sprite comic website, and, much like most online comics, I plan on updating the 'slide show' regularly. Thus, adjusting the begining array would be a pain after a while.
So what am I asking? How would I go about making the array at the begining of the script search for every file in a directory (or right under it), then assign it to it's numeric spot in the array.
Don't know if it will help, but the file names Always start with 'M' and then the number of the 'comic' (e.x. M1.png is the first strip of the comic and M10.gif is the tenth).
If I missed anything, please ask, as I plan on checking back on the forum, at least, daily.
-------------
Script: Preloaded Slide Show
http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm
To a degree, this script is exactly what I have been searching for for about a week, however, I'm going to need to... 'mutate' it a bit (ha ha! That's a coding joke! Get it? No? Nevermind).
what I would LIKE this to do is have a self populating array of the images (.gifs and .pngs) construct instead of me having to put the image names in manually every time I put a new one in.
I bet that sounded confusing. What I'm trying to do is make this work for my sprite comic website, and, much like most online comics, I plan on updating the 'slide show' regularly. Thus, adjusting the begining array would be a pain after a while.
So what am I asking? How would I go about making the array at the begining of the script search for every file in a directory (or right under it), then assign it to it's numeric spot in the array.
Don't know if it will help, but the file names Always start with 'M' and then the number of the 'comic' (e.x. M1.png is the first strip of the comic and M10.gif is the tenth).
If I missed anything, please ask, as I plan on checking back on the forum, at least, daily.
-------------