6、标题栏里的打字效果

6、标题栏里的打字效果

<script language="JavaScript1.2">

var message="欢迎进入网页特效"

var message=message+" "

i="0"

var temptitle=""

var speed="150"

function titler(){

if (!document.all&&!document.getElementById)

return

document.title=temptitle+message.charAt(i)

temptitle=temptitle+message.charAt(i)

i++

if(i==message.length)

{

i="0"

temptitle=""

}

setTimeout("titler()",speed)

}

window.onload=titler

</script>

 

Write a comment

Comments: 0