-
-3 16
- 为了让新弹出的页面,是干干净净的,看起来像软件。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试文档</title>
<script type="text/javascript">
var page = new Object();
page.width=function(){
var _width;
if(window.screen.width<1024){
_width = 800;
}else{
_width = window.screen.width - 20 - 176;
}
return _width;
}
page.height=function(){
var _height;
if(window.screen.height < 768){
_height = 600;
}else{
_height = 620;
}
return _height;
}
page.load=function(){
var _load;
document.getElementById("error").style.display = "block";
try{
var _top = (window.screen.height - page.height() - 40) / 2;
var _left = (window.screen.width - page.width()) / 2;
var _width = page.width();
var _height = page.height();
_load = window.open("about:blank", "xesee", "top="+ _top +", left="+ _left +", height="+ _height +", width="+ _width +", resizable=1, status=0, scrollbars=0, toolbar=0, menubar=0, location=0, fullscreen=0");
if(_load.opener!=window){
var _err = _load.opener.toString();
alert("窗体打开失败,请检查您是否安装了拦截弹出窗口的程序!");
}else{
_load.focus();
window.opener = null;
window.close();
}
}catch(e){
if(e){
_load.focus();
window.opener = null;
window.close();
}
return;
}
}
</script>
</head>
<body onLoad="page.load()">
<noscript><span style="font-size: 12px">您的浏览器不支持JavaScript,但本系统需要JavaScript的支持,请开启JavaScript功能!</span><br /></noscript>
<span id="error" style="font-size: 12px; display: none">由于您的系统安装了拦截弹出窗口的程序,所有您需要手动点击进入<b><a href="javascript:page.load();">智思阁www.xesee.com</a></b>!</span>
</body>
</html>
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

- 评论(0)
发表评论 TrackBack