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