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년 전 조회 638
13년 전 조회 693
13년 전 조회 929
13년 전 조회 847
13년 전 조회 637
13년 전 조회 1,476
13년 전 조회 827
13년 전 조회 6,003
13년 전 조회 1,169
13년 전 조회 798
13년 전 조회 1,829
13년 전 조회 653
13년 전 조회 1,578
13년 전 조회 3,048
13년 전 조회 657
13년 전 조회 668
13년 전 조회 766
13년 전 조회 682
13년 전 조회 583
13년 전 조회 836
13년 전 조회 588
13년 전 조회 1,130
13년 전 조회 1,093
13년 전 조회 877
13년 전 조회 631
13년 전 조회 786
13년 전 조회 1,566
13년 전 조회 608
13년 전 조회 2,589
13년 전 조회 2,315
13년 전 조회 2,191
13년 전 조회 1,503
13년 전 조회 798
13년 전 조회 3,950
13년 전 조회 1,801
13년 전 조회 2,232
13년 전 조회 639
13년 전 조회 605
13년 전 조회 1,717
13년 전 조회 731
13년 전 조회 1,951
13년 전 조회 1,640
13년 전 조회 1,428
13년 전 조회 1,351
13년 전 조회 4,763
13년 전 조회 3,178
13년 전 조회 1,545
13년 전 조회 626
13년 전 조회 1,284
13년 전 조회 1,765
13년 전 조회 1,483
13년 전 조회 1,272
13년 전 조회 945
13년 전 조회 604
13년 전 조회 1,004
13년 전 조회 857
13년 전 조회 685
13년 전 조회 678
13년 전 조회 1,143
13년 전 조회 578
13년 전 조회 538
13년 전 조회 625
13년 전 조회 537
13년 전 조회 1,168
13년 전 조회 867
13년 전 조회 2,387
13년 전 조회 619
13년 전 조회 899
13년 전 조회 1,647
13년 전 조회 818
13년 전 조회 774
13년 전 조회 715
13년 전 조회 823
13년 전 조회 1,229
13년 전 조회 789
13년 전 조회 816
13년 전 조회 1,144
13년 전 조회 938
13년 전 조회 1,555
13년 전 조회 1,040
13년 전 조회 558
13년 전 조회 1,100
13년 전 조회 4,412
13년 전 조회 709
13년 전 조회 1,205
13년 전 조회 2,844
13년 전 조회 1,433
13년 전 조회 1,794
13년 전 조회 1,426
13년 전 조회 2,085
13년 전 조회 1,494
13년 전 조회 1,078
13년 전 조회 553
13년 전 조회 1.3만
13년 전 조회 1,340
13년 전 조회 3,479
13년 전 조회 1,107
13년 전 조회 561
13년 전 조회 735
13년 전 조회 545
🐛 버그신고