Dodaj autoodtwarzanie do tej karuzeli jQuery

Stworzyłem karuzelę za pomocą jQuery i chciałbym dodać do niej funkcję automatycznego odtwarzania.

Oto moje istniejące JS:

<code>$(document).ready(function (){
    $('#button a').click(function(){
        var integer = $(this).attr('rel');
        $('#myslide .cover').animate({left:-705*(parseInt(integer)-1)})
        $('#button a').each(function(){
            $(this).removeClass('active');
            if($(this).hasClass('button'+integer)){
                $(this).addClass('active')}
        });
    });
});​
</code>

I tu jestskrzypce robocze.

Pytanie: Nie mam pojęcia, gdzie zacząć od automatycznego odtwarzania. Jakieś sugestie?

questionAnswers(4)

yourAnswerToTheQuestion