묻고답하기

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

꼭 좀 이 소스를 쓰고 싶은데 문제없이 쓸 수 있는 방법은 없나요. 현재 버전은 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 남기남
나잔보자 GNB 에 대한 LNB 인식 [1] file 2012.11.22 by 송동우
나잔보자 lnb가...전부 다나와버려요;;; file  
돌칸 수정하는 부분에서 에러 발생에 대하여 알고 싶어서...  
쿠쿠팍 스케치북5 방명록형에서요.. [1] file 2012.11.13 by 송동우
가브리엘조 자체서버 소셜로그인 기능, http 500에러  
다섯손가락 에디터에 관리자 멘트 넣기 관련 문의 file  
땡땡이별나라 xe guestbook 상단에 이름 변경하는거요. [1] file 2012.10.23 by 송동우
boo26 재테크 재테크'정통 재테크 99.9 권장 재테크 재테크  
SMP 1.4 사용중인데 사이트가 완전히 죽어버렸습니다 ㅜㅜ [1] 2012.10.01 by 송동우
롱아 위젯형 페이지에 게시판 넣는 방법? 알려주세요ㅠㅠ file  
까칠닷컴 이미지 올릴 경우 게시판이 이미지 사이즈에 맞게 늘어 납니다. [1] file 2012.09.28 by 송동우
하은이아빠 쪽기 알람 애드온 수정 [1] 2012.09.27 by 송동우
참치찌개 팝업 메뉴 출력 [1] file 2012.09.26 by 송동우
꾸링 일부 회원의 스크랩 표시 오류  
EnterTM SSL + nginx 작업중인데 문제가 한가지 있어 질문드립니다. [1] 2012.09.15 by 푸시아
말궁뎅이 xe core 1.4 -> 1.5 로 쉬운설치로 업데이트하다가... [2] 2012.09.14 by 송동우
바카라QPR1000.COM 추천바ㅋㅏ라 WWW.QPR1000.COM 바ㅋㅏ라게임방법 WWW.QPR1000.COM 1억출금 WWW.QPR1000.COM file  
천민수 로그인이 안되는 문제가 있습니다. file  
wnpdl 고수님들~~ 한번만 더 도와주세요~ ㅠㅜ [1] file 2012.09.04 by wnpdl
QydQNd XE Core ver. 1.5.3.1.1hotfix 로 업데이트 하는데 안되네요.. ㅜ_-