質問

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

正しい解決策はありません

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top