drnen101
05-13-2011, 02:06 PM
script here for reference-http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
I've been using this script on a site of mine for a while now and im just now noticing that SOMEtimes i get a popup warning error. We cannot quite figure out what exactly is triggering it because it only happens when you navigate away from the page using the script sometimes. Sometimes it works fine.
The warning error is :
"Fade In Slideshow error: an error has occured somewhere in your code attached to the "onslide" event: TypeError: this. setting is null."
Ive done some editing to the script based on some specific changes in how i wanted it to work, but i got all those change suggestions from other threads in this forum.
The script is too long to paste, so ive uploaded it to:
http://darrenlasso.com/freelance/fadeslideshow.js
html call to script is:
<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>
<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>
thanks for any insight into the problem!
I've been using this script on a site of mine for a while now and im just now noticing that SOMEtimes i get a popup warning error. We cannot quite figure out what exactly is triggering it because it only happens when you navigate away from the page using the script sometimes. Sometimes it works fine.
The warning error is :
"Fade In Slideshow error: an error has occured somewhere in your code attached to the "onslide" event: TypeError: this. setting is null."
Ive done some editing to the script based on some specific changes in how i wanted it to work, but i got all those change suggestions from other threads in this forum.
The script is too long to paste, so ive uploaded it to:
http://darrenlasso.com/freelance/fadeslideshow.js
html call to script is:
<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>
<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>
thanks for any insight into the problem!