롤링 소스에서 대기시간과 스피드 조절을 따로 설정할 수 없는 오류(?) 수정입니다.
Ex) 아래에서 위로 롤링되는 소스
function rolling_<?=$uni?>() 부분에
아래 소스를
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-1)*roll_text_<?=$uni?>.length){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
이렇게 수정하세요.
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-roll_speed_<?=$uni?>)*(roll_text_<?=$uni?>.length/roll_speed_<?=$uni?>)){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
var roll_speed_<?=$uni?> = 2; // 숫자가 커질수록 빠라집니다.
var waitingtime_<?=$uni?> = 1000; // 숫자가 커질수록 오래 대기합니다.
참조 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_html&wr_id=69332
Ex) 아래에서 위로 롤링되는 소스
function rolling_<?=$uni?>() 부분에
아래 소스를
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-1)*roll_text_<?=$uni?>.length){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
이렇게 수정하세요.
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-roll_speed_<?=$uni?>)*(roll_text_<?=$uni?>.length/roll_speed_<?=$uni?>)){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
var roll_speed_<?=$uni?> = 2; // 숫자가 커질수록 빠라집니다.
var waitingtime_<?=$uni?> = 1000; // 숫자가 커질수록 오래 대기합니다.
참조 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_html&wr_id=69332
게시글 목록
| 번호 | 제목 |
|---|---|
| 657 | |
| 654 | |
| 651 | |
| 649 | |
| 647 | |
| 642 | |
| 640 | |
| 639 | |
| 634 | |
| 630 | |
| 945 | |
| 623 | |
| 617 | |
| 613 | |
| 610 | |
| 609 | |
| 607 | |
| 604 | |
| 602 | |
| 597 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기