Posted By

Friday13 on 02/10/13


Tagged

jquery slideshow


Versions (?)

jQuery Slideshow


 / Published in: jQuery
 

URL: http://jquerydemo.com/demo/auto-playing-slideshow.aspx

View demo here: http://jquerydemo.com/demo/auto-playing-slideshow.aspx

  1. $(document).ready(function() {
  2.  
  3. $("#images img:gt(0)").hide();
  4.  
  5. setInterval(function() {
  6. var current = $('#images img:visible');
  7. var next = current.next().length ? current.next() : $('#images img:eq(0)');
  8. current.hide();
  9. next.fadeIn();
  10. }, 3000);
  11. });

Report this snippet  

You need to login to post a comment.