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()",200); } scrollMSG();
转载于:https://www.cnblogs.com/FanTasYX/archive/2013/05/07/3064022.html