Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery slideshow problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37249
    Alekhoff
    Participant

    Hey guys,

    I’m kind of a noob when it comes to jquery, so my problem is that i cant get this simple slider to work on jQuery 1.7.1 (newest) Anyway if some of you pros can take a lokk at it for me and see whats wrong, I would be very happy!
    I think the problems is within the last function: setInterval(function(){

    $(document).ready(
    function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next = $active.next().length ? $active.next()
    : $('#slideshow IMG:first')


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
    $active.removeClass('active last-active');
    });
    }

    setInterval(function() {

    slideSwitch();

    }, 5000 );

    );
    #99522
    Alekhoff
    Participant

    Thanks man, that worked great !

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.