开发者

jquery Stop Animation on last image

I'm new to jQuery and have a simple script that scrolls through three images, the problem is I can not get the animation to stop on the last image.

var tt, nn;
jQ开发者_运维百科uery(document).ready(function(){
  jQuery("#promobox").innerfade({
    animationtype:"fade",
    speed:"slow",
    timeout:1000,
    type:"sequence",
    containerheight:"auto"
  })
});

Thank You


Use jQuery Cycle Plugin, it is based on the InnerFade plugin but has many extra features and options like autostop that allows you to stop the slideshow after a certain number of transitions.

  • Cycle Plugin : http://www.malsup.com/jquery/cycle/
  • Cycle Plugin Options : http://www.malsup.com/jquery/cycle/options.html
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜