读书人

.net 全屏显示有关问题

发布时间: 2011-12-15 23:41:24 作者: rapoo

.net 全屏显示问题
这是我全屏的代码,但在发布后通过IP地址访问时出现了最小化和最大化那一栏和最下面的状态栏,请问怎么将他们去掉,真正实现全屏显示。

1.htm
<html>
<head>
<title> 无标题文档 </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
</head>

<body onload= "window.open( 'fullscreen.htm ', ' ', 'fullscreen=1,scroll=no '); ">
</body>
</html>


fullscreen.htm
<html>
<head>
<title> 无标题文档 </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<script language= "JavaScript1.2 ">
<!--
function opensmallwin(myurl){
var w2=300;//想弹出窗口的宽度
var h2=100;//想弹出窗口的高度
var w3=window.screen.width/2-w2/2;
var h3=window.screen.height/2-h2/2;
window.open(myurl, 'small ', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,width= '+ w2 + ',height= '+ h2 + ',left= '+ w3 + ',top= '+ h3 + ' ');
}
//-->

<!--
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print)
eval( 'window.showModelessDialog(url, " ", "help:0;resizable:0;status:0;center:1;scroll:0;dialogWidth: '+mwidth+ 'px;dialogHeight: '+mheight+ 'px ") ')
else


eval( 'window.open(url, " ", "width= '+mwidth+ 'px,height= '+mheight+ 'px,resizable=1,scrollbars=1 ") ')
}
//-->

</script>
</head>

<body scroll= "no ">
<div align= "right "> <a href= "javascript: " onclick= "window.close() "> 关闭 </a> </div>
<p> </P>
<div align= "right "> <a href= "javascript: " onclick= "opensmallwin( 'login.htm ') "> 登录 </a> </div>

<p> </P>
<div align= "center "> <a href= "javascript: " onclick= "modelesswin( 'login.htm ',300,160) "> 用模态登录窗口 </a> </div>
</body>
</html>

[解决办法]
s=window.open( "/tmp_admin_main.do? "+tmp_hidden_url, "_blank ", "fullscreen=3,titlebar=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,edge:Raised,status=no,help=no,resizable=yes,width= "+(screen.width-5)+ ",Height= "+(screen.height-50)+ ",false ");
s.moveTo(0,0);
s.focus();
window.opener=null;
window.close();
[解决办法]
会不会不同的浏览器出来的效果会不同啊?
[解决办法]
不要试图控制浏览器...微软都做不到...

读书人网 >asp.net

热点推荐