PDA

View Full Version : Featured Content Glider - rotation



claude
07-01-2009, 01:31 PM
1) Script Title: Featured Content Glider

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

Can someone assist. When you click on the images to change content the rotation stops. How can I get it to re-start the rotation over after so many secs.

I'm novice at this and hope some one can help please.

tks

ddadmin
07-02-2009, 04:49 AM
Sure, try finding the following code withiin the .js file:


config.$togglerdiv.click(function(){
featuredcontentglider.cancelautorotate(config.togglerid)
})

and replace that with:


config.$togglerdiv.click(function(){
featuredcontentglider.cancelautorotate(config.togglerid)
if (config.autorotate==true){ //auto rotate contents?
config.stepcount=0 //set steps taken
config.totalsteps=config.$contentdivs.length*config.autorotateconfig[1] //Total steps limit: num of contents x num of user specified cycles)
setTimeout(function(){featuredcontentglider.autorotate(config)}, 3000)
}
})

Change 3000 to the pause before the content starts rotating again, in milliseconds.