title滚动

代码:

<html>
<head>
<title>滚动的文字在TITLE栏上不停滚动</title><script language=javascript >
var text=document.title
var timerID
function newtext() {
clearTimeout(timerID)
document.title=text.substring(1,text.length)+text.substring(0,1)
text=document.title.substring(0,text.length)
timerID = setTimeout("newtext()", 100)
}
</script>
</head>
<body onload="newtext()">
</body>
</html>

摘自:http://www.dabaoku.com/texiao/zonghe/201007096348.shtml

posted @ 2015-10-10 12:53  来福1990627  阅读(241)  评论(0编辑  收藏  举报