1) Script Title: Ultimate Fade-In Slideshow
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm
3) Describe problem:
I get this js error in firefox "this.theimages[picindex] is undefined" and similar one in IE, whenever the images array is of size 1.
It happens on the line
my site retrieves a list of images from the database and output them as, for exampleCode:if (this.theimages[picindex][1]!="") //if associated link exists for image
however, sometimes the database only has a single image available and the server generates the followingCode:<script type='text/javascript'> var slides = new Array() slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', ''] slides[1]=['http://i41.tinypic.com/vgsapj.jpg', '', ''] new fadeshow(slides, 800, 600, 0, 3000, 1) </script>
this is the case when it gets the error.Code:<script type='text/javascript'> var slides = new Array() slides[0]=['http://i43.tinypic.com/2mgpch3.jpg', '', ''] new fadeshow(slides, 800, 600, 0, 3000, 1) </script>



Reply With Quote

Bookmarks