One could edit the fadeslideshow.js file around line #50 and comment out the alert (addition red):
Code:
if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
//alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
return
}
More Detail:
That sounds like a situation where there's a common head section shared between two or more pages, or at least elements in the head that get pulled from a common file.
Most often this happens when one uses server side code like PHP or asp and includes, or requires are employed. Does the site where this happens do that? Does it use any server side code at all?
If so, removing:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fillslot_01", //ID of blank DIV on page to house Slideshow
dimensions: [934, 426], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["HOMEPAGE_MAY5_web/1.jpg"],
["HOMEPAGE_MAY5_web/2.jpg"],
["HOMEPAGE_MAY5_web/3.jpg"],
["HOMEPAGE_MAY5_web/4.jpg"],
["HOMEPAGE_MAY5_web/5.jpg"],
["HOMEPAGE_MAY5_web/6.jpg" , "url of page", "_top"]
],
speeds: [5500, 600, 600, 600, 600, 600],
displaymode: {type:'auto', cycles:1, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1200, //transition duration (milliseconds)
descreveal: "ondemand",
onslide: function(c, i){
this.setting.displaymode.pause = this.setting.speeds[i];
if(this.setting.currentstep === this.setting.totalsteps - 1){
this.navigate(this.setting.imagearray.length - 1);
}
}
})
</script>
from those pages without the slideshow would also fix it. The first solution is all you probably need, but this second one is probably more efficient.
This bit:
Code:
<script type="text/javascript">
$({}).imageLoader({
images: ['HOMEPAGE_MAY5_web/0.jpg'],
allcomplete:function(e,ui){
//images are ready here
$(document).ready(function(){
//your code - site.fadeIn() or something like that
});
}
});
</script>
Is not an official part of the script and will not fire properly (probably also throw a non-fatal error) on pages with fadeslideshow.js due to the fadeslideshow.js file invoking jQuery.noConflict().
If desired, that can be resolved, but it's a separate issue.
Bookmarks