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

Web页面启动的时候 能否实现全屏功能?
就是启动的时候,只显示主页内容,不显示地址栏、工具条等其他。
目前通过调用F11键可是实现切换,如果不想让用户切换,一直是全屏状态,该如何实现?
浏览器为IE9

------解决方案--------------------
帮顶!
------解决方案--------------------
<html>
<head>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function omiga_window(){
window.open("1.htm","","fullscreen,scrollbars")
}
//-->
</script>
</head>

<body onload="omiga_window()" onblur="focus();window.close()" scroll="no" >
<p> </p>
<p> </p>

全屏!

</body>
</html>

ie有效
------解决方案--------------------

function Fkey(){
     var WsShell = new ActiveXObject('WScript.Shell')
     WsShell.SendKeys('{F11}');

网上看到的,火狐下面好像不行,你试一下