开发者

jQuery Easy Slider Plugin - Restarting Animation

开发者 https://www.devze.com 2023-02-07 18:07 出处:网络
i`ve got a question about the jQuery Easy Slider 1.7 http://cssglobe.com/post/开发者_StackOverflow5780/easy-slider-17-numeric-navigation-jquery-slider with numeric navigation.

i`ve got a question about the jQuery Easy Slider 1.7 http://cssglobe.com/post/开发者_StackOverflow5780/easy-slider-17-numeric-navigation-jquery-slider with numeric navigation.

The problem is, that the automatic animation stops when I click onto a number. Is there a way to make the animation going further even after you clicked a number?

Thanks in advance, Thomas


Realize this is an old thread, but this is what I did to fix it...

  1. Around line 160 change this:

    default:
      t = dir;
      break;
    

    to this:

    default:
      t = parseInt(dir);
      break; 
    
  2. Around line 207 insert this:

    if(options.numeric){;timeout = setTimeout(function(){animate("next",false);},diff*options.speed+options.pause);};
    

Worked for me!

0

精彩评论

暂无评论...
验证码 换一张
取 消