github

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>

 

posted @ 2019-07-26 09:36  博讯科技工作室  阅读(988)  评论(0编辑  收藏  举报

赣州博讯科技工作室

©2019

回到顶部
回到底部
公众号 视博web工作室