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,708
13년 전 조회 1,823
13년 전 조회 2,070
13년 전 조회 1,957
13년 전 조회 1,741
13년 전 조회 2,561
13년 전 조회 1,936
13년 전 조회 7,140
13년 전 조회 2,293
13년 전 조회 1,900
13년 전 조회 2,970
13년 전 조회 1,734
13년 전 조회 2,673
13년 전 조회 4,160
13년 전 조회 1,727
13년 전 조회 1,727
13년 전 조회 1,837
13년 전 조회 1,748
13년 전 조회 1,638
13년 전 조회 1,893
13년 전 조회 1,643
13년 전 조회 2,149
13년 전 조회 2,182
13년 전 조회 1,897
13년 전 조회 1,648
13년 전 조회 1,843
13년 전 조회 2,573
13년 전 조회 1,609
13년 전 조회 3,601
13년 전 조회 3,312
13년 전 조회 3,193
13년 전 조회 2,505
13년 전 조회 1,799
13년 전 조회 4,966
13년 전 조회 2,789
13년 전 조회 3,260
13년 전 조회 1,649
13년 전 조회 1,599
13년 전 조회 2,765
13년 전 조회 1,769
13년 전 조회 2,962
13년 전 조회 2,645
13년 전 조회 2,450
13년 전 조회 2,303
13년 전 조회 5,755
13년 전 조회 4,129
13년 전 조회 2,521
13년 전 조회 1,598
13년 전 조회 2,257
13년 전 조회 2,715
13년 전 조회 2,464
13년 전 조회 2,259
13년 전 조회 1,988
13년 전 조회 1,594
13년 전 조회 2,041
13년 전 조회 1,877
13년 전 조회 1,708
13년 전 조회 1,679
13년 전 조회 2,142
13년 전 조회 1,605
13년 전 조회 1,553
13년 전 조회 1,614
13년 전 조회 1,546
13년 전 조회 2,170
13년 전 조회 1,867
13년 전 조회 3,396
13년 전 조회 1,628
13년 전 조회 1,912
13년 전 조회 2,677
13년 전 조회 1,819
13년 전 조회 1,763
13년 전 조회 1,721
13년 전 조회 1,830
13년 전 조회 2,242
13년 전 조회 1,802
13년 전 조회 1,851
13년 전 조회 2,201
13년 전 조회 1,979
13년 전 조회 2,592
13년 전 조회 2,041
13년 전 조회 1,589
13년 전 조회 2,198
13년 전 조회 5,532
13년 전 조회 1,884
13년 전 조회 2,398
13년 전 조회 4,009
13년 전 조회 2,598
13년 전 조회 2,958
13년 전 조회 2,578
13년 전 조회 3,233
13년 전 조회 2,660
13년 전 조회 2,243
13년 전 조회 1,708
13년 전 조회 1.5만
13년 전 조회 2,496
13년 전 조회 4,621
13년 전 조회 2,269
13년 전 조회 1,721
13년 전 조회 1,874
13년 전 조회 1,707