In no particular order other than as I discovered them -
You have line breaks in the script where there are none from the demo page version here (your version):
Code:
document.write('
<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden">
<div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;">
</div>
<div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;">
</div>
</div>
')
should be (demo page version):
Code:
document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
Two of your images have the extension JPG, not jpg as you have here:
Code:
var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["/uploads/rotate/photo1.jpg", "http://www.cnn.com", "_new"]
slideshowcontent[1]=["uploads/rotate/photo2.jpg", "", ""]
slideshowcontent[2]=["uploads/rotate/photo3.jpg", "http://www.google.com", ""]
should be:
Code:
var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["/uploads/rotate/photo1.jpg", "http://www.cnn.com", "_new"]
slideshowcontent[1]=["/uploads/rotate/photo2.JPG", "", ""]
slideshowcontent[2]=["/uploads/rotate/photo3.JPG", "http://www.google.com", ""]
And the dimensions of the slide show are set incorrectly here:
Code:
var trans_width='140px' //slideshow width
var trans_height='225px' //slideshow height
should be (for these particular images):
Code:
var trans_width='288px' //slideshow width
var trans_height='216px' //slideshow height
And your body tag has a reference to an undefined function:
Code:
<body onload="Carousel()">
should be:
Take care of all that, and you will be in business.
Bookmarks