묻고답하기
이미지 슬라이딩
2009.06.06 12:40
메인화면에 이미지 슬라이딩 같이 쓰려고 아래 소스를 구해서 넣었더니 메인 홈페이지 접속 시도만 계속되는 군요.
꼭 좀 이 소스를 쓰고 싶은데 문제없이 쓸 수 있는 방법은 없나요. 현재 버전은 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 남기남 |
mjluv | 페이지에 관한 질문입니다 .아시는분은 답변 제발 부탁.... [3] | 2008.04.19 by php,cgi어렵네 |
박한일771 | 게시판스킨 제작 문의좀 할게요.... [1] | 2008.04.19 by 박한일771 |
김경아@이장 | 표가 깨집니다 [6] | 2008.04.19 by 김경아@이장 |
탑심 | 레이아웃의 이미지 리로드 [2] | 2008.04.19 by 탑심 |
흑묘백묘 | 메뉴얼에서 당처 이해가 않되는부분이 있슴돠 [2] | 2008.04.19 by 흑묘백묘 |
홈페이지 | Data 디렉토리의 쓰기 권한이 없습니다 | |
지우빠 | 회원가입폼 필수사항에 대해서,,다 뒤저보았는데 시원한 답이 없어서 | |
sbshs77 | [긴급] 게시판 에디터 글씨색깔 변경 | |
지우빠 | 웹진스타일에서 제목 말고 내용글 수 제한 및 .. [2] | 2008.04.19 by 지우빠 |
hjpkorea | 회원관리 퍼미션 기간설정 | |
*카멜레온* | xesta 레이아웃 적용후 sign up 클릭하면... | |
왜만지냐 | 외부페이지 삽입방법좀 알려주세요 [3] | 2008.04.19 by 우야 |
삼돌아빠 | 왼쪽메뉴 보이게 하는방법 문의 드립니다. [1] | 2008.04.19 by 탑심 |
yongirl | 언어 변경이 안됩니다. | |
bombxc | 에디터 컴포넌트에 보면 지도찾기 애드온있자나요 ~ [1] | 2008.04.19 by 호남삼육 |
강호성872 | 이런건...바로 같은 질문이 됩니까? [4] | 2008.04.19 by 강호성 |
Topazz | 회원정보 페이지 수정.. | |
손혜용 | 가운데에 이미지 넣는 방법 좀 부탁드립니다. [4] | 2008.04.19 by 뒷뜰에핀행복 |
냉이꽃 | [문의] 본문(메뉴)의 위치 조정 (겹치는 현상) | |
체임벌린 | 폰트를 설치 하고싶은데 알려주세요! [1] | 2008.04.19 by J.. |
답변이 안올라와 스스로 해결했네요. 잘 돌아 갑니다. 모든 분들 감사합니다.