<body><SCRIPT LANGUAGE="JavaScript">
var s = "";
s += "\r\n網(wǎng)頁(yè)可見(jiàn)區(qū)域?qū)挘?+ document.body.clientWidth;
s += "\r\n網(wǎng)頁(yè)可見(jiàn)區(qū)域高:"+ document.body.clientHeight;
s += "\r\n網(wǎng)頁(yè)可見(jiàn)區(qū)域?qū)挘?+ document.body.offsetWidth +" (包括邊線(xiàn)和滾動(dòng)條的寬)";
s += "\r\n網(wǎng)頁(yè)可見(jiàn)區(qū)域高:"+ document.body.offsetHeight +" (包括邊線(xiàn)的寬)";
s += "\r\n網(wǎng)頁(yè)正文全文寬:"+ document.body.scrollWidth;
s += "\r\n網(wǎng)頁(yè)正文全文高:"+ document.body.scrollHeight;
s += "\r\n網(wǎng)頁(yè)被卷去的高:"+ document.body.scrollTop;
s += "\r\n網(wǎng)頁(yè)被卷去的左:"+ document.body.scrollLeft;
s += "\r\n網(wǎng)頁(yè)正文部分上:"+ window.screenTop;
s += "\r\n網(wǎng)頁(yè)正文部分左:"+ window.screenLeft;
s += "\r\n屏幕分辨率的高:"+ window.screen.height;
s += "\r\n屏幕分辨率的寬:"+ window.screen.width;
s += "\r\n屏幕可用工作區(qū)高度:"+ window.screen.availHeight;
s += "\r\n屏幕可用工作區(qū)寬度:"+ window.screen.availWidth;
s += "\r\n你的屏幕設(shè)置是 "+ window.screen.colorDepth +" 位彩色";
s += "\r\n你的屏幕設(shè)置 "+ window.screen.deviceXDPI +" 像素/英寸";
alert(s);
</SCRIPT>