开发者

jquery Stop Animation on last image

开发者 https://www.devze.com 2023-01-08 10:57 出处:网络
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.

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

精彩评论

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