如何实现一打开网页就全屏显示

gongzhi 2005-07-11 12:28:14
谢谢帮助
...全文
3081 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
fffgtao 2006-02-28
  • 打赏
  • 举报
回复
机器人 2005-07-11
  • 打赏
  • 举报
回复
关键在于启动页面。比如:

<A href=javascript:fncMenu3('index.aspx', 1)>XXXXXXXX</A>
机器人 2005-07-11
  • 打赏
  • 举报
回复
function fncMenu3(target,ActionKbn){

var strUrl = target + ".html";

//屏幕分辨率
if(screen.height >= 1024){
if(ActionKbn == 0){
SubWin = window.open(strUrl,"winopen1",
"width=1260, height=900, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes, scrollbars=yes");
SubWin.focus();

}else if(ActionKbn == 1){
SubWin = window.open(strUrl,"winopen2",
"width=1060, height=700, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes, scrollbars=yes");
SubWin.focus();

}else if(ActionKbn == 2){
SubWin = window.open(strUrl,"winopen4",
"width=1060, height=700, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes, scrollbars=yes");
SubWin.focus();

}else{
SubWin = window.open(strUrl,"winopen3",
"width=700, height=500, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes");
SubWin.focus();
}
}else{
if(ActionKbn == 0){
SubWin = window.open(strUrl,"winopen1",
"width=980, height=680, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes, scrollbars=yes");
SubWin.focus();

} else if(ActionKbn == 1){
SubWin = window.open(strUrl,"winopen2",
"width=780, height=580, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes, scrollbars=yes");
SubWin.focus();

}else{
SubWin = window.open(strUrl,"winopen3",
"width=580, height=380, toolbar=no, location=no, directories=no, status=yes, menubar=no, resizable=yes");
SubWin.focus();
}
}

}
gongzhi 2005-07-11
  • 打赏
  • 举报
回复
我要的是一打开。
fengfangfang 2005-07-11
  • 打赏
  • 举报
回复
只能新开一个网页

string str;
str=" <script language=javascript> " +
" window.open('test.htm','','fullscreen=yes,resizable=yes,scrollbars=yes'); " +
" </script>";
Response.Write(str);
qwx99 2005-07-11
  • 打赏
  • 举报
回复
在一个中转页(如defalut.htm IIS 默认的启动页)加脚本
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<OBJECT id="closes" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
VIEWASTEXT>
<PARAM NAME="Width" VALUE="106">
<PARAM NAME="Height" VALUE="53">
<PARAM NAME="Command" VALUE="Close">
</OBJECT>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
<script language="javascript">
var screenwidth=screen.width-10;
var screenheight=screen.height-56;
</script>
</head>
<body onload="closes.Click();window.open('logo.aspx','gensystem_sy','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+screenwidth+',height='+screenheight+',top=0,left=0');">
</body>
</html>
*****************************************************
这样你的登录logo.aspx 则表现为全屏
fengfangfang 2005-07-11
  • 打赏
  • 举报
回复
打开一个中转页面,在onload中再以全屏方式打开另外一个页面,并关闭前一页面
gongzhi 2005-07-11
  • 打赏
  • 举报
回复
比如说一进入sohu.com输入网址后就全瓶。

110,550

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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