Posted in Javascript onMay 31, 2016
javascript实现任务栏消息提示的简单实例
<html> <body onload="blurFunc();"> <script> 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"; } </script> </body> </html>
以上这篇javascript实现任务栏消息提示的简单实例就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持三水点靠木。
javascript实现任务栏消息提示的简单实例
- Author -
jingxian声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@