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,701
13년 전 조회 1,808
13년 전 조회 2,051
13년 전 조회 1,943
13년 전 조회 1,730
13년 전 조회 2,546
13년 전 조회 1,921
13년 전 조회 7,130
13년 전 조회 2,278
13년 전 조회 1,889
13년 전 조회 2,960
13년 전 조회 1,722
13년 전 조회 2,658
13년 전 조회 4,146
13년 전 조회 1,712
13년 전 조회 1,716
13년 전 조회 1,830
13년 전 조회 1,737
13년 전 조회 1,625
13년 전 조회 1,876
13년 전 조회 1,627
13년 전 조회 2,141
13년 전 조회 2,162
13년 전 조회 1,888
13년 전 조회 1,639
13년 전 조회 1,830
13년 전 조회 2,560
13년 전 조회 1,596
13년 전 조회 3,588
13년 전 조회 3,297
13년 전 조회 3,178
13년 전 조회 2,488
13년 전 조회 1,781
13년 전 조회 4,946
13년 전 조회 2,767
13년 전 조회 3,244
13년 전 조회 1,638
13년 전 조회 1,582
13년 전 조회 2,751
13년 전 조회 1,754
13년 전 조회 2,945
13년 전 조회 2,631
13년 전 조회 2,437
13년 전 조회 2,288
13년 전 조회 5,738
13년 전 조회 4,121
13년 전 조회 2,510
13년 전 조회 1,583
13년 전 조회 2,242
13년 전 조회 2,705
13년 전 조회 2,452
13년 전 조회 2,248
13년 전 조회 1,967
13년 전 조회 1,585
13년 전 조회 2,029
13년 전 조회 1,863
13년 전 조회 1,694
13년 전 조회 1,670
13년 전 조회 2,130
13년 전 조회 1,587
13년 전 조회 1,533
13년 전 조회 1,600
13년 전 조회 1,533
13년 전 조회 2,156
13년 전 조회 1,853
13년 전 조회 3,377
13년 전 조회 1,600
13년 전 조회 1,898
13년 전 조회 2,662
13년 전 조회 1,803
13년 전 조회 1,746
13년 전 조회 1,702
13년 전 조회 1,818
13년 전 조회 2,227
13년 전 조회 1,790
13년 전 조회 1,844
13년 전 조회 2,179
13년 전 조회 1,961
13년 전 조회 2,575
13년 전 조회 2,023
13년 전 조회 1,578
13년 전 조회 2,188
13년 전 조회 5,523
13년 전 조회 1,867
13년 전 조회 2,385
13년 전 조회 3,996
13년 전 조회 2,588
13년 전 조회 2,943
13년 전 조회 2,558
13년 전 조회 3,218
13년 전 조회 2,643
13년 전 조회 2,231
13년 전 조회 1,696
13년 전 조회 1.5만
13년 전 조회 2,484
13년 전 조회 4,606
13년 전 조회 2,256
13년 전 조회 1,703
13년 전 조회 1,857
13년 전 조회 1,697