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,705
13년 전 조회 1,819
13년 전 조회 2,060
13년 전 조회 1,951
13년 전 조회 1,738
13년 전 조회 2,557
13년 전 조회 1,931
13년 전 조회 7,137
13년 전 조회 2,291
13년 전 조회 1,895
13년 전 조회 2,968
13년 전 조회 1,729
13년 전 조회 2,669
13년 전 조회 4,158
13년 전 조회 1,721
13년 전 조회 1,723
13년 전 조회 1,834
13년 전 조회 1,746
13년 전 조회 1,635
13년 전 조회 1,890
13년 전 조회 1,638
13년 전 조회 2,147
13년 전 조회 2,176
13년 전 조회 1,895
13년 전 조회 1,645
13년 전 조회 1,837
13년 전 조회 2,571
13년 전 조회 1,607
13년 전 조회 3,596
13년 전 조회 3,309
13년 전 조회 3,189
13년 전 조회 2,501
13년 전 조회 1,792
13년 전 조회 4,958
13년 전 조회 2,787
13년 전 조회 3,256
13년 전 조회 1,645
13년 전 조회 1,596
13년 전 조회 2,759
13년 전 조회 1,765
13년 전 조회 2,956
13년 전 조회 2,640
13년 전 조회 2,444
13년 전 조회 2,299
13년 전 조회 5,750
13년 전 조회 4,128
13년 전 조회 2,516
13년 전 조회 1,595
13년 전 조회 2,256
13년 전 조회 2,712
13년 전 조회 2,460
13년 전 조회 2,256
13년 전 조회 1,980
13년 전 조회 1,592
13년 전 조회 2,038
13년 전 조회 1,874
13년 전 조회 1,703
13년 전 조회 1,677
13년 전 조회 2,136
13년 전 조회 1,601
13년 전 조회 1,550
13년 전 조회 1,609
13년 전 조회 1,541
13년 전 조회 2,167
13년 전 조회 1,863
13년 전 조회 3,391
13년 전 조회 1,621
13년 전 조회 1,908
13년 전 조회 2,674
13년 전 조회 1,816
13년 전 조회 1,757
13년 전 조회 1,718
13년 전 조회 1,826
13년 전 조회 2,237
13년 전 조회 1,799
13년 전 조회 1,847
13년 전 조회 2,196
13년 전 조회 1,973
13년 전 조회 2,587
13년 전 조회 2,038
13년 전 조회 1,587
13년 전 조회 2,193
13년 전 조회 5,527
13년 전 조회 1,877
13년 전 조회 2,395
13년 전 조회 4,005
13년 전 조회 2,596
13년 전 조회 2,954
13년 전 조회 2,568
13년 전 조회 3,229
13년 전 조회 2,653
13년 전 조회 2,239
13년 전 조회 1,705
13년 전 조회 1.5만
13년 전 조회 2,489
13년 전 조회 4,618
13년 전 조회 2,266
13년 전 조회 1,716
13년 전 조회 1,869
13년 전 조회 1,701