81,094
社区成员
发帖
与我相关
我的任务
分享
<%@ page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>监测管理平台</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<script type="text/javascript">
var myWidth = screen.availWidth;
var myHeight = screen.availHeight;
// IE6 的全屏及关闭 index.jsp 页方法
function loadIE6() {
window.open('login.jsp', '_blank', 'fullscreen=no, resizable=no, status=no, z-look=yes, titlebar=no, scrollbars=yes, toolbar=no, menubar=no, location=no, top=0, left=0, width='+myWidth+', height='+myHeight);
window.opener = null;
window.close();
}
// IE6 的全屏及关闭 index.jsp 页方法
function loadIE7() {
window.open('login.jsp', '_blank', 'fullscreen=no, resizable=no, status=no, z-look=yes, titlebar=no, scrollbars=yes, toolbar=no, menubar=no, location=no, top=0, left=0, width='+myWidth+', height='+myHeight);
}
// IE6 以上版本的全屏及关闭 index.jsp 页方法
function loadIE8() {
window.open('login.jsp', '_blank', 'fullscreen=no, resizable=no, status=no, z-look=yes, titlebar=no, scrollbars=yes, toolbar=no, menubar=no, location=no, top=0, left=0, width='+myWidth+', height='+myHeight);
}
function closeThis() {
window.open('', '_parent', '');
window.close();
}
</script>
</head>
<script type="text/javascript">
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
window.ActiveXObject ? Sys.ie = ua.match(/msie ([\d.]+)/)[1] :
document.getBoxObjectFor ? Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1] :
window.MessageEvent && !document.getBoxObjectFor ? Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1] :
window.opera ? Sys.opera = ua.match(/opera.([\d.]+)/)[1] :
window.openDatabase ? Sys.safari = ua.match(/version\/([\d.]+)/)[1] : 0;
if (Sys.ie && Sys.ie == "5.0") {
alert("请使用 Microsoft Internet Explorer 6.0 及以上版本浏览器!");
}
if (Sys.ie && Sys.ie == "6.0") {
document.write('<body onload="loadIE6();"></body>');
}
if (Sys.ie && Sys.ie == "7.0") {
document.write('<body onload="loadIE7();"></body>');
}
if (Sys.ie && Sys.ie == "8.0") {
document.write('<body onload="loadIE8(); closeThis();"></body>');
}
if (Sys.firefox) {
// firefox
alert("请使用 Microsoft Internet Explorer 6.0 及以上版本浏览器!");
}
if (Sys.chrome) {
// 谷歌浏览器
alert("请使用 Microsoft Internet Explorer 6.0 及以上版本浏览器!");
}
</script>
</html>