Results 1 to 2 of 2

Thread: featured content glider v2.5 auto glide stops once i click the pagination link

  1. #1
    Join Date
    May 2013
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default featured content glider v2.5 auto glide stops once i click the pagination link

    Hi.
    Developer husain
    featured auto content glider v2.5 worked really fine for me but once i click any of pagination link. It stops its auto gliding.In my case i want it auto glide always. How do i resolve this problem. Any thoughts on this friends

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    .

    Warning: In the future, please include a link to the DD script(s) in question in your post. See this post for more information.


    That said, simply modify the on page init as shown:

    Code:
    <script type="text/javascript">
    featuredcontentglider.init({
    	gliderid: "canadaprovinces", //ID of main glider container
    	contentclass: "glidecontent", //Shared CSS class name of each glider content
    	togglerid: "p-select", //ID of toggler container
    	remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
    	selected: 0, //Default selected content index (0=1st)
    	persiststate: false, //Remember last content shown within browser session (true/false)?
    	speed: 500, //Glide animation duration (in milliseconds)
    	direction: "downup", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
    	autorotate: true, //Auto rotate contents (true/false)?
    	autorotateconfig: [3000, 0], //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
    	restart: 3000, //milliseconds to add to milliseconds_btw_rotations as a pause before resuming after a nav button is clicked
    	onChange: function(previndex, curindex, $allcontents){ // fires when Glider changes slides
      		//custom code here
      		var glider = this, restart = this.restart | 0, timeOutName = this.togglerid + 'timer';
      		this.$togglerdiv.click(function(){
      			clearTimeout(window[timeOutName]);
    			window[timeOutName] = setTimeout(function(){featuredcontentglider.autorotate(glider);}, restart);
    		});
    		this.onChange = function(){};
    	}
    });
    
    </script>
    Notice the red 3000 for the added restart property It will give you fine tuned control over how long it takes before the glider resumes after a nav button is clicked.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    Last edited by jscheuer1; 05-27-2013 at 05:40 AM. Reason: code improvement
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Featured Content Glider with pagination
    By aless in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 08-24-2011, 08:39 PM
  2. Resolved Featured Content Glider with external link
    By mimilovely in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-21-2011, 02:45 AM
  3. Featured Content Glider - change "glide" to "fade" ?
    By dannyboy83 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-10-2010, 05:18 PM
  4. Featured Content Glider stops after first rotation
    By tdzl in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-08-2010, 01:43 PM
  5. Featured Content Glider - Glide Direction
    By pvernaglia in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-11-2009, 06:08 PM

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
  •