Menu
Hello all,
I’m working on a photo gallery in which the images are named with numbers 1 through 30. When the next or previous button is hit I have a simple code that just adds or subtracts one from the source name and displays that new or previous image. However, to make the gallery loop back to the beginning I have a statement that uses a variable called imageCount, which now defined as 30.
What I’m wondering is if there is a Javascript I can use so that instead of having the imageCount defined, the script will be able to count the number of images in a folder and return that as the variable’s value?
Thanks you guys rock!