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년 전 조회 864
13년 전 조회 920
13년 전 조회 1,159
13년 전 조회 1,080
13년 전 조회 870
13년 전 조회 1,676
13년 전 조회 1,059
13년 전 조회 6,240
13년 전 조회 1,394
13년 전 조회 1,027
13년 전 조회 2,078
13년 전 조회 881
13년 전 조회 1,813
13년 전 조회 3,316
13년 전 조회 876
13년 전 조회 908
13년 전 조회 1,001
13년 전 조회 918
13년 전 조회 820
13년 전 조회 1,068
13년 전 조회 822
13년 전 조회 1,348
13년 전 조회 1,305
13년 전 조회 1,097
13년 전 조회 830
13년 전 조회 1,019
13년 전 조회 1,779
13년 전 조회 828
13년 전 조회 2,829
13년 전 조회 2,543
13년 전 조회 2,405
13년 전 조회 1,711
13년 전 조회 1,022
13년 전 조회 4,177
13년 전 조회 2,011
13년 전 조회 2,478
13년 전 조회 855
13년 전 조회 812
13년 전 조회 1,926
13년 전 조회 958
13년 전 조회 2,199
13년 전 조회 1,871
13년 전 조회 1,672
13년 전 조회 1,590
13년 전 조회 5,039
13년 전 조회 3,392
13년 전 조회 1,765
13년 전 조회 852
13년 전 조회 1,501
13년 전 조회 2,010
13년 전 조회 1,713
13년 전 조회 1,507
13년 전 조회 1,169
13년 전 조회 831
13년 전 조회 1,238
13년 전 조회 1,084
13년 전 조회 910
13년 전 조회 914
13년 전 조회 1,351
13년 전 조회 808
13년 전 조회 755
13년 전 조회 845
13년 전 조회 770
13년 전 조회 1,385
13년 전 조회 1,103
13년 전 조회 2,600
13년 전 조회 842
13년 전 조회 1,128
13년 전 조회 1,914
13년 전 조회 1,058
13년 전 조회 993
13년 전 조회 932
13년 전 조회 1,064
13년 전 조회 1,454
13년 전 조회 1,014
13년 전 조회 1,055
13년 전 조회 1,357
13년 전 조회 1,162
13년 전 조회 1,781
13년 전 조회 1,251
13년 전 조회 773
13년 전 조회 1,312
13년 전 조회 4,618
13년 전 조회 920
13년 전 조회 1,444
13년 전 조회 3,077
13년 전 조회 1,654
13년 전 조회 2,004
13년 전 조회 1,647
13년 전 조회 2,300
13년 전 조회 1,713
13년 전 조회 1,302
13년 전 조회 787
13년 전 조회 1.4만
13년 전 조회 1,562
13년 전 조회 3,693
13년 전 조회 1,314
13년 전 조회 771
13년 전 조회 952
13년 전 조회 767