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년 전 조회 843
13년 전 조회 892
13년 전 조회 1,134
13년 전 조회 1,054
13년 전 조회 846
13년 전 조회 1,650
13년 전 조회 1,032
13년 전 조회 6,204
13년 전 조회 1,366
13년 전 조회 998
13년 전 조회 2,047
13년 전 조회 853
13년 전 조회 1,792
13년 전 조회 3,281
13년 전 조회 859
13년 전 조회 884
13년 전 조회 977
13년 전 조회 889
13년 전 조회 792
13년 전 조회 1,046
13년 전 조회 792
13년 전 조회 1,330
13년 전 조회 1,280
13년 전 조회 1,077
13년 전 조회 802
13년 전 조회 985
13년 전 조회 1,751
13년 전 조회 801
13년 전 조회 2,798
13년 전 조회 2,510
13년 전 조회 2,371
13년 전 조회 1,683
13년 전 조회 991
13년 전 조회 4,150
13년 전 조회 1,986
13년 전 조회 2,439
13년 전 조회 823
13년 전 조회 783
13년 전 조회 1,898
13년 전 조회 933
13년 전 조회 2,161
13년 전 조회 1,833
13년 전 조회 1,637
13년 전 조회 1,555
13년 전 조회 4,995
13년 전 조회 3,365
13년 전 조회 1,739
13년 전 조회 819
13년 전 조회 1,478
13년 전 조회 1,972
13년 전 조회 1,677
13년 전 조회 1,482
13년 전 조회 1,136
13년 전 조회 794
13년 전 조회 1,205
13년 전 조회 1,055
13년 전 조회 893
13년 전 조회 885
13년 전 조회 1,325
13년 전 조회 786
13년 전 조회 727
13년 전 조회 817
13년 전 조회 742
13년 전 조회 1,351
13년 전 조회 1,068
13년 전 조회 2,569
13년 전 조회 816
13년 전 조회 1,096
13년 전 조회 1,877
13년 전 조회 1,034
13년 전 조회 978
13년 전 조회 901
13년 전 조회 1,032
13년 전 조회 1,427
13년 전 조회 989
13년 전 조회 1,032
13년 전 조회 1,337
13년 전 조회 1,140
13년 전 조회 1,755
13년 전 조회 1,222
13년 전 조회 753
13년 전 조회 1,286
13년 전 조회 4,584
13년 전 조회 898
13년 전 조회 1,417
13년 전 조회 3,055
13년 전 조회 1,629
13년 전 조회 1,988
13년 전 조회 1,629
13년 전 조회 2,280
13년 전 조회 1,688
13년 전 조회 1,274
13년 전 조회 767
13년 전 조회 1.4만
13년 전 조회 1,539
13년 전 조회 3,672
13년 전 조회 1,293
13년 전 조회 754
13년 전 조회 928
13년 전 조회 743