I am sorry. Windows can't control property of self.
It's easy!Try this --------------------------- <input type="submit" name="Submit" value="OK-1" onclick=window.open("http://www.csdn.net","newwin","fullscreen=yes")>
哈哈,把这段代码放到页面中试试 <script> //tmtC_winMaximizer if (document.layers){ var larg=screen.availWidth-10; var altez=screen.availHeight-20;} else{ var larg=screen.availWidth-2+60; var altez=screen.availHeight+300;} self.resizeTo(larg,altez); self.moveTo(-30,-200); //tmtC_winMaximizerEnd </script> //不好意思,没有调整的完全对
<script> newWin=window.open("",null,"fullscreen=yes"); newWin.document.write("<body style='overflow:hidden'> Press Alt-F4 to close this window.</body>"); </script>怎么样?什么都没了。
The perfect one:--------------------------<script> var a = window.open("about:blank","","fullscreen=yes") self.opener=null self.close() a.moveTo(0,0) a.resizeTo(screen.Width,screen.Height) a.focus(); a.location='http://www.proxy365.com/' </script>
使用方法 只需将下面代码放入页面中即可实现全屏打开。<script language="javascript"> function window.onload(){ var Request = new Array();//保存参数 var s = location.search.substring(1); if (s && s!=""){ var list = s.split("&"); for (var i=0; i < list.length; i++){ var pair = list[i].split("="); if (pair[0] && pair[0] !=""){ Request[unescape(pair[0])] = unescape(pair[1]); } } } var fullscreen=Request["fullscreen"]; if(fullscreen!="yes"){ var file =self.location; var a = window.open("about:blank","","fullscreen=yes") self.opener=null self.close() a.location=file + "?fullscreen=yes"; } } </script>
Windows can't control property of self.
---------------------------
<input type="submit" name="Submit" value="OK-1" onclick=window.open("http://www.csdn.net","newwin","fullscreen=yes")>
<script>
//tmtC_winMaximizer
if (document.layers){
var larg=screen.availWidth-10;
var altez=screen.availHeight-20;}
else{
var larg=screen.availWidth-2+60;
var altez=screen.availHeight+300;}
self.resizeTo(larg,altez);
self.moveTo(-30,-200);
//tmtC_winMaximizerEnd
</script>
//不好意思,没有调整的完全对
newWin=window.open("",null,"fullscreen=yes");
newWin.document.write("<body style='overflow:hidden'> Press Alt-F4 to close this window.</body>");
</script>怎么样?什么都没了。
var a = window.open("about:blank","","fullscreen=yes")
self.opener=null
self.close()
a.moveTo(0,0)
a.resizeTo(screen.Width,screen.Height)
a.focus();
a.location='http://www.proxy365.com/'
</script>
我需要的是自己设置自己的属性
window.open()打开的是另一个窗口。
而且也很容易实现。
-_-
1.在onload事件中判断将要打开的窗口是否全屏:
2.函数tofull()实现该页面的全屏显示
3.该代码在IE等单视窗中有效;如果在腾讯的TE或MyIE中,将会陷入死循环:(---------------------
<script>
function tofull(){
var file =self.location;
var a = window.open("about:blank","","fullscreen=yes");
self.opener=null;
self.close();
a.location=file;
a.full.isfull=1;
}function window.onload(){
if( document.body.clientHeight != screen.height || (document.body.clientWidth+16) !=screen.width )tofull();
}
</script>
这是一个演示程序,点击下面的“全屏显示”按钮,将使本页实现全屏显示。
<p align=center><input type="button" value="全屏显示" onclick=tofull()></p>
谢谢你了
但效果有点差别
顺便问一下
onLoad()函数一个页面只执行一次吧
他和preload()有什么差别
function window.onload(){
var Request = new Array();//保存参数
var s = location.search.substring(1);
if (s && s!=""){
var list = s.split("&");
for (var i=0; i < list.length; i++){
var pair = list[i].split("=");
if (pair[0] && pair[0] !=""){
Request[unescape(pair[0])] = unescape(pair[1]);
}
}
} var fullscreen=Request["fullscreen"];
if(fullscreen!="yes"){
var file =self.location;
var a = window.open("about:blank","","fullscreen=yes")
self.opener=null
self.close()
a.location=file + "?fullscreen=yes";
}
}
</script>
我想知道这个属性是否和windows系统的设定有关,应怎么改?
望大家解惑!!!谢谢 weidegong 的支持。
: Reve:你的方法我也试过,效果不好。。
var a = window.open("about:blank","","fullscreen=yes")
self.opener=null
self.close()
a.moveTo(0,0)
a.resizeTo(screen.Width,screen.Height)
a.focus();
a.location='http://lucky.myrice.com'
a.document.body.style.overflow = "hidden"
</script>
you will be payed for.