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,513
13년 전 조회 1,617
13년 전 조회 1,847
13년 전 조회 1,770
13년 전 조회 1,529
13년 전 조회 2,354
13년 전 조회 1,714
13년 전 조회 6,928
13년 전 조회 2,083
13년 전 조회 1,723
13년 전 조회 2,752
13년 전 조회 1,544
13년 전 조회 2,490
13년 전 조회 3,971
13년 전 조회 1,522
13년 전 조회 1,535
13년 전 조회 1,661
13년 전 조회 1,539
13년 전 조회 1,453
13년 전 조회 1,716
13년 전 조회 1,454
13년 전 조회 1,994
13년 전 조회 1,988
13년 전 조회 1,733
13년 전 조회 1,485
13년 전 조회 1,663
13년 전 조회 2,413
13년 전 조회 1,428
13년 전 조회 3,416
13년 전 조회 3,131
13년 전 조회 2,988
13년 전 조회 2,298
13년 전 조회 1,620
13년 전 조회 4,791
13년 전 조회 2,615
13년 전 조회 3,089
13년 전 조회 1,482
13년 전 조회 1,431
13년 전 조회 2,588
13년 전 조회 1,580
13년 전 조회 2,806
13년 전 조회 2,467
13년 전 조회 2,278
13년 전 조회 2,128
13년 전 조회 5,567
13년 전 조회 3,963
13년 전 조회 2,332
13년 전 조회 1,423
13년 전 조회 2,066
13년 전 조회 2,541
13년 전 조회 2,284
13년 전 조회 2,092
13년 전 조회 1,796
13년 전 조회 1,437
13년 전 조회 1,846
13년 전 조회 1,702
13년 전 조회 1,528
13년 전 조회 1,513
13년 전 조회 1,965
13년 전 조회 1,419
13년 전 조회 1,373
13년 전 조회 1,446
13년 전 조회 1,375
13년 전 조회 1,978
13년 전 조회 1,691
13년 전 조회 3,206
13년 전 조회 1,430
13년 전 조회 1,718
13년 전 조회 2,487
13년 전 조회 1,629
13년 전 조회 1,585
13년 전 조회 1,522
13년 전 조회 1,654
13년 전 조회 2,061
13년 전 조회 1,620
13년 전 조회 1,658
13년 전 조회 1,989
13년 전 조회 1,769
13년 전 조회 2,397
13년 전 조회 1,840
13년 전 조회 1,397
13년 전 조회 2,013
13년 전 조회 5,323
13년 전 조회 1,676
13년 전 조회 2,190
13년 전 조회 3,794
13년 전 조회 2,406
13년 전 조회 2,748
13년 전 조회 2,371
13년 전 조회 3,035
13년 전 조회 2,464
13년 전 조회 2,051
13년 전 조회 1,501
13년 전 조회 1.4만
13년 전 조회 2,294
13년 전 조회 4,413
13년 전 조회 2,049
13년 전 조회 1,502
13년 전 조회 1,681
13년 전 조회 1,506