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년 전 조회 930
13년 전 조회 1,000
13년 전 조회 1,242
13년 전 조회 1,151
13년 전 조회 955
13년 전 조회 1,757
13년 전 조회 1,137
13년 전 조회 6,327
13년 전 조회 1,479
13년 전 조회 1,113
13년 전 조회 2,151
13년 전 조회 960
13년 전 조회 1,892
13년 전 조회 3,392
13년 전 조회 955
13년 전 조회 981
13년 전 조회 1,071
13년 전 조회 997
13년 전 조회 895
13년 전 조회 1,149
13년 전 조회 883
13년 전 조회 1,428
13년 전 조회 1,386
13년 전 조회 1,178
13년 전 조회 911
13년 전 조회 1,101
13년 전 조회 1,864
13년 전 조회 887
13년 전 조회 2,905
13년 전 조회 2,617
13년 전 조회 2,486
13년 전 조회 1,778
13년 전 조회 1,100
13년 전 조회 4,249
13년 전 조회 2,091
13년 전 조회 2,548
13년 전 조회 918
13년 전 조회 884
13년 전 조회 2,004
13년 전 조회 1,029
13년 전 조회 2,261
13년 전 조회 1,938
13년 전 조회 1,732
13년 전 조회 1,650
13년 전 조회 5,109
13년 전 조회 3,459
13년 전 조회 1,819
13년 전 조회 913
13년 전 조회 1,566
13년 전 조회 2,073
13년 전 조회 1,788
13년 전 조회 1,580
13년 전 조회 1,246
13년 전 조회 904
13년 전 조회 1,303
13년 전 조회 1,154
13년 전 조회 980
13년 전 조회 976
13년 전 조회 1,419
13년 전 조회 885
13년 전 조회 825
13년 전 조회 915
13년 전 조회 842
13년 전 조회 1,460
13년 전 조회 1,174
13년 전 조회 2,665
13년 전 조회 916
13년 전 조회 1,185
13년 전 조회 1,974
13년 전 조회 1,119
13년 전 조회 1,058
13년 전 조회 1,010
13년 전 조회 1,149
13년 전 조회 1,519
13년 전 조회 1,083
13년 전 조회 1,135
13년 전 조회 1,417
13년 전 조회 1,244
13년 전 조회 1,850
13년 전 조회 1,338
13년 전 조회 855
13년 전 조회 1,393
13년 전 조회 4,707
13년 전 조회 1,017
13년 전 조회 1,536
13년 전 조회 3,177
13년 전 조회 1,756
13년 전 조회 2,098
13년 전 조회 1,738
13년 전 조회 2,401
13년 전 조회 1,818
13년 전 조회 1,408
13년 전 조회 877
13년 전 조회 1.4만
13년 전 조회 1,660
13년 전 조회 3,781
13년 전 조회 1,418
13년 전 조회 868
13년 전 조회 1,059
13년 전 조회 870