0
나는 내 우주선을 대각선으로 왼쪽과 아래로 날으려고하고 있지만 같은 루프를 다시하도록 재설정 할 수는 없지만 어떤 도움도 멋질 것입니다.대각선 애니메이션 반복하기
$(document).ready(function() {
setTimeout("spaceship1()",400);
});
function spaceship1(){
$("#spaceship1").animate({
left:"-=800px",
top:"+=800px"
},2000).animate({
top:"-800px"
},0);
setTimeout("spaceship1()",2000);
}
}
uhhh, 코드에 오류가 있습니다. – Starx
@Starx - 추가 버팀대가 제거되었습니다. – jfriend00