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,442
13년 전 조회 1,534
13년 전 조회 1,773
13년 전 조회 1,670
13년 전 조회 1,446
13년 전 조회 2,285
13년 전 조회 1,631
13년 전 조회 6,855
13년 전 조회 2,010
13년 전 조회 1,618
13년 전 조회 2,651
13년 전 조회 1,456
13년 전 조회 2,410
13년 전 조회 3,900
13년 전 조회 1,449
13년 전 조회 1,452
13년 전 조회 1,568
13년 전 조회 1,458
13년 전 조회 1,372
13년 전 조회 1,644
13년 전 조회 1,386
13년 전 조회 1,909
13년 전 조회 1,910
13년 전 조회 1,656
13년 전 조회 1,405
13년 전 조회 1,585
13년 전 조회 2,341
13년 전 조회 1,337
13년 전 조회 3,347
13년 전 조회 3,043
13년 전 조회 2,935
13년 전 조회 2,228
13년 전 조회 1,557
13년 전 조회 4,713
13년 전 조회 2,551
13년 전 조회 3,021
13년 전 조회 1,413
13년 전 조회 1,343
13년 전 조회 2,509
13년 전 조회 1,507
13년 전 조회 2,735
13년 전 조회 2,384
13년 전 조회 2,213
13년 전 조회 2,068
13년 전 조회 5,505
13년 전 조회 3,891
13년 전 조회 2,259
13년 전 조회 1,351
13년 전 조회 1,999
13년 전 조회 2,484
13년 전 조회 2,214
13년 전 조회 2,015
13년 전 조회 1,719
13년 전 조회 1,347
13년 전 조회 1,768
13년 전 조회 1,618
13년 전 조회 1,451
13년 전 조회 1,426
13년 전 조회 1,877
13년 전 조회 1,330
13년 전 조회 1,290
13년 전 조회 1,368
13년 전 조회 1,312
13년 전 조회 1,906
13년 전 조회 1,620
13년 전 조회 3,125
13년 전 조회 1,362
13년 전 조회 1,646
13년 전 조회 2,414
13년 전 조회 1,561
13년 전 조회 1,503
13년 전 조회 1,462
13년 전 조회 1,590
13년 전 조회 1,969
13년 전 조회 1,559
13년 전 조회 1,577
13년 전 조회 1,913
13년 전 조회 1,708
13년 전 조회 2,320
13년 전 조회 1,776
13년 전 조회 1,330
13년 전 조회 1,933
13년 전 조회 5,248
13년 전 조회 1,598
13년 전 조회 2,106
13년 전 조회 3,719
13년 전 조회 2,327
13년 전 조회 2,657
13년 전 조회 2,293
13년 전 조회 2,944
13년 전 조회 2,383
13년 전 조회 1,967
13년 전 조회 1,426
13년 전 조회 1.4만
13년 전 조회 2,212
13년 전 조회 4,323
13년 전 조회 1,967
13년 전 조회 1,409
13년 전 조회 1,585
13년 전 조회 1,437