Question

I have two effects combined with .dequeue(). How can Make this effec repeat x-times ? 4 times,5times etc instead of just one run.

JSFIDDLE: *JS*:

$('somediv').effect( "highlight", 1000 ).dequeue().effect( "bounce", 1000 );

Pas de solution correcte

Autres conseils

$('#test').click(function () {
    for (var i = 0; i < 5; i++) {
        setTimeout(bounce,i * 1500);
    }
});

function bounce(){
    $('#test').effect("highlight", 1000).dequeue().effect("bounce", 1000);
}

see a working example here http://jsfiddle.net/zqK47/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top