PDA

View Full Version : help with Ultimate Fade-in slideshow (v1.5)



davetik
05-22-2006, 09:46 PM
I am trying to get the Ultimate Fade-in slideshow working. I am using Frontpage 2002. I have copied the script into header and body where I want the slide show to show up.

I am fairly new to scripts and html but am trying. The problem is that I can't figure out how to point the script to the folder where my pics are so that they will show up. I hope someone can point me in the right direction, I really like this script.
Thanks,
Dave

jscheuer1
05-23-2006, 06:17 AM
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:


<img src="images/some.jpg">

It is very much the same in the image array:


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:


<img src="../images/some.jpg">

You could use that in the array as well:


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.