【问题标题】:Blinking minimized browser闪烁的最小化浏览器
【发布时间】:2010-01-07 14:13:05
【问题描述】:

当我的单个 IE 实例打开时,最小化的浏览器会闪烁,但在设置任务栏属性“分组类似任务栏按钮”时,如果打开了多个 IE 实例,则闪烁不起作用。

我为此编写了以下代码..

Response.Write("<script language='javascript'>");
Response.Write("var oldTitle = document.title;");
Response.Write("function stay(){ ");
Response.Write("document.title = 'CTMS | Exception Dashboard - Microsoft Internet Explorer'; } ");                        
Response.Write(" function go() { ");
Response.Write(" document.title = 'New Message Arrived!';");                        
Response.Write(" for(var i=900; i < 10500; i=i+900) {");
Response.Write(" setTimeout('stay()',i+450);");
Response.Write(" setTimeout('go()',i); } ");
Response.Write("</script> ");

【问题讨论】:

  • 为什么要使用Response.Write编写脚本?
  • 我怀疑这可能只是 Windows 的工作方式。

标签: javascript windows internet-explorer browser minimized


【解决方案1】:

您的代码与此无关。托盘中的闪烁是 Windows 的默认行为。

当您有一组分组的 IE 窗口时,它不会在任务栏中使该组闪烁,因为它不能仅针对需要焦点的单个窗口闪烁,它必须使整个组闪烁。如果它使整个组闪烁,而不会告诉您哪个窗口需要注意,那么微软选择关闭闪烁。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-29
    • 2014-01-24
    相关资源
    最近更新 更多