PDA

View Full Version : Ultimate Fade-in slideshow won't resume auto, after manual advance



esmoldt
06-21-2011, 02:33 PM
1) Script Title: Ultimate Fade-in slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: Automatic slideshow won't resume after user manually advances slides. The only way to have automatic slideshow resume is to reload the page. See issue here http://www.purdue.edu/recsports/index.php

jscheuer1
06-22-2011, 02:19 PM
That's how the show is designed. But I can see where on that page it would be good if it resumed. Add the highlighted to the on page init as shown:


. . . main_intramural_sand_volleyball_summer-2011.jpg", "http://www.purdue.edu/recsports/programs/intramural_sports/index.php", "", "Intramural Sports"],

["/recsports/images/main_images/main_rsc_renovation_20110504.jpg", "http://www.purdue.edu/recsports/about_us/rsc_renovation/index.php", "", "Rec Sports Renovation"],
["/recsports/images/main_images/main_rsc_renovation_southeast_populated.jpg", "http://www.purdue.edu/recsports/about_us/rsc_renovation/index.php", "", "Concept Rendering-South East"]


//<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:4000, cycles:0, wraparound:true, randomize:false},
persist: false, //remember lasted slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "slideshowtoggler",
oninit: function(){
var dm = this.setting.displaymode, ufObj = this;
this.setting.$wrapperdiv.bind('mouseleave', function(){
if(dm.type !== 'auto'){
dm.type = 'auto';
ufObj.setting.playtimer = setTimeout(function(){ufObj.showslide('next');}, dm.pause)
}
});
}
})

</script>

Don't miss the added comma (red) after the togglerid value.

esmoldt
06-22-2011, 05:05 PM
John,

I appreciate your help and expertise!

Thank you!