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년 전 조회 551
13년 전 조회 611
13년 전 조회 851
13년 전 조회 773
13년 전 조회 554
13년 전 조회 1,401
13년 전 조회 741
13년 전 조회 5,914
13년 전 조회 1,090
13년 전 조회 720
13년 전 조회 1,750
13년 전 조회 567
13년 전 조회 1,488
13년 전 조회 2,967
13년 전 조회 571
13년 전 조회 605
13년 전 조회 701
13년 전 조회 603
13년 전 조회 503
13년 전 조회 762
13년 전 조회 502
13년 전 조회 1,044
13년 전 조회 1,024
13년 전 조회 791
13년 전 조회 542
13년 전 조회 706
13년 전 조회 1,480
13년 전 조회 527
13년 전 조회 2,517
13년 전 조회 2,231
13년 전 조회 2,107
13년 전 조회 1,425
13년 전 조회 724
13년 전 조회 3,870
13년 전 조회 1,730
13년 전 조회 2,152
13년 전 조회 560
13년 전 조회 518
13년 전 조회 1,653
13년 전 조회 642
13년 전 조회 1,873
13년 전 조회 1,563
13년 전 조회 1,347
13년 전 조회 1,267
13년 전 조회 4,668
13년 전 조회 3,090
13년 전 조회 1,466
13년 전 조회 561
13년 전 조회 1,202
13년 전 조회 1,675
13년 전 조회 1,408
13년 전 조회 1,194
13년 전 조회 851
13년 전 조회 517
13년 전 조회 910
13년 전 조회 771
13년 전 조회 591
13년 전 조회 602
13년 전 조회 1,053
13년 전 조회 489
13년 전 조회 454
13년 전 조회 543
13년 전 조회 459
13년 전 조회 1,082
13년 전 조회 778
13년 전 조회 2,296
13년 전 조회 541
13년 전 조회 818
13년 전 조회 1,561
13년 전 조회 742
13년 전 조회 684
13년 전 조회 639
13년 전 조회 745
13년 전 조회 1,146
13년 전 조회 708
13년 전 조회 739
13년 전 조회 1,056
13년 전 조회 856
13년 전 조회 1,474
13년 전 조회 959
13년 전 조회 468
13년 전 조회 1,031
13년 전 조회 4,340
13년 전 조회 627
13년 전 조회 1,123
13년 전 조회 2,761
13년 전 조회 1,344
13년 전 조회 1,716
13년 전 조회 1,346
13년 전 조회 2,003
13년 전 조회 1,410
13년 전 조회 995
13년 전 조회 476
13년 전 조회 1.3만
13년 전 조회 1,250
13년 전 조회 3,385
13년 전 조회 1,023
13년 전 조회 480
13년 전 조회 655
13년 전 조회 471
🐛 버그신고