首页 > 技术文章 > title滚动

laifu 2015-10-10 12:53 原文

代码:

<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

推荐阅读