在网页当中加入什么代码可以使别人一打开主页IE窗口就自动最大化?

来源:百度知道 编辑:UC知道 时间:2024/09/24 23:50:48
我的主页要插入一个大尺寸的Flash,要求当别人打开主页时,IE窗口自动最大化。请问,该如何书写代码实现此功能能?

这段代码不能实现最大化,但会将窗口扩展到最大,有同样效果。
<script>

if ( top.location.href == window.location.href && window.location.href.indexOf("no_full_screen") == -1 )
{
self.moveTo(-4,-4);
self.resizeTo((screen.availWidth+8),(screen.availHeight+8));
}

</script>

把flash插到home.htm页中
index.html页面这样

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<script language="JavaScript">
<!--
HeightValue=screen.height;
WidthValue=screen.width;
newwin=window.open("home.htm","flash页","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,width="+WidthValue+",height="+HeightValue+