웹마스터 팁

제목이 계속 바뀝니다.

2002.07.03 06:55

행복=진만

<script language="JavaScript">
<!--
bd=new Array();
bd[0]="첫번째타이틀"
bd[1]="2번째타이틀"
bd[2]="3번째타이틀"
a=0
i=0
rt=false
on=false
f=0
function change() {
msg=bd[a]
msgl=bd[a].length
if(i<msgl) {
i++
if(!rt) document.title='::::::'+msg.substring(msgl-i,msgl)+'::::::'
else document.title='::::::'+msg.substring(i,msgl)+'::::::'
setTimeout("change()",2)
}
else {
i=0
if(rt==false) {
rt=true
setTimeout("change()",2600)
}
else {
rt=false
if(++a>2)a=0
setTimeout("change()",1900)
}
}
}

window.onload=change

//-->
</script>



저도 오래전에 어디서 구한건데요. 좋더라구요.