Google

Replace images with time intervals using jquery

Google

Replace images with time intervals using jquery

Share

You may also like...

3 Responses

  1. the code you had was throwing an error in firebug but the following code works 🙂

    function swapImages(){
    var $active = $(‘#myGallery .active’);
    var $next = ($(‘#myGallery .active’).next().length > 0) ? $(‘#myGallery .active’).next() : $(‘#myGallery img:first’);
    $active.fadeOut(function(){
    $active.removeClass(‘active’);
    $next.fadeIn().addClass(‘active’);
    });
    }

    $(document).ready(function(){
    setInterval(‘swapImages()’, 5000);
    });

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
  2. admin says:

    Thanks Bret Bouchard, appreciate your effort :), keep visiting my website

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  3. zura says:

    thank you bret. now it’s working 🙂

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Leave a Reply to admin Cancel reply

Your email address will not be published. Required fields are marked *