Getting file names with scriptaculous
I am looking to create basically an image rotator with scriptaculous. The trick is I want to use the images that are in a certain directory to drive the rotations.
For Example if there are 3 files in the directory then it rotates with 3 images, 5 it will rotate five images.
How can I read the file names to use/determine for Scriptaculous?