<script>
function MaxWindow()
{
window.moveTo(-4,-4);
window.resizeTo(screen.Width+9,screen.Height-20);
}
</script>
function MaxWindow()
{
window.moveTo(-4,-4);
window.resizeTo(screen.Width+9,screen.Height-20);
}
</script>
调试欢乐多
function MaxWindow()
{
window.moveTo(-4,-4);
window.resizeTo(screen.Width+9,screen.Height-20);
}
</script>
这个方法是不行的~~~
<script>
window.open(selfURL,'***','fullscreen')
window.close()
</script>
<!--
if (window.opener==null)
{
window.open("map.htm","MapInfo","channelMode"); //打开类似F11的窗口
window.opener = "meizz"; //加了这句在IE5.5+浏览器里就不会有关闭窗口的提示
window.close();
}
//-->
</script>
我也只知道这种方法
<!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>
<!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>这种方法好是好用。可是有一个缺点!
就是如果页面你一段时间可能是半个小时或一个小时以上没有操作它。
它又会恢复到IE的原样!
我也不知道这是怎么回事!请指教?
function addbook(){
alert("IE only")}
var mode=0
var old=new Array();
function fullme(e){
if(mode==0){
if(typeof document.all!='undefined'){
if(top.document.body.offsetWidth==screen.availWidth){
alert("信息提示:你的浏览器已被锁定视窗最大化,无法启用全屏模式!");
e.returnValue=false;
return false;
}
top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);
top.resizeBy(screen.availWidth-top.document.body.offsetWidth,
screen.availHeight-top.document.body.offsetHeight);
}else{
window.top.moveTo(0,0);
window.top.resizeTo(screen.availWidth,screen.availHeight);
old[0]=window.toolbar.visible;
old[1]=window.statusbar.visible;
old[2]=window.menubar.visible;
window.toolbar.visible=false;
window.statusbar.visible=false;
window.menubar.visible=false;
}
mode=1;
}else{
if(typeof document.all!='undefined'){
top.moveTo(0,0);
top.resizeTo(screen.availWidth,screen.availHeight);
}else{
window.toolbar.visible=old[0];
window.statusbar.visible=old[1];
window.menubar.visible=old[2];
}
mode=0;
}
return true;
}
--></SCRIPT>
<body scroll=no onload=fullme(event)>