HTML标题title滚动
上代码:
<script type="text/javascript">
var 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()",400);
}
scrollMSG();
</script>
转载于//www.cnblogs.com/hool/p/11248378.html
还没有评论,来说两句吧...