PDA

View Full Version : Using more pitures w/ Ultimate Fade-In Slideshow



ndold
04-10-2008, 12:40 AM
1) Script Title: Ultimate Fade-In Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem:
Hello, [this is my first post here...] the slideshow script found here (http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm) works very well; however, it does not work with more than three pictures. Does anyone know how to modify the script to make it work with more pictures, or does anyone know of another similar script that would be able to display more pictures?
[I'm not sure why the picture limit isn't mentioned on the webpage...:confused:]

Thanks!

thetestingsite
04-10-2008, 12:48 AM
You can add more than 3 pictures by incrementing the number highlighted below:



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


The next line would be like so:



fadeimages[3]=["photo4.jpg", "", ""]


and so on.

If you are running into issues, please post a link to your problem page so that we can see what is causing the problem and ways to fix the issue.

Hope this helps.

ndold
04-10-2008, 12:58 AM
I actually tried doing exactly that. I'll post a link to a beta page in a moment... [it's not on the web yet.]

ndold
04-10-2008, 01:08 AM
This is bare minimum code... I stripped everything down to just the slideshow
The page with 5 pictures [not working] http://faasbetasite.googlepages.com/slideshowtest.html
The page with 3 pictures [working]
http://faasbetasite.googlepages.com/slideshowtestworking.html

Nile
04-10-2008, 01:17 AM
Try changing:


var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["glacier.jpg", "", ""]
fadeimages[1]=["marcella.jpg", "", ""]
fadeimages[2]=["cj.jpg", "", ""]
fadeimages[3]=["sabriel.jpg, "", ""]
fadeimages[4]=["monty.jpg", "", ""]

To:


var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["glacier.jpg", "", ""]
fadeimages[1]=["marcella.jpg", "", ""]
fadeimages[2]=["cj.jpg", "", ""]
fadeimages[3]=["sabriel.jpg", "", ""]
fadeimages[4]=["monty.jpg", "", ""]

The selected was after the comma (' , '). Not before.

ndold
04-10-2008, 01:23 AM
wow.. that's embarrassing haha... thanks for catching that
[I was trying to help someone else fix the script, and I didn't pick up on something that simple]

Thanks!