标题滚动用JS

请把title标签首尾括号改为半角

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />


<title>标题滚动用JS-[看看title是不是滚动了][www.ok12.net-成功志]</title>

 <SCRIPT language="javascript">
msg = document.title;
msg = "..." + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
pos++;
if (pos >  msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
    </SCRIPT>

</head>

<body>
</body>
</html>

本博客所有文章如无特别注明均为原创。作者:sysdee复制或转载请以超链接形式注明转自 成功志
原文地址《标题滚动用JS
分享到:更多

相关推荐

发表评论

路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)