PDA

View Full Version : Slideshow image path



lo_volt
03-28-2006, 03:32 PM
SCript: Ultimate Fade-in slideshow (v1.5)
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

Hello, I've been trying to implement the Ulitmate Slideshow (http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm) script and I'm having trouble linking to my images.

Can someone please point out just where I put the image path into? As I see it, it goes in this section:


var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
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

But where?! Forgive my dumbness, but I can't get it! Do I also need to add the path in this section someplace?

<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)

</script>

.alias.
03-28-2006, 03:39 PM
I think you must just be linking to your images wrong make sure you give the correct URL

jscheuer1
03-28-2006, 07:05 PM
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
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 red part is where you put them, and if the path is other than the same folder, that goes here too, ex:


fadeimages[2]=["images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

or:


fadeimages[2]=["http://www.somedomain.com/images/photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

This part has nothing to do with image locations:


<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
new fadeshow(fadeimages2, 140, 225, 0, 3000, 0)

</script>

lo_volt
03-29-2006, 03:15 PM
Excellent thanks. One more irritating question though? What do I edit to remove the links, I'd rather just have a slideshow. I removed the URL shown here at the end of the line:

fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""]

But the cursor still changes into a finger and tries to link to a folder on my drive.

jscheuer1
03-29-2006, 05:07 PM
Use:


fadeimages[1]=["photo2.jpg", "", ""]