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년 전 조회 539
13년 전 조회 596
13년 전 조회 836
13년 전 조회 756
13년 전 조회 546
13년 전 조회 1,390
13년 전 조회 726
13년 전 조회 5,907
13년 전 조회 1,073
13년 전 조회 708
13년 전 조회 1,738
13년 전 조회 550
13년 전 조회 1,479
13년 전 조회 2,951
13년 전 조회 559
13년 전 조회 593
13년 전 조회 678
13년 전 조회 587
13년 전 조회 496
13년 전 조회 746
13년 전 조회 490
13년 전 조회 1,031
13년 전 조회 1,010
13년 전 조회 781
13년 전 조회 527
13년 전 조회 698
13년 전 조회 1,468
13년 전 조회 514
13년 전 조회 2,509
13년 전 조회 2,217
13년 전 조회 2,090
13년 전 조회 1,409
13년 전 조회 709
13년 전 조회 3,851
13년 전 조회 1,717
13년 전 조회 2,137
13년 전 조회 537
13년 전 조회 509
13년 전 조회 1,641
13년 전 조회 633
13년 전 조회 1,862
13년 전 조회 1,551
13년 전 조회 1,328
13년 전 조회 1,255
13년 전 조회 4,651
13년 전 조회 3,081
13년 전 조회 1,448
13년 전 조회 548
13년 전 조회 1,187
13년 전 조회 1,659
13년 전 조회 1,397
13년 전 조회 1,181
13년 전 조회 841
13년 전 조회 504
13년 전 조회 895
13년 전 조회 759
13년 전 조회 583
13년 전 조회 591
13년 전 조회 1,041
13년 전 조회 480
13년 전 조회 440
13년 전 조회 530
13년 전 조회 444
13년 전 조회 1,072
13년 전 조회 767
13년 전 조회 2,285
13년 전 조회 525
13년 전 조회 810
13년 전 조회 1,549
13년 전 조회 731
13년 전 조회 664
13년 전 조회 624
13년 전 조회 735
13년 전 조회 1,138
13년 전 조회 693
13년 전 조회 726
13년 전 조회 1,039
13년 전 조회 846
13년 전 조회 1,459
13년 전 조회 943
13년 전 조회 458
13년 전 조회 1,015
13년 전 조회 4,321
13년 전 조회 616
13년 전 조회 1,108
13년 전 조회 2,748
13년 전 조회 1,332
13년 전 조회 1,701
13년 전 조회 1,329
13년 전 조회 1,991
13년 전 조회 1,397
13년 전 조회 974
13년 전 조회 459
13년 전 조회 1.3만
13년 전 조회 1,238
13년 전 조회 3,375
13년 전 조회 1,007
13년 전 조회 465
13년 전 조회 640
13년 전 조회 454
🐛 버그신고