首页 > Web开发 > 详细

HTML标题title滚动

时间:2019-07-26 11:56:11      阅读:76      评论:0      收藏:0      [点我收藏+]

上代码:

<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>

 

HTML标题title滚动

原文:https://www.cnblogs.com/hool/p/11248378.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!