4426 롤링스크롤시 조금씩 위로 밀리는 현상 해결 정보
4426 롤링스크롤시 조금씩 위로 밀리는 현상 해결본문
function rolling() {
if (bMouseOver && wait_flag) {
for (i=0;i<total_area;i++) {
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-roll_speed;
if (parseInt(tmp.top) <= -roll_height) { tmp.top = roll_height*(total_area-1); }
if (s_tmp++ > (s_amount-1)*roll_text.length) {
====>추가 s_tmp=0;
wait_flag=false;
window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
}
}
}
window.setTimeout("rolling()", 1);
}
30분 돌려도 딱 맞네요.
if (bMouseOver && wait_flag) {
for (i=0;i<total_area;i++) {
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-roll_speed;
if (parseInt(tmp.top) <= -roll_height) { tmp.top = roll_height*(total_area-1); }
if (s_tmp++ > (s_amount-1)*roll_text.length) {
====>추가 s_tmp=0;
wait_flag=false;
window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
}
}
}
window.setTimeout("rolling()", 1);
}
30분 돌려도 딱 맞네요.
댓글 전체
오데서 마이 본 글이라서... ^^;;; 지금 즉시 테스트 해봐야겠네요 감사합니다.

6페이지 열어놓고 실험해 본 결과 밀립니다.
익스-
익스-
ㅜ,.ㅜ;;;