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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -