Basically, it is done in the same manner as an ordinary image tag. Say your page is in one folder and your image is in one off of that called images, the image tag would look something like so:
HTML Code:
<img src="images/some.jpg">
It is very much the same in the image array:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/some.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
If your images folder was like so that your image tag needed to be this way:
HTML Code:
<img src="../images/some.jpg">
You could use that in the array as well:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["../images/some.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
Whatever syntax will work for the src attribute in an image tag for that page will work in the array.
Bookmarks