firefox全屏问题的解决 急

wanwang8 2011-06-10 05:42:34
window.open(str,"auto_call_show","fullscreen=yes,menubar=0,toolbar=no,directories=0,location=0,status=0,scrollbars=no")
IE下是全屏的!
firefox下 浏览器的title栏还在
怎么能让firefox全屏 求解!!
...全文
199 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanwang8 2011-06-13
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 asdfgh_5982 的回复:]

JScript code

function fullscreen() {
Width=screen.availWidth;
Height=screen.availHeight;
window.open(str, '',
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbars=1,resizable=……
[/Quote]


试过了 不行还是一样 求解 !!
失去乐山贼 2011-06-11
  • 打赏
  • 举报
回复
帮顶!
asdfgh_5982 2011-06-10
  • 打赏
  • 举报
回复

function fullscreen() {
Width=screen.availWidth;
Height=screen.availHeight;
window.open(str, '',
'toolbar=no,location=no,directories=no,status=no,menubar=no,'+
'scrollbars=1,resizable=no,copyhistory=1,width='+Width+','+
'height='+Height+',top=0,left=0','replace');
}
试试.

还有一种是Activex不过很少使用这样的方式.

[code=HTML]
<script language="JavaScript">
function WALL_web(){
var WshShell = new ActiveXObject('WScript.Shell')
WshShell.SendKeys('{F11}');
}
</script>
<a href="javascript:WALL_web();">点击全屏</a>

[/code]

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧