2011-02-18 106 views
-1
$(document).ready(function() { 
    setTimeout("wave()", 0); 
}); 

function wave(){ 
$("#wave1") 
    .animate({left:"100px", top:"400px" },2000) 
    .animate({left:"200px", top:"0px" },2000) 
    .animate({left:"300px", top:"400px" },2000) 
    .animate({left:"400px", top:"0px" },2000) 
    .animate({left:"500px", top:"400px" },2000) 
    .animate({left:"600px", top:"0px" },2000) 
    .animate({left:"500px", top:"400px" },2000) 
    .animate({left:"400px", top:"0px" },2000) 
    setTimeout("wave()") 
} 

有沒有辦法我可以以某種方式暫停/恢復我的jQuery動畫?我想這個jQuery動畫的暫停和恢復

+0

請閱讀常見問題和解決你的問題的格式。 – Bobby 2011-02-18 09:42:45

回答