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,091
13년 전 조회 1,152
13년 전 조회 1,410
13년 전 조회 1,321
13년 전 조회 1,115
13년 전 조회 1,928
13년 전 조회 1,304
13년 전 조회 6,489
13년 전 조회 1,650
13년 전 조회 1,276
13년 전 조회 2,310
13년 전 조회 1,113
13년 전 조회 2,057
13년 전 조회 3,561
13년 전 조회 1,115
13년 전 조회 1,127
13년 전 조회 1,232
13년 전 조회 1,140
13년 전 조회 1,043
13년 전 조회 1,309
13년 전 조회 1,048
13년 전 조회 1,601
13년 전 조회 1,559
13년 전 조회 1,326
13년 전 조회 1,081
13년 전 조회 1,264
13년 전 조회 2,016
13년 전 조회 1,038
13년 전 조회 3,038
13년 전 조회 2,746
13년 전 조회 2,642
13년 전 조회 1,941
13년 전 조회 1,254
13년 전 조회 4,388
13년 전 조회 2,226
13년 전 조회 2,688
13년 전 조회 1,067
13년 전 조회 1,003
13년 전 조회 2,141
13년 전 조회 1,168
13년 전 조회 2,391
13년 전 조회 2,061
13년 전 조회 1,874
13년 전 조회 1,768
13년 전 조회 5,200
13년 전 조회 3,579
13년 전 조회 1,941
13년 전 조회 1,026
13년 전 조회 1,681
13년 전 조회 2,175
13년 전 조회 1,888
13년 전 조회 1,689
13년 전 조회 1,364
13년 전 조회 1,020
13년 전 조회 1,431
13년 전 조회 1,278
13년 전 조회 1,103
13년 전 조회 1,087
13년 전 조회 1,542
13년 전 조회 1,010
13년 전 조회 954
13년 전 조회 1,044
13년 전 조회 961
13년 전 조회 1,589
13년 전 조회 1,296
13년 전 조회 2,804
13년 전 조회 1,044
13년 전 조회 1,321
13년 전 조회 2,096
13년 전 조회 1,258
13년 전 조회 1,178
13년 전 조회 1,137
13년 전 조회 1,260
13년 전 조회 1,645
13년 전 조회 1,216
13년 전 조회 1,264
13년 전 조회 1,551
13년 전 조회 1,384
13년 전 조회 1,990
13년 전 조회 1,471
13년 전 조회 986
13년 전 조회 1,557
13년 전 조회 4,882
13년 전 조회 1,199
13년 전 조회 1,738
13년 전 조회 3,335
13년 전 조회 1,944
13년 전 조회 2,282
13년 전 조회 1,907
13년 전 조회 2,587
13년 전 조회 2,010
13년 전 조회 1,595
13년 전 조회 1,059
13년 전 조회 1.4만
13년 전 조회 1,848
13년 전 조회 3,989
13년 전 조회 1,614
13년 전 조회 1,068
13년 전 조회 1,228
13년 전 조회 1,065