黄聪:标题闪烁实现JS代码,论坛标题栏闪烁效果

<SCRIPT language=JavaScript type=text/JavaScript>
var step=0,_admin=true; // 后台输出是否有新信息数据
var _title=document.title;
function flash_title()
{
step
++
if (step==3) {step=1}
if (step==1) {document.title='    '+_title}
if (step==2) {document.title='新信息 '+_title}
setTimeout(
"flash_title()",500);
}
if (_admin){flash_title()}
</SCRIPT>

原文地址:https://www.cnblogs.com/huangcong/p/2168061.html