javascript实现任务栏消息提示的简单实例
function blurFunc()
{
setTimeout("setTitle1()","1000");
}
var flag=0;
var id = setTimeout("setTitle1()","1000");
var id1 = setTimeout("setTitle2()","1000");
function setTitle1()
{
if(flag=="1")
{
return;
}
document.title="消息提醒";
setTimeout("setTitle2()","1000");
}
function setTitle2()
{
document.title="XXXXXX";
setTimeout("setTitle1()","1000");
}
setTimeout("clear()",10000);
function clear()
{
flag = "1";
}