멸천도

이놈의 dtd ..ㅜㅜ

<script>
var 
htmlstr_m = "", 
bflag=true, 
bmouse=1, 
bspeed=1, 
bwait=3000, 
btemp=0, 
m_amount=318, 
m_left=106;

var ctnt=new Array(), i=0, j=0;

function startText_m() {
  for (i=0; i<ctnt.length; i++) insertText_m(i);
  window.setTimeout("scroll_m()",bwait);
}

function scroll_m() {
  if (bmouse && bflag) {
    for (i=0;i<ctnt.length;i++) {
      btemp++;
      tmp = document.getElementById('scroll_area'+i).style;
      tmp.left = parseInt(tmp.left) - 1;
      if (parseInt(tmp.left) <= m_left*(-1)) {
        tmp.left = m_left*(ctnt.length-1);
      }
      if (btemp>(m_amount-1)*ctnt.length) {
        bflag=false;
        btemp=0;
        window.setTimeout("bflag='true';btemp='0';",bwait);
      }
    }
  }
  window.setTimeout("scroll_m()",bspeed);
}

function insertText_m(i) {
  htmlstr_m='<div style="left:'+((m_left)*i)+'px; width:'+(m_amount+0)+'px; position: absolute; top: 0px;padding:0 0 0 0" id="scroll_area'+i+'">\n';
  htmlstr_m+=ctnt[i]+'\n'+'</div>\n';
  document.write(htmlstr_m);
  //alert(i + " " + htmlstr_m);
}
ctnt[0] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/1' alt='?' /></p>";
ctnt[1] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/2' alt='??' /></p>";
ctnt[2] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/3' alt='???' /></p>";
ctnt[3] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/4' alt='????' /></p>";
ctnt[4] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/5' alt='?????' /></p>";
ctnt[5] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/6' alt='??????' /></p>";
ctnt[6] = "<p style='display:inline; padding:0px 8px;'><img src='./data/banner/7' alt='???????' /></p>";
</script>
<div style="height: 110px; width: 750px; position: absolute; overflow:hidden;" onMouseover="mouse=0" onMouseout="mouse=1"><script language="JavaScript">startText_m();</script></div>


라는 지금까지 잘돌던 스크롤 스크립트가 있었습니다~
그러니 시대가 변하고 dtd선언과 함께 스크롤이 먹통이 되버렸는데요.
이걸 어떻게 하면 dtd선언한데서 사용할수있을까요?

|

댓글 4개

htmldirve에서 다른걸로 찾아보시는게
채택기능은 없지만 채택이요.

정든 소스를 버리고 새로....ㅠㅠ
걍 jquery 스크롤바 ㄱㄱ
해결주소 : http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=31842
이런 문제에대해 고민하시는 분들이 많을것같아 팁게시판에 해결책을 작성해 보았습니다. ㅎ.ㅎ
소스 공개한것이 문제가 된다면 삭제 하도록 하겠습니다~ ^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
12년 전 조회 1,125
12년 전 조회 1,094
12년 전 조회 1,292
12년 전 조회 1,085
12년 전 조회 2,099
12년 전 조회 1,131
12년 전 조회 1,108
12년 전 조회 1,157
12년 전 조회 1,103
12년 전 조회 1,190
12년 전 조회 1,192
12년 전 조회 1,116
12년 전 조회 1,076
12년 전 조회 1,317
12년 전 조회 1,779
12년 전 조회 1,124
12년 전 조회 1,431
12년 전 조회 1,418
12년 전 조회 2,205
12년 전 조회 1,098
12년 전 조회 1,085
12년 전 조회 1,088
12년 전 조회 1,098
12년 전 조회 1,087
12년 전 조회 1,064
12년 전 조회 1,072
12년 전 조회 1,086
12년 전 조회 1,095
12년 전 조회 1,106
12년 전 조회 1,142
🐛 버그신고