Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var current = 1;
- setInterval(function(){
- $('#container img.active:nth-child('+current+')').fadeOut();
- n = $("#container img").size();
- current = ((current+1) % n) ? (current+1) % n : n;
- current =
- $('#container img.active:nth-child('+current+')').fadeIn();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment