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년 전 조회 474
13년 전 조회 539
13년 전 조회 776
13년 전 조회 701
13년 전 조회 492
13년 전 조회 1,334
13년 전 조회 678
13년 전 조회 5,860
13년 전 조회 1,021
13년 전 조회 655
13년 전 조회 1,692
13년 전 조회 500
13년 전 조회 1,420
13년 전 조회 2,894
13년 전 조회 503
13년 전 조회 539
13년 전 조회 627
13년 전 조회 532
13년 전 조회 434
13년 전 조회 694
13년 전 조회 438
13년 전 조회 978
13년 전 조회 951
13년 전 조회 719
13년 전 조회 476
13년 전 조회 634
13년 전 조회 1,411
13년 전 조회 465
13년 전 조회 2,444
13년 전 조회 2,156
13년 전 조회 2,038
13년 전 조회 1,352
13년 전 조회 659
13년 전 조회 3,797
13년 전 조회 1,665
13년 전 조회 2,081
13년 전 조회 492
13년 전 조회 459
13년 전 조회 1,596
13년 전 조회 582
13년 전 조회 1,804
13년 전 조회 1,487
13년 전 조회 1,280
13년 전 조회 1,207
13년 전 조회 4,602
13년 전 조회 3,040
13년 전 조회 1,398
13년 전 조회 484
13년 전 조회 1,134
13년 전 조회 1,606
13년 전 조회 1,342
13년 전 조회 1,127
13년 전 조회 790
13년 전 조회 453
13년 전 조회 845
13년 전 조회 714
13년 전 조회 537
13년 전 조회 543
13년 전 조회 994
13년 전 조회 441
13년 전 조회 396
13년 전 조회 483
13년 전 조회 401
13년 전 조회 1,027
13년 전 조회 720
13년 전 조회 2,235
13년 전 조회 484
13년 전 조회 763
13년 전 조회 1,501
13년 전 조회 681
13년 전 조회 619
13년 전 조회 579
13년 전 조회 690
13년 전 조회 1,089
13년 전 조회 652
13년 전 조회 679
13년 전 조회 990
13년 전 조회 801
13년 전 조회 1,408
13년 전 조회 900
13년 전 조회 412
13년 전 조회 964
13년 전 조회 4,269
13년 전 조회 565
13년 전 조회 1,058
13년 전 조회 2,699
13년 전 조회 1,277
13년 전 조회 1,650
13년 전 조회 1,284
13년 전 조회 1,943
13년 전 조회 1,350
13년 전 조회 930
13년 전 조회 415
13년 전 조회 1.3만
13년 전 조회 1,187
13년 전 조회 3,331
13년 전 조회 962
13년 전 조회 424
13년 전 조회 596
13년 전 조회 410
🐛 버그신고