3,默认大小开启 复制代码 代码如下: <script> //tmtC_winMaximizer if (document.layers){ var larg=screen.availWidth-10; var altez=screen.availHeight-20;} else{ var larg=screen.availWidth-2; var altez=screen.availHeight;} self.resizeTo(larg,altez); self.moveTo(0,0); //tmtC_winMaximizerEnd </script>
var CW_width = 400; var CW_height = 300; var CW_top = 100; var CW_left = 100; var CW_url = "http://www.cnbruce.com/bluebook/"; var New_CW = window.createPopup(); var CW_Body = New_CW.document.body; var content = ""; var CSStext = "margin:1px;color:black; border:2pxoutset;border-style:expression_r(onmouseout=onmouseup=function(){this.style.borderStyle="outset"},onmousedown=function(){if(event.button!=2)this.style.borderStyle="inset"});background-color:buttonface;width:16px;height:14px;font-size:12px;line-height:11px;cursor:Default;";
6,打开即全屏 复制代码 代码如下: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312"> <title>js打开新窗口方法代码收集 - 中国asp之家 -http://www.aspxhome</title> <link href="index.css" rel="stylesheet"type="text/css"> <script language="JavaScript"type="text/JavaScript"> <!-- function MachakFull(Ie,other){ x=screen.availWidth; y=screen.availHeight; target =parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf(".")-1,navigator.appVersion.length)); if((navigator.appVersion.indexOf("Mac")!=-1)&&(navigator.userAgent.indexOf("MSIE")!=-1)&&(parseInt(navigator.appVersion)==4)) window.open(other,"sub","scrollbars=yes"); if (target >= 4){ if (navigator.appName=="Netscape"){ varMachakFull=window.open(other,"MachakFull","scrollbars=yes","width="+x+",height="+y+",top=0,left=0"); MachakFull.moveTo(0,0); MachakFull.resizeTo(x,y);} if (navigator.appName=="Microsoft Internet Explorer") window.open(Ie,"MachakFull","fullscreen=yes"); } else window.open(other,"sub","scrollbars=yes"); }
function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue =false; for (i=0; i<(args.length-1); i+=2)eval_r(args[i]+".location=""+args[i+1]+"""); } //--> </script> </head>