Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function slideSwitch() {
  2. var $active = $('#slideshow IMG.active');
  3. var $next = $active.next();
  4.  
  5. $next.addClass('active');
  6.  
  7. $active.removeClass('active');
  8. }
  9.  
  10. $(function() {
  11. setInterval( "slideSwitch()", 5000 );
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement