复制代码 代码如下:
function getinfo() 
{ 
var s = ; 
s +=  网页可见区域宽:+ document.body.clientwidth+ ; 
s +=  网页可见区域高:+ document.body.clientheight+ ; 
s +=  网页可见区域宽:+ document.body.offsetwidth +  (包括边线和滚动条的宽)+ ; 
s +=  网页可见区域高:+ document.body.offsetheight +  (包括边线的宽)+ ; 
s +=  网页正文全文宽:+ document.body.scrollwidth+ ; 
s +=  网页正文全文高:+ document.body.scrollheight+ ; 
s +=  网页被卷去的高(ff):+ document.body.scrolltop+ ; 
s +=  网页被卷去的高(ie):+ document.documentelement.scrolltop+ ; 
s +=  网页被卷去的左:+ document.body.scrollleft+ ; 
s +=  网页正文部分上:+ window.screentop+ ; 
s +=  网页正文部分左:+ window.screenleft+ ; 
s +=  屏幕分辨率的高:+ window.screen.height+ ; 
s +=  屏幕分辨率的宽:+ window.screen.width+ ; 
s +=  屏幕可用工作区高度:+ window.screen.availheight+ ; 
s +=  屏幕可用工作区宽度:+ window.screen.availwidth+ ; 
s +=  你的屏幕设置是 + window.screen.colordepth + 位彩色+ ; 
s +=  你的屏幕设置 + window.screen.devicexdpi + 像素/英寸+ ; 
s +=  window的页面可视部分实际高度(ff) +window.innerheight+ ; 
alert (s); 
};
   
 
   