Code
<script>
var strInfo="";
strInfo+="\r\n网页可见区域宽:"+document.documentElement.clientWidth;
strInfo+="\r\n网页可见区域高:"+document.documentElement.clientHeight;
strInfo+="\r\n网页可见区域宽:"+document.documentElement.offsetWidth+"(包括边线的宽)";
strInfo+="\r\n网页可见区域高:"+document.documentElement.offsetHeight+"(包括边线的高)";
strInfo+="\r\n网页正文全文宽:"+document.documentElement.scrollWidth;
strInfo+="\r\n网页正文全文高:"+document.documentElement.scrollHeight;
strInfo+="\r\n网页被卷去的高:"+document.documentElement.scrollTop;
strInfo+="\r\n网页被卷去的左:"+document.documentElement.scrollLeft;
strInfo+="\r\n网页正文部分上:"+window.screenTop;
strInfo+="\r\n网页正文部分左:"+window.screenLeft;
strInfo+="\r\n屏幕分辨率的高:"+window.screen.height;
strInfo+="\r\n屏幕分辨率的宽:"+window.screen.width;
strInfo+="\r\n屏幕可用工作区高度:"+window.screen.availHeight;
strInfo+="\r\n屏幕可用工作区宽度:"+window.screen.availWidth;
window.confirm(strInfo);
</script>
posted @
2008-10-24 18:37
边缘凉风
阅读(
134)
评论()
编辑
收藏
举报