最小化浏览器闪烁

发布于 2024-08-17 06:10:36 字数 701 浏览 5 评论 0原文

当我的单个 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> ");

when my single IE instance is opened then minimized browser is blinking but while setting task bar property "Group similar task bar button" and if multiple IE instances opened then blinking is not working.

i have written follwoing code for this..

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> ");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

去了角落 2024-08-24 06:10:36

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

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

Your code has nothing to do with that. The blinking in the tray is a default Windows behavior.

When you have a grouped set of IE windows it doesn't blink the group in the taskbar because it wouldn't be able to blink for just the single window that needs focus, it would have to blink the entire group. And if it blinked the entire group that wouldn't tell you which window wants attention, so Microsoft chose to just turn the blinking off.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文