全屏显示画面:
<BODY onLoad="Javascript:window.open('/FK001E1F_SearchAction.do?actionId=init','screen','fullscreen==yes');">
</BODY>
但是发现最大化以后没有ie标题栏,关闭按钮都没有。
据说是更新了补丁后为了安全性的ie的bug
搜了下找到个解决办法,如下:
<script language="JScript" id="CodeVer" style="behavior:url(#default#clientcaps)">
var Ver=CodeVer.getComponentVersion ("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").split(",");
function OpenWin(Search){
var w=800,h=400;//假设这个是没有打补丁应该改变到的高宽
var fig=Ver[0]>5&&Ver[2]==2800;
win=window.open("scan.htm?"+Search,"MainWin",fig?"resizable=no":"fullscreen=no");
win.resizeTo(fig?w+10:w,fig?h+10:h);
win.moveTo((screen.width-w)/2,(screen.height-h)/2);
}
OpenWin("http://www.163.com");
</script>
下面是找到的其他一个方法,没有试验过。
<body οnlοad="intro">
</body>
function intro() {
if ((navigator.appVersion.indexOf("Mac")!=-1) &&
(navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)=4))
{
skip()
} else {
popup()
}
}
function skip()
{
location.href="http://localhost:7001/";
}
function popup()
{
version =parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if (version >=4)
version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if (version >= 4) {
if (navigator.appName=="Netscape")
{
Hello = window.open("http://localhost:7001/","Hello","scrollbars");
Hello.focus();
}
if (navigator.appName=="Microsoft Internet Explorer")
{
window.open("http://localhost:7001/","screen","fullscreen==yes");
}
} else {
location.href="http://localhost:7001/";
}
}