javascript - Getting file names with scriptaculous -
I want to use images in a fixed directory.
For example, if there are 3 files in the directory then it rotates with 3 images, 5 will rotate five images
I use / set file for Scriptaculous How can I read the name? Scriptaculous is simply a javascript library, being javascript means it can not access the file system.
is. To do this, you will need some server-side code and integrate the list of files in JavaScript such as string or json.
Something like this:
imgList = "a.gif, b.gif, c.gif" .split (",") ... you can make a simple array.
Comments
Post a Comment