index.htm
===========
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language = javascript>
var exit=true;
var ie = false;
var ns = false;
if(parseInt(navigator.appVersion) >= 4){
if(navigator.appName.indexOf("crosoft") != -1) ie = true;
if(navigator.appName.indexOf("etscape") != -1) ns = true;
} if (ie){ if (exit) {// Here resize the PopUp,x=254,y=254
var popUpSizeX=360;
var popUpSizeY=360;// Here move it to any point on screen
var popUpLocationX=10;
var popUpLocationY=20;// URL of the popUp
var popUpURL="test.htm"; splashWin = window.open("",'','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); //splashWin.blur();
//window.focus(); splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL; splashWin.focus(); }
}
//对于nn,用一般的方法!
</script></head>
<body bgcolor="#ffffff" topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">
</body></html>
===========
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language = javascript>
var exit=true;
var ie = false;
var ns = false;
if(parseInt(navigator.appVersion) >= 4){
if(navigator.appName.indexOf("crosoft") != -1) ie = true;
if(navigator.appName.indexOf("etscape") != -1) ns = true;
} if (ie){ if (exit) {// Here resize the PopUp,x=254,y=254
var popUpSizeX=360;
var popUpSizeY=360;// Here move it to any point on screen
var popUpLocationX=10;
var popUpLocationY=20;// URL of the popUp
var popUpURL="test.htm"; splashWin = window.open("",'','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'); //splashWin.blur();
//window.focus(); splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL; splashWin.focus(); }
}
//对于nn,用一般的方法!
</script></head>
<body bgcolor="#ffffff" topmargin="0" marginwidth="0" marginheight="0" leftmargin="0">
</body></html>
http://go.163.com/~colorweb
看看!有具体的应用
把上面代码的定义一个函数