묻고답하기

메인화면에 이미지 슬라이딩 같이 쓰려고 아래 소스를 구해서 넣었더니 메인 홈페이지 접속 시도만 계속되는 군요.

꼭 좀 이 소스를 쓰고 싶은데 문제없이 쓸 수 있는 방법은 없나요. 현재 버전은 1.2.3 입니다.

홈페이지는 이곳이고요.      http://newthing.kr

소스는 아래

<table style="line-height:150%;" align="center" cellpadding="0" cellspacing="0" width="500">
<tr>
<td width="500" height="200">
<SCRIPT>

function checkifloaded() {  
   if (imgpreload.complete) {
        nowtime=new Date()
        nowtime=nowtime.getTime()
        nowtime=nowtime-starttime
        var interval=standstill-nowtime
        if (interval<=0 ) {
            interval=1
        }
        if (firstslide) {
            interval=1
            firstslide=false
        }
        if (i_preloadloop==i_loop) {
            interval=1
        }
        timerrotate=setTimeout("rotateimages()", interval)
   }
   else {
        timercheck=setTimeout("checkifloaded()", 100)
   }
}

function preloadimage() {
        imgpreload=new Image()
        imgpreload.src="./imgurl[i_preloadloop]
}

function rotateimages() {
    i_loop=i_preloadloop
    i_preloadloop=randommaker()  
    checkpreloadtime()
    preloadimage()
    getcontent()
    if (document.all) {
        imgs.filters[i_transition].apply()
        imgs.innerHTML=contentimg
        imgs.filters[i_transition].play()
        i_transition++
        if (i_transition>21) {i_transition=0}
        mes.innerHTML=contentmes
    }    
    if (ns6) {
        document.getElementById("imgs').innerHTML=contentimg
        document.getElementById('mes').innerHTML=contentmes
    }
    if (document.layers) {
        document.topdiv.document.imgs.document.write(contentimg)
        document.topdiv.document.imgs.document.close()
        document.topdiv.document.mes.document.write(contentmes)
        document.topdiv.document.mes.document.close()
    }
    i_loop++
    checkifloaded()    
}

function randommaker() {                
        rand=Math.floor(slideshowlength*Math.random())
    return rand

}

function getcontent() {
    contentimg="<img src="./+imgurl[i_loop]+">"
    contentmes="<table cellpadding=2 cellspacing=0 border=0 bgcolor="+bgrndcolor+" width="+imagewidth+"><tr><td><font size="+fntsize+" color="+fntcolor+" face="+fntfamily+">"+message[i_loop]+"</font></td></tr></table>"
}

if (document.all) {
    document.write('<div id="topdiv" style="position:relative;width:'+imagewidth+'px;height:'+topdivheight+'px">')
    document.write('<div id="mes" style="position:absolute;"> </div>')
    document.write('<div id="imgs" style="position:absolute;filter: revealTrans(Transition=1, Duration=2) revealTrans(Transition=2, Duration=2) revealTrans(Transition=3, Duration=2)  revealTrans(Transition=4, Duration=2)  revealTrans(Transition=5, Duration=1)  revealTrans(Transition=6, Duration=2)  revealTrans(Transition=7, Duration=2)  revealTrans(Transition=8, Duration=1)  revealTrans(Transition=9, Duration=2)  revealTrans(Transition=10, Duration=1)  revealTrans(Transition=11, Duration=2)  revealTrans(Transition=12, Duration=2)  revealTrans(Transition=13, Duration=1)  revealTrans(Transition=14, Duration=2)  revealTrans(Transition=15, Duration=2)  revealTrans(Transition=16 Duration=1)  revealTrans(Transition=17, Duration=2)  revealTrans(Transition=18, Duration=2) revealTrans(Transition=19, Duration=1) revealTrans(Transition=20, Duration=2) revealTrans(Transition=21, Duration=2) revealTrans(Transition=22, Duration=2)"> </div>')
    document.write('</div>')    
}

if (ns6) {
    document.write('<div id="topdiv" style="position:relative;width:'+imagewidth+'px;height:'+topdivheight+'px">')
    document.write('<div id="mes" style="position:absolute;"> </div>')
    document.write('<div id="imgs" style="position:absolute;"> </div>')
    document.write('</div>')    
}

if (document.layers) {
    document.write('<ilayer name="topdiv" width='+imagewidth+' height='+topdivheight+'>')
    document.write('<layer name="mes"> </layer>'+ '+ ')
    document.write('<layer name="imgs"> </layer>')
    document.write('</ilayer>')    
}

function checkpreloadtime() {
  
     starttime= new Date()
        starttime=starttime.getTime()
}

function checktime() {

}

window.onresize=new Function("window.location.reload()");
window.onload=init

</SCRIPT>
        </td>
    </tr>
</table>

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
쏘프티 페이지에서 get으로 보내는 java script에서 UTF-8 변환 문제  
인류구원 이미지 슬라이딩 [1] 2009.06.07 by 인류구원
reform html클릭하고<iframe>소스올려도 안되네요 [6] 2009.05.24 by 백성찬
불패의초인 아쿠아 엠프 질문좀요~ㅠㅠ file  
경동가슴보일라 홈페이지에 다음과 같은 오류가 나옵니다..  
rkawk102 아이프레임이요.. [2] 2009.05.13 by 비나무
Jeff Yi 도와주세요~~ [3] 2009.04.28 by Jeff Yi
Jeff Yi 오류좀 도와주세요..미치겠습니다.  
acefull 오류좀 도와주세요~  
고사범 이 소스가 달리나오는 이유를 알고 싶습니다.  
만쓰별(정만) 이미지 추가 콤퍼넌트 오류신고 [1] file 2009.04.18 by 비나무
한마디 mmx900님의 작품 ''팝업창 출력'' newest_popup을... [1] file 2009.04.11 by 한마디
김중환 1.1.5로 업데이트 후 메인레이아웃의 문제 발생 file  
기슭쌈꾼 꾸준하게 운영을 할려면 어떤 호스팅이 좋을까요? [1] 2009.04.06 by jih449
빈티지 위젯 설치후.. [1] 2009.03.31 by 궁금이2
57pass 1차 메뉴를 클릭하면 플래시 이미지가 어떻게 변화하게 하는지요 ? file  
헤이맨 세로 메뉴 레이어 형식 문의 드립니다  
카르니틴 FaceOff 게시글 수정이 안되요. 애절하게 부탁해요. [3] 2009.03.04 by 카르니틴
최소영329 로그인폼에서 스크랩,저장함,작성글 보기 없애는 방법 없나요? [1] 2009.02.25 by 넨네
이정화970 노프레임 홈 관련얘기인데요ㅠㅠㅠㅠ [5] 2009.02.24 by 이정화970