日期:2014-05-17  浏览次数:20976 次

ie7启动时如何全屏且带最大化最小化关闭的系统菜单?
需要ie启动时全屏且可用菜单关闭,先说说我试过的方法
ie7可以通过在命令提示符下通过iexplore -k全屏启动,但是没有了系统菜单关闭起来很麻烦。
本来ie默认关闭时记录上次窗口位置、大小,下次启动时应该与上次一致,但在我电脑上尝试了也没成。
想请教大虾,有没有修改注册表的方法,让ie7启动时全屏,且窗口上方具有关闭菜单。

------解决方案--------------------
或者在全屏前判断现在屏幕的宽度,窗口的宽度计算是否全屏
HTML code

<script language="JavaScript">
function WALL_web()
{
    alert("屏幕宽度:"+window.screen.width);
    alert("窗口左边距:"+window.screenLeft);
    alert("窗口宽度:"+window.document.body.clientWidth);

    if ((window.screenLeft==-2)&&(window.screen.width-window.document.body.clientWidth==16))
    { 
        alert( "现在是全屏"); 
    }
    else
    {
      var WshShell = new ActiveXObject("WScript.Shell")
      WshShell.SendKeys("{F11}");
    }    
    
}
</script>

<body>
<script>WALL_web();</script>
<meta http-equiv="refresh" content="0;url=http://www.csdn.net">
</body>