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년 전 조회 484
13년 전 조회 550
13년 전 조회 788
13년 전 조회 710
13년 전 조회 501
13년 전 조회 1,341
13년 전 조회 687
13년 전 조회 5,869
13년 전 조회 1,029
13년 전 조회 662
13년 전 조회 1,700
13년 전 조회 510
13년 전 조회 1,429
13년 전 조회 2,904
13년 전 조회 511
13년 전 조회 547
13년 전 조회 637
13년 전 조회 541
13년 전 조회 444
13년 전 조회 705
13년 전 조회 449
13년 전 조회 989
13년 전 조회 959
13년 전 조회 730
13년 전 조회 485
13년 전 조회 644
13년 전 조회 1,420
13년 전 조회 474
13년 전 조회 2,454
13년 전 조회 2,165
13년 전 조회 2,048
13년 전 조회 1,361
13년 전 조회 670
13년 전 조회 3,806
13년 전 조회 1,675
13년 전 조회 2,090
13년 전 조회 502
13년 전 조회 470
13년 전 조회 1,603
13년 전 조회 590
13년 전 조회 1,812
13년 전 조회 1,495
13년 전 조회 1,286
13년 전 조회 1,216
13년 전 조회 4,612
13년 전 조회 3,047
13년 전 조회 1,408
13년 전 조회 491
13년 전 조회 1,141
13년 전 조회 1,616
13년 전 조회 1,351
13년 전 조회 1,135
13년 전 조회 797
13년 전 조회 461
13년 전 조회 854
13년 전 조회 723
13년 전 조회 544
13년 전 조회 548
13년 전 조회 1,001
13년 전 조회 451
13년 전 조회 403
13년 전 조회 490
13년 전 조회 408
13년 전 조회 1,033
13년 전 조회 728
13년 전 조회 2,242
13년 전 조회 492
13년 전 조회 771
13년 전 조회 1,508
13년 전 조회 691
13년 전 조회 627
13년 전 조회 587
13년 전 조회 699
13년 전 조회 1,097
13년 전 조회 660
13년 전 조회 688
13년 전 조회 1,000
13년 전 조회 812
13년 전 조회 1,420
13년 전 조회 907
13년 전 조회 419
13년 전 조회 970
13년 전 조회 4,279
13년 전 조회 573
13년 전 조회 1,066
13년 전 조회 2,708
13년 전 조회 1,286
13년 전 조회 1,659
13년 전 조회 1,293
13년 전 조회 1,953
13년 전 조회 1,362
13년 전 조회 938
13년 전 조회 422
13년 전 조회 1.3만
13년 전 조회 1,199
13년 전 조회 3,339
13년 전 조회 973
13년 전 조회 432
13년 전 조회 602
13년 전 조회 419
🐛 버그신고