views:

20

answers:

1

Hello, 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;
jQuery(document).ready(function(){
  jQuery("#promobox").innerfade({
    animationtype:"fade",
    speed:"slow",
    timeout:1000,
    type:"sequence",
    containerheight:"auto"
  })
});

Thank You

+1  A: 

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.

dejavu
Worked absolutely perfect. Thank you for the help!
Corey R
You are most welcome . Don't forget to accept my answer.
dejavu