Hi,
I've got an entry page that shows a different image each time the page is accessed or refreshed.
I need to be able to count the number of files in the image directory.
I’d like to have the page count the number of files in the directory, so that whenever I add new files, I don’t have to update the randomize equation on the page.
The images are stored in this format:
Image01.jpg
Image02.jpg
…
Image100.jpg
I’ve got the randomize code working so that I can pick a random number and then use that number to choose the image, except I have to update the equation by hand every time I add new images.
Thanks,
Rougy
-----
The death of dogma is the birth of reason.
I've got an entry page that shows a different image each time the page is accessed or refreshed.
I need to be able to count the number of files in the image directory.
I’d like to have the page count the number of files in the directory, so that whenever I add new files, I don’t have to update the randomize equation on the page.
The images are stored in this format:
Image01.jpg
Image02.jpg
…
Image100.jpg
I’ve got the randomize code working so that I can pick a random number and then use that number to choose the image, except I have to update the equation by hand every time I add new images.
Thanks,
Rougy
-----
The death of dogma is the birth of reason.