PDA

View Full Version : Help with



robert_l_ross
12-03-2007, 03:26 AM
1) Script Title: Ultimate Fade-In Slideshow

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

3) Describe problem: Want to reference files in a different folder

I have the images for my home page numbered (0.JPG though 12.JPG). I want to have the script be able to look in a different folder on my site.

Basically, I want to change these lines:
fadeimages[0]=["0.JPG", "", ""] //plain image syntax
fadeimages[1]=["1.JPG", "", ""] //plain image syntax

to look for files in a different folder (/images/index_images)

I don't know enough about DHTML...is this possible?

Thanks in advance!

rob

tech_support
12-03-2007, 07:52 AM
fadeimages[0]=["/images/index_images/0.JPG", "", ""] //plain image syntax
fadeimages[1]=["/images/index_images/1.JPG", "", ""] //plain image syntax
fadeimages[2]=["/images/index_images/2.JPG", "", ""] //plain image syntax
fadeimages[3]=["/images/index_images/3.JPG", "", ""] //plain image syntax
fadeimages[4]=["/images/index_images/4.JPG", "", ""] //plain image syntax
fadeimages[5]=["/images/index_images/5.JPG", "", ""] //plain image syntax
fadeimages[6]=["/images/index_images/6.JPG", "", ""] //plain image syntax
fadeimages[7]=["/images/index_images/7.JPG", "", ""] //plain image syntax
fadeimages[8]=["/images/index_images/8.JPG", "", ""] //plain image syntax
fadeimages[9]=["/images/index_images/9.JPG", "", ""] //plain image syntax
fadeimages[10]=["/images/index_images/10.JPG", "", ""] //plain image syntax
fadeimages[11]=["/images/index_images/11.JPG", "", ""] //plain image syntax
fadeimages[12]=["/images/index_images/12.JPG", "", ""] //plain image syntax

robert_l_ross
12-03-2007, 09:30 AM
fadeimages[0]=["/images/index_images/0.JPG", "", ""] //plain image syntax
fadeimages[1]=["/images/index_images/1.JPG", "", ""] //plain image syntax
fadeimages[2]=["/images/index_images/2.JPG", "", ""] //plain image syntax


That doesn't work, but dropping the first "/" does.

jscheuer1
12-03-2007, 09:40 AM
Just as a note, the advice given by tech_support was correct for what you stated in your first post:


look for files in a different folder (/images/index_images)

Which means the files are in the root. But, from your response, you didn't mean in the root, but in a directory off of the current folder.