日期:2014-05-17 浏览次数:21033 次
<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>