最小化浏览器闪烁
当我的单个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的代码与此无关。托盘中的闪烁是 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.