The first index of the array defines the images:
Code:
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
fadeimages[3]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
fadeimages[4]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
....that means that your images is on the same folder as to where you place the script. Please observe diagram:
Code:
- ROOT
* web page
* picture1.jpg
* picture2.jpg
* picture3.jpg
* picture4.jpg
* picture5.jpg
When your images, for example, is placed in the images folder that is located inside of the root folder, as to this diagram:
Code:
- ROOT
* web page
- IMAGES
* picture1.jpg
* picture2.jpg
* picture3.jpg
* picture4.jpg
* picture5.jpg
...then the script's configuration will be like this:
Code:
fadeimages[0]=["images/photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["images/photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
fadeimages[3]=["images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
fadeimages[4]=["images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
Hope that makes sense.
Bookmarks