Results 1 to 2 of 2

Thread: Delay & Callback for Featured Content Glider

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Delay & Callback for Featured Content Glider

    http://www.dynamicdrive.com/dynamici...tentglider.htm
    This is not a bug or question post. I have added 2 features and wanted to contribute them (not sure if this is the right place or not).

    Feature 1 - Delay the initial slide action so the glider doesn't immediately slide when the page is loaded. The first slide action should occur after the specified delay

    In the init script:
    Code:
    featuredcontentglider.init({...
      autorotatedelayfirst: true //Delay the first transition so it doesn't occur immediately
    })
    In FeaturedContentGlider.js
    Code:
    setuptoggler:function($, config){...
      config.$togglerdiv.fadeIn(1000, function(){
        config.autorotatedelayfirst ? config.nextslideindex = config.selected : featuredcontentglider.glide(config, config.selected)
    Feature 2 - Add a callback after the slide action finishes

    In the init script
    Code:
    featuredcontentglider.init({...
      finished_callback: function(selector) { loadSliderAjax(selector); }
    In FeaturedContentGlider.js
    Code:
    var featuredcontentglider={...
      if (config.$togglerdiv.attr('lastselected')==null || parseInt(config.$togglerdiv.attr('lastselected'))!=selected){...
        if (config.finished_callback != null) config.finished_callback($target);

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

    Default

    Great, thanks for posting the new additions!
    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
  •