DOCTYPE html> Insert title here div { position: relative; /* relative 상대적 */ width: 100px; height: 100px; background-color: orange; } var x=100; var intervalId; window.onload=function(){ //2추 뒤에 한번 호출 setTimeout(init,2000); //0.5초마다 주기적으로 호출 intervalId=setInterval(move,500); //멈추려면 clearinterval도 필요하기에 대입함 } function init() { console.log('init호출'); /* box.style.left=x+'px'; box.style.top='100px'..