D

getHtmlInfo

function getHtmlInfo()
{
var obj = {
clientHeight : 0, 
clientWidth : 0,  
scrollHeight : 0, 
scrollWidth : 0,  
scrollLeft : 0,   
scrollTop : 0,    
offsetHeight : 0, 
offsetWidth : 0 ,
screenX:0,
screenY:0
};

if (document.documentElement){
obj.clientHeight = parseInt(document.documentElement.clientHeight);
obj.clientWidth = parseInt(document.documentElement.clientWidth);
obj.scrollHeight = parseInt(document.documentElement.scrollHeight);
obj.scrollWidth = parseInt(document.documentElement.scrollWidth);

if(navigator.userAgent.indexOf("Chrome")  != -1) {
obj.scrollLeft = parseInt(document.body.scrollLeft);
obj.scrollTop = parseInt(document.body.scrollTop);
} else {
obj.scrollLeft = parseInt(document.documentElement.scrollLeft);
obj.scrollTop = parseInt(document.documentElement.scrollTop);
}
if(navigator.appName=="Netscape"){
if(navigator.userAgent.indexOf("Chrome")  != -1) {
obj.offsetHeight = parseInt(document.body.scrollTop);
obj.offsetWidth = parseInt(document.body.scrollLeft);
} else {
obj.offsetHeight = parseInt(document.documentElement.clientHeight);
obj.offsetWidth = parseInt(document.documentElement.clientWidth);
}
if(navigator.appName.indexOf("Microsoft") != -1) {
obj.offsetHeight = parseInt(document.documentElement.offsetHeight);
obj.offsetWidth = parseInt(document.documentElement.offsetWidth);
}
//if(document.body.offsetHeight) obj.offsetHeight = parseInt(document.documentElement.offsetHeight);
//else obj.offsetHeight = parseInt(document.documentElement.clientHeight);
//if(document.body.offsetWidth) obj.offsetWidth = parseInt(document.documentElement.offsetWidth);
//else obj.offsetWidth = parseInt(document.documentElement.clientWidth);

obj.screenX = parseInt(screen.width);
//alert(screen.height);
obj.screenY = parseInt(screen.height);
//alert("HEIGHT : " + document.documentElement.clientHeight);
} else if (document.body){
obj.clientHeight = parseInt(document.body.clientHeight);
obj.clientWidth = parseInt(document.body.clientWidth);
obj.scrollHeight = parseInt(document.body.scrollHeight);
obj.scrollWidth = parseInt(document.body.scrollWidth);
obj.scrollLeft = parseInt(document.body.scrollLeft);
obj.scrollTop = parseInt(document.body.scrollTop);

obj.offsetHeight = parseInt(document.body.offsetHeight);
obj.offsetWidth = parseInt(document.body.offsetWidth);
obj.screenX = parseInt(screen.width);
obj.screenY = parseInt(screen.height);

}else{
//[Netscape stuff]
}

return obj;
}
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 1,277
13년 전 조회 1,353
13년 전 조회 1,595
13년 전 조회 1,505
13년 전 조회 1,296
13년 전 조회 2,127
13년 전 조회 1,478
13년 전 조회 6,674
13년 전 조회 1,833
13년 전 조회 1,445
13년 전 조회 2,487
13년 전 조회 1,296
13년 전 조회 2,243
13년 전 조회 3,752
13년 전 조회 1,290
13년 전 조회 1,305
13년 전 조회 1,423
13년 전 조회 1,293
13년 전 조회 1,221
13년 전 조회 1,485
13년 전 조회 1,220
13년 전 조회 1,767
13년 전 조회 1,737
13년 전 조회 1,492
13년 전 조회 1,253
13년 전 조회 1,440
13년 전 조회 2,197
13년 전 조회 1,195
13년 전 조회 3,209
13년 전 조회 2,904
13년 전 조회 2,798
13년 전 조회 2,107
13년 전 조회 1,417
13년 전 조회 4,554
13년 전 조회 2,394
13년 전 조회 2,848
13년 전 조회 1,234
13년 전 조회 1,156
13년 전 조회 2,344
13년 전 조회 1,329
13년 전 조회 2,573
13년 전 조회 2,221
13년 전 조회 2,056
13년 전 조회 1,911
13년 전 조회 5,335
13년 전 조회 3,726
13년 전 조회 2,078
13년 전 조회 1,167
13년 전 조회 1,824
13년 전 조회 2,310
13년 전 조회 2,046
13년 전 조회 1,834
13년 전 조회 1,511
13년 전 조회 1,149
13년 전 조회 1,588
13년 전 조회 1,428
13년 전 조회 1,239
13년 전 조회 1,231
13년 전 조회 1,699
13년 전 조회 1,136
13년 전 조회 1,094
13년 전 조회 1,191
13년 전 조회 1,111
13년 전 조회 1,742
13년 전 조회 1,449
13년 전 조회 2,951
13년 전 조회 1,185
13년 전 조회 1,465
13년 전 조회 2,248
13년 전 조회 1,386
13년 전 조회 1,321
13년 전 조회 1,286
13년 전 조회 1,404
13년 전 조회 1,795
13년 전 조회 1,359
13년 전 조회 1,388
13년 전 조회 1,705
13년 전 조회 1,511
13년 전 조회 2,146
13년 전 조회 1,609
13년 전 조회 1,128
13년 전 조회 1,720
13년 전 조회 5,054
13년 전 조회 1,367
13년 전 조회 1,891
13년 전 조회 3,503
13년 전 조회 2,110
13년 전 조회 2,461
13년 전 조회 2,084
13년 전 조회 2,753
13년 전 조회 2,172
13년 전 조회 1,761
13년 전 조회 1,225
13년 전 조회 1.4만
13년 전 조회 2,009
13년 전 조회 4,121
13년 전 조회 1,766
13년 전 조회 1,204
13년 전 조회 1,362
13년 전 조회 1,205