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,641
13년 전 조회 1,755
13년 전 조회 1,989
13년 전 조회 1,889
13년 전 조회 1,674
13년 전 조회 2,479
13년 전 조회 1,858
13년 전 조회 7,061
13년 전 조회 2,221
13년 전 조회 1,825
13년 전 조회 2,878
13년 전 조회 1,660
13년 전 조회 2,605
13년 전 조회 4,082
13년 전 조회 1,657
13년 전 조회 1,654
13년 전 조회 1,777
13년 전 조회 1,672
13년 전 조회 1,568
13년 전 조회 1,827
13년 전 조회 1,574
13년 전 조회 2,084
13년 전 조회 2,107
13년 전 조회 1,839
13년 전 조회 1,577
13년 전 조회 1,785
13년 전 조회 2,507
13년 전 조회 1,536
13년 전 조회 3,530
13년 전 조회 3,263
13년 전 조회 3,114
13년 전 조회 2,435
13년 전 조회 1,732
13년 전 조회 4,895
13년 전 조회 2,725
13년 전 조회 3,195
13년 전 조회 1,595
13년 전 조회 1,543
13년 전 조회 2,702
13년 전 조회 1,701
13년 전 조회 2,909
13년 전 조회 2,585
13년 전 조회 2,393
13년 전 조회 2,232
13년 전 조회 5,683
13년 전 조회 4,068
13년 전 조회 2,456
13년 전 조회 1,539
13년 전 조회 2,190
13년 전 조회 2,656
13년 전 조회 2,400
13년 전 조회 2,195
13년 전 조회 1,915
13년 전 조회 1,539
13년 전 조회 1,967
13년 전 조회 1,816
13년 전 조회 1,652
13년 전 조회 1,622
13년 전 조회 2,083
13년 전 조회 1,541
13년 전 조회 1,491
13년 전 조회 1,556
13년 전 조회 1,481
13년 전 조회 2,103
13년 전 조회 1,798
13년 전 조회 3,327
13년 전 조회 1,557
13년 전 조회 1,846
13년 전 조회 2,602
13년 전 조회 1,742
13년 전 조회 1,698
13년 전 조회 1,648
13년 전 조회 1,763
13년 전 조회 2,165
13년 전 조회 1,742
13년 전 조회 1,776
13년 전 조회 2,119
13년 전 조회 1,904
13년 전 조회 2,513
13년 전 조회 1,967
13년 전 조회 1,522
13년 전 조회 2,135
13년 전 조회 5,469
13년 전 조회 1,814
13년 전 조회 2,321
13년 전 조회 3,939
13년 전 조회 2,526
13년 전 조회 2,880
13년 전 조회 2,495
13년 전 조회 3,163
13년 전 조회 2,577
13년 전 조회 2,168
13년 전 조회 1,629
13년 전 조회 1.5만
13년 전 조회 2,427
13년 전 조회 4,550
13년 전 조회 2,203
13년 전 조회 1,643
13년 전 조회 1,800
13년 전 조회 1,643