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,698
13년 전 조회 1,806
13년 전 조회 2,051
13년 전 조회 1,942
13년 전 조회 1,730
13년 전 조회 2,542
13년 전 조회 1,919
13년 전 조회 7,124
13년 전 조회 2,278
13년 전 조회 1,887
13년 전 조회 2,952
13년 전 조회 1,721
13년 전 조회 2,657
13년 전 조회 4,140
13년 전 조회 1,710
13년 전 조회 1,714
13년 전 조회 1,829
13년 전 조회 1,734
13년 전 조회 1,623
13년 전 조회 1,875
13년 전 조회 1,625
13년 전 조회 2,140
13년 전 조회 2,161
13년 전 조회 1,884
13년 전 조회 1,639
13년 전 조회 1,828
13년 전 조회 2,558
13년 전 조회 1,594
13년 전 조회 3,585
13년 전 조회 3,296
13년 전 조회 3,177
13년 전 조회 2,485
13년 전 조회 1,777
13년 전 조회 4,945
13년 전 조회 2,767
13년 전 조회 3,241
13년 전 조회 1,638
13년 전 조회 1,581
13년 전 조회 2,745
13년 전 조회 1,751
13년 전 조회 2,942
13년 전 조회 2,630
13년 전 조회 2,436
13년 전 조회 2,286
13년 전 조회 5,737
13년 전 조회 4,119
13년 전 조회 2,509
13년 전 조회 1,583
13년 전 조회 2,242
13년 전 조회 2,701
13년 전 조회 2,451
13년 전 조회 2,245
13년 전 조회 1,965
13년 전 조회 1,584
13년 전 조회 2,029
13년 전 조회 1,862
13년 전 조회 1,692
13년 전 조회 1,669
13년 전 조회 2,129
13년 전 조회 1,585
13년 전 조회 1,532
13년 전 조회 1,600
13년 전 조회 1,530
13년 전 조회 2,153
13년 전 조회 1,852
13년 전 조회 3,376
13년 전 조회 1,599
13년 전 조회 1,897
13년 전 조회 2,658
13년 전 조회 1,799
13년 전 조회 1,744
13년 전 조회 1,701
13년 전 조회 1,817
13년 전 조회 2,223
13년 전 조회 1,788
13년 전 조회 1,843
13년 전 조회 2,177
13년 전 조회 1,959
13년 전 조회 2,574
13년 전 조회 2,023
13년 전 조회 1,574
13년 전 조회 2,188
13년 전 조회 5,522
13년 전 조회 1,863
13년 전 조회 2,382
13년 전 조회 3,995
13년 전 조회 2,586
13년 전 조회 2,941
13년 전 조회 2,558
13년 전 조회 3,215
13년 전 조회 2,642
13년 전 조회 2,231
13년 전 조회 1,696
13년 전 조회 1.5만
13년 전 조회 2,482
13년 전 조회 4,603
13년 전 조회 2,256
13년 전 조회 1,701
13년 전 조회 1,855
13년 전 조회 1,697