var text=document.title;//获得页面的标题
            var timerID;//定时器
            function newtext() {
                clearTimeout(timerID);
                document.title=text.substring(1,text.length)+text.substring(0,1);//截取字符重新赋值给title
                text=document.title.substring(0,text.length);
                timerID = setTimeout("newtext()", 500);
            }
            window.onload=function(){
                newtext();
            };

posted on 2017-04-28 11:46  锋齐叶落  阅读(1708)  评论(0编辑  收藏  举报