27、让标题栏文字动起来的特效

27、让标题栏文字动起来的特效

<html>

<head>

<title></title>

<script language="JavaScript">

var msg="欢迎来到网页特效,各种乐趣无限..."

var delay=200

function scrollTitle() {

window.document.title=msg

msg=msg.substring(1,msg.length)+msg.substring(0,1)

timeID=setTimeout("scrollTitle()",delay)

 

}

</script>

</head>

<body onload="scrollTitle()">

 

</body>

</html> 

 

 

Write a comment

Comments: 0