웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
[추천] 세로형 배너 슬라이드
2004.06.24 00:40
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="" type="text/css">
<script language="JavaScript1.2">
//For full source code, installation instructions, Terms Of Use, visit http://www.dynamicdrive.com
//configure the below five variables to change the style of the scroller
var scrollerwidth=187
var scrollerheight=70
var scrollerbgcolor='white'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''
var interval = 1 // 스크롤되는 속도 숫자가 높을 수로 빠라집니다
var pause = 10000 // 베너가 멈춰 있는 시간입니다. 숫자가 낮을 수록 멈추는 시간이 짧아집니다.
var topspace = 1 // 그냥 두세요.
var messages = new Array();
// 아래에 배너를 추가시키면 됩니다. [0] [1] [2] .... [n]
messages[0] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[1] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[2] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
// 밑으로는 수정하지 마세요.
var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
i = (messages.length>2) ? 2 : 0;
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=topspace){
tlayer.top=0
setTimeout("move1(tlayer)",pause)
setTimeout("move2(document.main.document.second)",pause)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=topspace
setTimeout("move1(tlayer)",interval)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1) i=0
else i++
}
}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=topspace){
tlayer2.top=0
setTimeout("move2(tlayer2)",pause)
setTimeout("move1(document.main.document.first)",pause)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=topspace
setTimeout("move2(tlayer2)",interval)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1) i=0
else i++
}
}
function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=topspace){
tdiv.style.top=0
setTimeout("move3(tdiv)",pause)
setTimeout("move4(second2_obj)",pause)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-topspace
setTimeout("move3(tdiv)",interval)
}
else{
tdiv.style.top=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1) i=0
else i++
}
}
function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=topspace){
tdiv2.style.top=0
setTimeout("move4(tdiv2)",pause)
setTimeout("move3(first2_obj)",pause)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-topspace
setTimeout("move4(second2_obj)",interval)
}
else{
tdiv2.style.top=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1) i=0
else i++
}
}
function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+topspace
document.main.document.second.visibility='show'
}
}
window.onload=startscroll
</script>
</head><body><ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
<layer id="first" left="0" top="1" width="1" height="200" z-index="1">
<p><script language="JavaScript1.2">
if (document.layers) document.write(messages[0])
</script>
</layer>
<layer id="second" left="0" top="0" width="1" height="200" z-index="1">
<p><script language="JavaScript1.2">
if (document.layers) document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
</script>
</layer>
<p></ilayer>
<script language="JavaScript1.2">
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
</script>
</body>
</html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="" type="text/css">
<script language="JavaScript1.2">
//For full source code, installation instructions, Terms Of Use, visit http://www.dynamicdrive.com
//configure the below five variables to change the style of the scroller
var scrollerwidth=187
var scrollerheight=70
var scrollerbgcolor='white'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''
var interval = 1 // 스크롤되는 속도 숫자가 높을 수로 빠라집니다
var pause = 10000 // 베너가 멈춰 있는 시간입니다. 숫자가 낮을 수록 멈추는 시간이 짧아집니다.
var topspace = 1 // 그냥 두세요.
var messages = new Array();
// 아래에 배너를 추가시키면 됩니다. [0] [1] [2] .... [n]
messages[0] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[1] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
messages[2] = "<table border=0><tr><td><a href="http://www.nzeo.com/" target=_blank><img src="http://www.nzeo.com/images/main/top_logo.gif" border="0"></a></td></tr></table>";
// 밑으로는 수정하지 마세요.
var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
i = (messages.length>2) ? 2 : 0;
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=topspace){
tlayer.top=0
setTimeout("move1(tlayer)",pause)
setTimeout("move2(document.main.document.second)",pause)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=topspace
setTimeout("move1(tlayer)",interval)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1) i=0
else i++
}
}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=topspace){
tlayer2.top=0
setTimeout("move2(tlayer2)",pause)
setTimeout("move1(document.main.document.first)",pause)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=topspace
setTimeout("move2(tlayer2)",interval)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1) i=0
else i++
}
}
function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=topspace){
tdiv.style.top=0
setTimeout("move3(tdiv)",pause)
setTimeout("move4(second2_obj)",pause)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-topspace
setTimeout("move3(tdiv)",interval)
}
else{
tdiv.style.top=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1) i=0
else i++
}
}
function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=topspace){
tdiv2.style.top=0
setTimeout("move4(tdiv2)",pause)
setTimeout("move3(first2_obj)",pause)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-topspace
setTimeout("move4(second2_obj)",interval)
}
else{
tdiv2.style.top=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1) i=0
else i++
}
}
function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+topspace
document.main.document.second.visibility='show'
}
}
window.onload=startscroll
</script>
</head><body><ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
<layer id="first" left="0" top="1" width="1" height="200" z-index="1">
<p><script language="JavaScript1.2">
if (document.layers) document.write(messages[0])
</script>
</layer>
<layer id="second" left="0" top="0" width="1" height="200" z-index="1">
<p><script language="JavaScript1.2">
if (document.layers) document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
</script>
</layer>
<p></ilayer>
<script language="JavaScript1.2">
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
</script>
</body>
</html>
댓글 4
-
∑Ztxy
2004.06.27 19:32
-
zizibecap
2004.08.20 14:18
안되는데..ㅡ.ㅡ; -
아리쑝
2005.10.26 11:36
좋은 소서네요... -
핑크푸딩
2006.10.14 08:30
아래 게시물 가로는 되지만 세로는 안되네요!!
제목 | 글쓴이 | 날짜 |
---|---|---|
날씨배너 600종류 입니다.(지역별75종X색상별8종) | 푸른커튼 | 2008.01.30 |
배너 랜덤추출 스크립트 [xe적용방법] [16] | 라싸 | 2008.02.19 |
상단에 스르르~ 닫기 가능한 배너 달기 [30] | 야옹잉 | 2014.06.20 |
창크기에 따라 생기고 없어지는 배너 만들기 [1] | 착한동구 | 2015.06.05 |
롤링 배너 이해하는데 도움이 될것 같아 올립니다 [4] | 예뜨락 | 2013.11.22 |
[주옥시리즈] 배너 클릭시 포인트지급 모듈, Portal XE [1] | socialskyo | 2013.09.09 |
cafe 설정 / 배너이미지 사이즈 바꾸기 | 윤씨 | 2011.02.18 |
텍스트 링크, 배너 링크*랜덤 (틀팁포함) [3] | 둘리나라™ | 2003.01.16 |
페이지에 접속할 때마다 다른 배너보여주는 소스.. [9] | 풍월주인 | 2002.10.07 |
exp. 완전 랜덤배너 소스 [8] | TheMics | 2002.10.12 |
임의로 전체에서 몇개의 배너만 출력하기(오류 수정 ㅜ,.ㅜ) | ColonD | 2005.10.20 |
[추천] 세로형 배너 슬라이드 [4] | ⓣinⓣin™ | 2004.06.24 |
[추천] 가로형 배너 슬라이드 [7] | ⓣinⓣin™ | 2004.06.10 |
배너를 모자이크로 슬라이드한다! [13] | ☺심심 | 2004.05.17 |
엔지오 메인 화면에서 배너 클릭하면 뜨는 프롬프트 달기 [1] | Eccen | 2002.09.30 |
배너 링크를 바로 클립보드로 카피하기(Legend님꺼 보충) [3] | 카멜롯™ | 2002.04.04 |
배너 링크를 바로 클립보드로 카피하기 [5] | Legend | 2002.04.01 |
스크롤배너 + 마우스 이벤트 - 초이스 응용 버젼임당...^^* | choice | 2002.02.25 |
슬라이드 배너및 메뉴가 익스플러 창 조절시 좌표값 변할때 사용 하는 구문!! | 천문길 | 2006.08.21 |
nzeo처럼 배너누르면 배너다는법 나오게하기! [6] | Rollrang | 2004.02.05 |
이게 더 간단하지 않을까요...?[태클아니에요..-_-'']