HTML标题title滚动

本是古典 何须时尚 2024-04-20 10:49 142阅读 0赞

上代码:

  1. <script type="text/javascript">
  2. var msg = document.title;
  3. msg = "…" + msg;pos = 0;
  4. function scrollMSG() {
  5. document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
  6. pos++;
  7. if (pos > msg.length) pos = 0
  8. window.setTimeout("scrollMSG()",400);
  9. }
  10. scrollMSG();
  11. </script>

转载于:https://www.cnblogs.com/hool/p/11248378.html

发表评论

表情:
评论列表 (有 0 条评论,142人围观)

还没有评论,来说两句吧...

相关阅读