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년 전 조회 760
13년 전 조회 836
13년 전 조회 1,058
13년 전 조회 976
13년 전 조회 774
13년 전 조회 1,589
13년 전 조회 959
13년 전 조회 6,125
13년 전 조회 1,292
13년 전 조회 931
13년 전 조회 1,968
13년 전 조회 779
13년 전 조회 1,715
13년 전 조회 3,185
13년 전 조회 788
13년 전 조회 806
13년 전 조회 906
13년 전 조회 815
13년 전 조회 721
13년 전 조회 984
13년 전 조회 728
13년 전 조회 1,258
13년 전 조회 1,216
13년 전 조회 1,006
13년 전 조회 743
13년 전 조회 914
13년 전 조회 1,687
13년 전 조회 733
13년 전 조회 2,721
13년 전 조회 2,446
13년 전 조회 2,306
13년 전 조회 1,630
13년 전 조회 929
13년 전 조회 4,088
13년 전 조회 1,922
13년 전 조회 2,352
13년 전 조회 763
13년 전 조회 721
13년 전 조회 1,841
13년 전 조회 860
13년 전 조회 2,073
13년 전 조회 1,753
13년 전 조회 1,565
13년 전 조회 1,476
13년 전 조회 4,882
13년 전 조회 3,297
13년 전 조회 1,669
13년 전 조회 748
13년 전 조회 1,412
13년 전 조회 1,880
13년 전 조회 1,624
13년 전 조회 1,410
13년 전 조회 1,076
13년 전 조회 720
13년 전 조회 1,133
13년 전 조회 1,001
13년 전 조회 818
13년 전 조회 807
13년 전 조회 1,259
13년 전 조회 708
13년 전 조회 660
13년 전 조회 747
13년 전 조회 665
13년 전 조회 1,286
13년 전 조회 993
13년 전 조회 2,502
13년 전 조회 749
13년 전 조회 1,021
13년 전 조회 1,772
13년 전 조회 961
13년 전 조회 892
13년 전 조회 843
13년 전 조회 956
13년 전 조회 1,356
13년 전 조회 912
13년 전 조회 956
13년 전 조회 1,264
13년 전 조회 1,066
13년 전 조회 1,688
13년 전 조회 1,148
13년 전 조회 684
13년 전 조회 1,216
13년 전 조회 4,527
13년 전 조회 837
13년 전 조회 1,343
13년 전 조회 2,979
13년 전 조회 1,557
13년 전 조회 1,916
13년 전 조회 1,550
13년 전 조회 2,212
13년 전 조회 1,624
13년 전 조회 1,210
13년 전 조회 693
13년 전 조회 1.4만
13년 전 조회 1,480
13년 전 조회 3,608
13년 전 조회 1,231
13년 전 조회 693
13년 전 조회 854
13년 전 조회 685