타이핑..멋진 텍스트 로테이트 스크롤러

· 2004-09-19 (일) 11:34:48 · 2932 · 1
<script>
<!--
function correct(){
if (finished){
setTimeout("begin()",3000)
}
return true
}
window.onerror=correct
function begin(){
if (!document.all)
return
if (maxheight==null)
maxheight=temp.offsetHeight
whatsnew.style.height=maxheight
temp.style.display="none"
c=1
finished=true
change()
}
//-->
</script>

<style>
<!--
#whatsnew a{color:730073;text-decoration:none}
#whatsnew, #temp {font-weight:bold; font-family:Arial}
#whatsnew a:hover{color:red}
-->
</style>



</HEAD>



<BODY onLoad="begin()">



<script language="javascript1.2">
<!--

var head=''
var top=0
var maxheight
var finished=false
var tickers=new Array()

tickers[0]='<a href="http://esindi.com"> 이신디 커뮤니티</a>'

tickers[1]='<a href="http://sir.co.kr">그누보드 짱</a>'

tickers[2]='<a href="2.htm">세번째 메세지</a>'

tickers[3]='<a href="3.htm">네번째 메세지가 들어가는 곳입니다</a>'

tickers[4]='<a href="4.htm">다섯번째 메세지가 들어가는 곳입니다</a>'

for (i=1;i<=tickers.length-1;i++){
if (tickers[i].length>=tickers[top].length)
top=i
}
if (document.all)
document.write('<span id="whatsnew" style="width:100%;height=10;filter:revealTrans(duration=2,transition=19)">'+tickers[0]+'</span>')

function change(){
whatsnew.innerHTML=''
whatsnew.filters.revealTrans.apply()
whatsnew.filters.revealTrans.play()
whatsnew.innerHTML=tickers[c]
if (c==tickers.length-1)
c=0
else
c+=1
setTimeout("change()",5000)
}
if (document.all)
document.write('<span id=ns style="display:none;">')
//-->
</script>
<!--Insert alternate HTML codes here
that will be seen by browsers OTHER
than IE 4.x-->
</span>

<span id=temp style="position:absolute;left:0;top:0" style=&{head};>
<script>
<!--
if (document.all){
temp.style.width=whatsnew.style.width
document.write(tickers[top])
}
//-->
</script>
</span>



<br>

</BODY>
</HTML>

첨부파일

333.html (1.9 KB) 139회 2004-09-19 11:34
|

댓글 1개

&&nbsp;&nbsp;
2004-09-20 (월) 14:59:08
오~~ 신기합니다.... 플래시를 보는듯한....
댓글을 작성하시려면 로그인이 필요합니다.

그누3 팁자료실

1,026건
+
제목 글쓴이 날짜 조회
04-09-20 조회 3,539
04-09-19 조회 3,351
04-09-19 조회 2,822
04-09-19 조회 2,933
04-09-19 조회 3,222
04-09-19 조회 3,182
04-09-17 조회 3,359
04-09-14 조회 3,200
04-09-13 조회 3,237
mmando
04-09-12 조회 4,567
04-09-11 조회 2,829
04-09-10 조회 3,093
04-09-10 조회 3,096
mmando
04-09-10 조회 4,377
04-09-09 조회 3,453
04-09-09 조회 3,655
04-09-09 조회 3,921
04-09-08 조회 3,752
04-09-07 조회 3,629
04-09-04 조회 3,174