PDA

View Full Version : Advice requested re Carousel Slideshow



mikewallis
02-22-2007, 04:46 PM
1) Script Title: Carousel Slideshow

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

3) Describe problem: Delighted to have found your site. However, small problem. I am using your Carousel Sideshow and have set it up for eight images. However it only seems to show four (not even the first four), can you tell me what I a doing wrong. My site is www.thearthouseatwestbourne.com Many thanks, Mike.

jscheuer1
02-22-2007, 07:13 PM
Here is the template for the image/link array from the demo:


Car_Image_Sources=new Array(
"photo1.jpg","http://www.dynamicdrive.com",
"photo2.jpg","http://www.javascriptkit.com",
"photo3.jpg","", //this slide isn't linked
"photo4.jpg","http://www.codingforums.com" // NOTE No comma after last line
);

That's four images and three links. You have used:


Car_Image_Sources=new Array(
"R1.jpg",
"R2.jpg",
"R3.jpg",
"R4.jpg",
"R5.jpg",
"R6.jpg",
"R7.jpg",
"R8.jpg"
// NOTE No comma after last line
);


Which is the same (to the script parser) as:


Car_Image_Sources=new Array(
"R1.jpg","R2.jpg",
"R3.jpg","R4.jpg",
"R5.jpg","R6.jpg",
"R7.jpg","R8.jpg" // NOTE No comma after last line
);


four images and four links. What I think you want is 8 images and no links, which would be:


Car_Image_Sources=new Array(
"R1.jpg","",
"R2.jpg","",
"R3.jpg","",
"R4.jpg","",
"R5.jpg","",
"R6.jpg","",
"R7.jpg","",
"R8.jpg","" // NOTE No comma after last line
);

mikewallis
02-22-2007, 07:39 PM
Many thanks John, works perfectly. Mike