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,769
13년 전 조회 1,887
13년 전 조회 2,138
13년 전 조회 2,014
13년 전 조회 1,813
13년 전 조회 2,627
13년 전 조회 1,990
13년 전 조회 7,193
13년 전 조회 2,346
13년 전 조회 1,968
13년 전 조회 3,053
13년 전 조회 1,785
13년 전 조회 2,736
13년 전 조회 4,222
13년 전 조회 1,805
13년 전 조회 1,780
13년 전 조회 1,912
13년 전 조회 1,798
13년 전 조회 1,707
13년 전 조회 1,948
13년 전 조회 1,709
13년 전 조회 2,220
13년 전 조회 2,267
13년 전 조회 1,970
13년 전 조회 1,723
13년 전 조회 1,910
13년 전 조회 2,647
13년 전 조회 1,678
13년 전 조회 3,670
13년 전 조회 3,385
13년 전 조회 3,261
13년 전 조회 2,587
13년 전 조회 1,873
13년 전 조회 5,042
13년 전 조회 2,867
13년 전 조회 3,322
13년 전 조회 1,719
13년 전 조회 1,662
13년 전 조회 2,820
13년 전 조회 1,829
13년 전 조회 3,027
13년 전 조회 2,713
13년 전 조회 2,505
13년 전 조회 2,371
13년 전 조회 5,835
13년 전 조회 4,209
13년 전 조회 2,596
13년 전 조회 1,657
13년 전 조회 2,324
13년 전 조회 2,782
13년 전 조회 2,537
13년 전 조회 2,330
13년 전 조회 2,051
13년 전 조회 1,661
13년 전 조회 2,095
13년 전 조회 1,944
13년 전 조회 1,790
13년 전 조회 1,746
13년 전 조회 2,213
13년 전 조회 1,688
13년 전 조회 1,621
13년 전 조회 1,685
13년 전 조회 1,607
13년 전 조회 2,240
13년 전 조회 1,934
13년 전 조회 3,464
13년 전 조회 1,697
13년 전 조회 1,993
13년 전 조회 2,746
13년 전 조회 1,875
13년 전 조회 1,825
13년 전 조회 1,791
13년 전 조회 1,903
13년 전 조회 2,305
13년 전 조회 1,860
13년 전 조회 1,907
13년 전 조회 2,264
13년 전 조회 2,039
13년 전 조회 2,655
13년 전 조회 2,107
13년 전 조회 1,649
13년 전 조회 2,256
13년 전 조회 5,585
13년 전 조회 1,932
13년 전 조회 2,463
13년 전 조회 4,076
13년 전 조회 2,671
13년 전 조회 3,014
13년 전 조회 2,639
13년 전 조회 3,297
13년 전 조회 2,719
13년 전 조회 2,306
13년 전 조회 1,766
13년 전 조회 1.5만
13년 전 조회 2,563
13년 전 조회 4,681
13년 전 조회 2,337
13년 전 조회 1,773
13년 전 조회 1,936
13년 전 조회 1,773