First of all, your images are of different dimensions, use:
http://www.dynamicdrive.com/dynamici...army/index.htm
instead. It can accommodate images of varying dimensions. As far as how you would setup the current script to find the images you do have, it would look like so:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["slideshow/1.jpg", "", ""] //plain image syntax
fadeimages[1]=["slideshow/2.jpg", "", ""] //plain image syntax
fadeimages[2]=["slideshow/3.jpg", "", ""] //plain image syntax
fadeimages[3]=["slideshow/4.jpg", "", ""] //plain image syntax
fadeimages[4]=["slideshow/5.jpg", "", ""] //plain image syntax
Use that instead of:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
slideshow[0]=["1.jpg", "2.jpg", "3.jpg","4.jpg","5.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
Get rid of this:
Code:
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
And later, get rid of the red part:
Code:
<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>
The dimensions (140 and 225) would need to be adjusted because your images are bigger (533 and 400 would look to be about right), but that's where having images of varying dimensions would mess up this show, they will not all appear in the same spot, no matter how you adjust the width and height.
Important! Optimize your images.
Bookmarks