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>
原文地址:https://www.cnblogs.com/hool/p/11248378.html