您的位置:首页 > 其它

title滚动

2015-10-10 12:53 309 查看
代码:

<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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: