yaip
07-25-2008, 03:20 PM
I have the following hard-coded JavaScript:
fadeimages[0]=["photo1.jpg", "", ""]
fadeimages[1]=["photo2.jpg", "", ""]
fadeimages[2]=["photo3.jpg", "", ""]
instead, I want to load all images in a specific directory into the array. I don't know the number of images so I don't know the size of the array. It can vary depending on the number of images in the directory.
How wold I do this?
fadeimages[0]=["photo1.jpg", "", ""]
fadeimages[1]=["photo2.jpg", "", ""]
fadeimages[2]=["photo3.jpg", "", ""]
instead, I want to load all images in a specific directory into the array. I don't know the number of images so I don't know the size of the array. It can vary depending on the number of images in the directory.
How wold I do this?