I see you've modified the fadeslideshow.js script here:
Code:
jQuery(document).ready(function($){ //fire on DOM ready
var setting=slideshow.setting
var fullhtml=fadeSlideShow.routines.getFullHTML(setting.imagearray) //get full HTML of entire slideshow
setting.$wrapperdiv=$('#'+setting.wrapperid).css({position:'relative', visibility:'visible', background:'black', overflow:'hidden', width:setting.dimensions[0], height:setting.dimensions[1]}).empty() //main slideshow DIV
// if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
// alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
// return
// }
What that does is allow it to continue on initializing even when the markup for the show is not there. That's what causes the error.
I'm pretty sure you did that to avoid the alert because you found it too difficult to only initialize only the slideshow, if any on any particular page. This often happens with server side includes/templates as one can have with asp, PHP, or any of the various others.
If you instead make it like so:
Code:
jQuery(document).ready(function($){ //fire on DOM ready
var setting=slideshow.setting
var fullhtml=fadeSlideShow.routines.getFullHTML(setting.imagearray) //get full HTML of entire slideshow
setting.$wrapperdiv=$('#'+setting.wrapperid).css({position:'relative', visibility:'visible', background:'black', overflow:'hidden', width:setting.dimensions[0], height:setting.dimensions[1]}).empty() //main slideshow DIV
if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
// alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
return
}
leaving the rest of that section intact, it will still avoid the alert. But it will also exit (return) without trying to continue. This has been the solution in many similar cases.
It may or may not be the only problem, but it has to be fixed first.
Make sure to upload the changes, clear the cache and refresh the pages before gaging the results.
Bookmarks