PDA

View Full Version : Content Slider Resume on Mouseclick



mackula
12-16-2011, 07:49 PM
1) Script Title: Featured Content Slider v2.4

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem: After clicking on a number in the pagination area, how can I get it to resume. I know it will pause on mouseover & resume on mouseout.

Any help would be appreciated.

Thanks
Mack

mackula
12-16-2011, 08:30 PM
Never mind...
Found the answer here:
http://www.dynamicdrive.com/forums/showthread.php?t=48817

But when you click to go to the intended image it jumps to the next one quickly, how can that be delayed.
Thanks
Mack

ddadmin
12-17-2011, 07:31 AM
Never mind...
Found the answer here:
http://www.dynamicdrive.com/forums/showthread.php?t=48817

But when you click to go to the intended image it jumps to the next one quickly, how can that be delayed.
Thanks
Mack

That's because the pause timer continues to run unabated when you click on a thumbnail link. So if there's 1 sec left before the script switches from slide 1 to slide 2 when you clicked on a link to directly go to slide 2, that 1 sec is then applied to the time before slide 2 automatically changes to slide 3.

With that said, to reset the pause timer each time the pagination link is clicked on, instead of the original change below:


pdiv[setting.revealtype]=function(){
//featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
}

Change the above to:


pdiv[setting.revealtype]=function(){
featuredcontentslider.cleartimer(setting, window["fcsautorun"+setting.id])
featuredcontentslider.autorotate(setting)
}

mackula
12-19-2011, 03:32 PM
Thank you so much...
Worked like a charm!!!:)