【发布时间】:2011-03-09 17:27:01
【问题描述】:
我正在尝试使用非常基本的 HTML 让标题栏闪烁。我试了一下,但下面的代码似乎不起作用,我不知道为什么。另外,有没有办法让标题栏闪烁文本,但前提是用户没有查看当前浏览器页面?
我的尝试:
function Flash() {
window.setTimeout(function() {
alert(document.title);
document.title = (document.title == "Company" ? "Company - flash text" : "Company");
}, 1000);
this.stop = function() {
document.title = "Company";
clearTimeout(this.timer);
}
}
【问题讨论】:
标签: javascript asp.net html