0
我試圖讓我的飛船飛向左下對角飛行,但我不能讓它重置做同樣的循環再次,任何幫助將很酷。循環一個對角動畫
$(document).ready(function() {
setTimeout("spaceship1()",400);
});
function spaceship1(){
$("#spaceship1").animate({
left:"-=800px",
top:"+=800px"
},2000).animate({
top:"-800px"
},0);
setTimeout("spaceship1()",2000);
}
}
呃,在您的代碼中有錯誤 – Starx 2012-04-28 17:57:01
@Starx - 刪除了額外大括號。 – jfriend00 2012-04-28 18:00:40