Here is the template for the image/link array from the demo:
Code:
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:
Code:
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:
Code:
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:
Code:
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
);
Bookmarks