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,625
13년 전 조회 1,741
13년 전 조회 1,974
13년 전 조회 1,872
13년 전 조회 1,662
13년 전 조회 2,462
13년 전 조회 1,844
13년 전 조회 7,042
13년 전 조회 2,199
13년 전 조회 1,810
13년 전 조회 2,862
13년 전 조회 1,647
13년 전 조회 2,589
13년 전 조회 4,065
13년 전 조회 1,642
13년 전 조회 1,638
13년 전 조회 1,764
13년 전 조회 1,652
13년 전 조회 1,551
13년 전 조회 1,812
13년 전 조회 1,561
13년 전 조회 2,076
13년 전 조회 2,097
13년 전 조회 1,820
13년 전 조회 1,565
13년 전 조회 1,772
13년 전 조회 2,498
13년 전 조회 1,524
13년 전 조회 3,513
13년 전 조회 3,246
13년 전 조회 3,094
13년 전 조회 2,425
13년 전 조회 1,720
13년 전 조회 4,885
13년 전 조회 2,714
13년 전 조회 3,183
13년 전 조회 1,578
13년 전 조회 1,535
13년 전 조회 2,686
13년 전 조회 1,687
13년 전 조회 2,897
13년 전 조회 2,571
13년 전 조회 2,382
13년 전 조회 2,217
13년 전 조회 5,660
13년 전 조회 4,061
13년 전 조회 2,441
13년 전 조회 1,527
13년 전 조회 2,176
13년 전 조회 2,643
13년 전 조회 2,388
13년 전 조회 2,191
13년 전 조회 1,904
13년 전 조회 1,530
13년 전 조회 1,956
13년 전 조회 1,808
13년 전 조회 1,641
13년 전 조회 1,614
13년 전 조회 2,072
13년 전 조회 1,533
13년 전 조회 1,477
13년 전 조회 1,544
13년 전 조회 1,471
13년 전 조회 2,096
13년 전 조회 1,786
13년 전 조회 3,317
13년 전 조회 1,544
13년 전 조회 1,834
13년 전 조회 2,597
13년 전 조회 1,727
13년 전 조회 1,684
13년 전 조회 1,635
13년 전 조회 1,752
13년 전 조회 2,153
13년 전 조회 1,728
13년 전 조회 1,755
13년 전 조회 2,103
13년 전 조회 1,892
13년 전 조회 2,490
13년 전 조회 1,954
13년 전 조회 1,510
13년 전 조회 2,118
13년 전 조회 5,450
13년 전 조회 1,799
13년 전 조회 2,304
13년 전 조회 3,923
13년 전 조회 2,505
13년 전 조회 2,868
13년 전 조회 2,478
13년 전 조회 3,146
13년 전 조회 2,563
13년 전 조회 2,151
13년 전 조회 1,616
13년 전 조회 1.5만
13년 전 조회 2,411
13년 전 조회 4,532
13년 전 조회 2,183
13년 전 조회 1,625
13년 전 조회 1,787
13년 전 조회 1,630