Domanda

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 );

Nessuna soluzione corretta

Altri suggerimenti

$('#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/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top