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,643
13년 전 조회 1,757
13년 전 조회 1,990
13년 전 조회 1,893
13년 전 조회 1,674
13년 전 조회 2,483
13년 전 조회 1,859
13년 전 조회 7,061
13년 전 조회 2,223
13년 전 조회 1,828
13년 전 조회 2,880
13년 전 조회 1,662
13년 전 조회 2,606
13년 전 조회 4,082
13년 전 조회 1,657
13년 전 조회 1,655
13년 전 조회 1,778
13년 전 조회 1,672
13년 전 조회 1,568
13년 전 조회 1,828
13년 전 조회 1,574
13년 전 조회 2,085
13년 전 조회 2,107
13년 전 조회 1,840
13년 전 조회 1,578
13년 전 조회 1,785
13년 전 조회 2,508
13년 전 조회 1,537
13년 전 조회 3,533
13년 전 조회 3,263
13년 전 조회 3,115
13년 전 조회 2,435
13년 전 조회 1,734
13년 전 조회 4,899
13년 전 조회 2,726
13년 전 조회 3,198
13년 전 조회 1,596
13년 전 조회 1,543
13년 전 조회 2,703
13년 전 조회 1,702
13년 전 조회 2,909
13년 전 조회 2,585
13년 전 조회 2,394
13년 전 조회 2,234
13년 전 조회 5,685
13년 전 조회 4,072
13년 전 조회 2,457
13년 전 조회 1,539
13년 전 조회 2,194
13년 전 조회 2,657
13년 전 조회 2,400
13년 전 조회 2,195
13년 전 조회 1,915
13년 전 조회 1,539
13년 전 조회 1,969
13년 전 조회 1,816
13년 전 조회 1,653
13년 전 조회 1,625
13년 전 조회 2,083
13년 전 조회 1,542
13년 전 조회 1,491
13년 전 조회 1,558
13년 전 조회 1,483
13년 전 조회 2,105
13년 전 조회 1,799
13년 전 조회 3,329
13년 전 조회 1,557
13년 전 조회 1,847
13년 전 조회 2,603
13년 전 조회 1,742
13년 전 조회 1,700
13년 전 조회 1,648
13년 전 조회 1,763
13년 전 조회 2,165
13년 전 조회 1,742
13년 전 조회 1,779
13년 전 조회 2,119
13년 전 조회 1,905
13년 전 조회 2,514
13년 전 조회 1,969
13년 전 조회 1,524
13년 전 조회 2,137
13년 전 조회 5,470
13년 전 조회 1,814
13년 전 조회 2,326
13년 전 조회 3,941
13년 전 조회 2,527
13년 전 조회 2,886
13년 전 조회 2,497
13년 전 조회 3,166
13년 전 조회 2,578
13년 전 조회 2,170
13년 전 조회 1,631
13년 전 조회 1.5만
13년 전 조회 2,429
13년 전 조회 4,552
13년 전 조회 2,204
13년 전 조회 1,645
13년 전 조회 1,800
13년 전 조회 1,644