<body> <script> if(autocenter){ function doAgilePopup(){ </script> </html> 以上内容来自http://www.buy8866.com
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效---另类弹出式窗口</title>
</head>
var theURL = "http://7stk.com";
var title = "test"
var windowWidth = 478;
var windowHeight = 100;
var windowX = 100;
var windowY = 100;
var autocenter = false;
var autoclose = true;
var s="width="+windowWidth+",height="+windowHeight;
var beIE=document.all?true:false;
var done=new Object("no");
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
}
if (beIE){
agilePopper = window.open("","popAgile","fullscreen,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
agilePopper.document.open();
agilePopper.document.write(frameString);
agilePopper.document.close();
}else{
agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
}
agilePopper.blur();
if (autoclose){
window.onunload = function(){agilePopper.close();}
}
done="okay";
}
<body onLoad="doAgilePopup()">
</body>