Results 1 to 2 of 2

Thread: Featured Content Glider - rotation

  1. #1
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content Glider - rotation

    1) Script Title: Featured Content Glider

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tentglider.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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try finding the following code withiin the .js file:

    Code:
    		config.$togglerdiv.click(function(){
    			featuredcontentglider.cancelautorotate(config.togglerid)
    		})
    and replace that with:

    Code:
    		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.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •