JS实现新提醒标题闪烁 【新提醒】

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

var newRemindFlag = 1; //启动闪烁
/*
pageTitle:原页面的标题
showRemind:闪烁时显示的东东:如【新提醒】
hideRemind:闪烁时隐藏的东东:如【   】
time:闪烁间隔的时间
 */
function newRemind(pageTitle, showRemind, hideRemind, time) {
    if (newRemindFlag == 1) {
        document.title = showRemind + pageTitle;
        newRemindFlag = 2;
    } else {
        document.title = hideRemind + pageTitle;
        newRemindFlag = 1;
    }
    setTimeout("newRemind('" + pageTitle + "','" + showRemind + "','" + hideRemind + "'," + time + ")", time);
}