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,550
13년 전 조회 1,662
13년 전 조회 1,889
13년 전 조회 1,804
13년 전 조회 1,572
13년 전 조회 2,388
13년 전 조회 1,754
13년 전 조회 6,959
13년 전 조회 2,123
13년 전 조회 1,750
13년 전 조회 2,785
13년 전 조회 1,580
13년 전 조회 2,525
13년 전 조회 4,011
13년 전 조회 1,571
13년 전 조회 1,571
13년 전 조회 1,694
13년 전 조회 1,576
13년 전 조회 1,471
13년 전 조회 1,746
13년 전 조회 1,492
13년 전 조회 2,019
13년 전 조회 2,031
13년 전 조회 1,753
13년 전 조회 1,510
13년 전 조회 1,699
13년 전 조회 2,435
13년 전 조회 1,458
13년 전 조회 3,445
13년 전 조회 3,170
13년 전 조회 3,029
13년 전 조회 2,345
13년 전 조회 1,647
13년 전 조회 4,824
13년 전 조회 2,647
13년 전 조회 3,126
13년 전 조회 1,510
13년 전 조회 1,466
13년 전 조회 2,616
13년 전 조회 1,614
13년 전 조회 2,830
13년 전 조회 2,496
13년 전 조회 2,304
13년 전 조회 2,156
13년 전 조회 5,589
13년 전 조회 3,998
13년 전 조회 2,371
13년 전 조회 1,452
13년 전 조회 2,110
13년 전 조회 2,576
13년 전 조회 2,317
13년 전 조회 2,127
13년 전 조회 1,832
13년 전 조회 1,471
13년 전 조회 1,873
13년 전 조회 1,733
13년 전 조회 1,570
13년 전 조회 1,544
13년 전 조회 2,001
13년 전 조회 1,459
13년 전 조회 1,406
13년 전 조회 1,474
13년 전 조회 1,414
13년 전 조회 2,010
13년 전 조회 1,724
13년 전 조회 3,245
13년 전 조회 1,469
13년 전 조회 1,760
13년 전 조회 2,520
13년 전 조회 1,665
13년 전 조회 1,618
13년 전 조회 1,557
13년 전 조회 1,687
13년 전 조회 2,090
13년 전 조회 1,644
13년 전 조회 1,696
13년 전 조회 2,033
13년 전 조회 1,808
13년 전 조회 2,430
13년 전 조회 1,868
13년 전 조회 1,428
13년 전 조회 2,056
13년 전 조회 5,365
13년 전 조회 1,709
13년 전 조회 2,233
13년 전 조회 3,834
13년 전 조회 2,436
13년 전 조회 2,789
13년 전 조회 2,409
13년 전 조회 3,076
13년 전 조회 2,504
13년 전 조회 2,087
13년 전 조회 1,544
13년 전 조회 1.4만
13년 전 조회 2,331
13년 전 조회 4,456
13년 전 조회 2,096
13년 전 조회 1,544
13년 전 조회 1,711
13년 전 조회 1,553