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년 전 조회 475
13년 전 조회 542
13년 전 조회 778
13년 전 조회 703
13년 전 조회 495
13년 전 조회 1,337
13년 전 조회 679
13년 전 조회 5,863
13년 전 조회 1,022
13년 전 조회 657
13년 전 조회 1,695
13년 전 조회 502
13년 전 조회 1,422
13년 전 조회 2,897
13년 전 조회 505
13년 전 조회 542
13년 전 조회 630
13년 전 조회 533
13년 전 조회 435
13년 전 조회 697
13년 전 조회 440
13년 전 조회 981
13년 전 조회 954
13년 전 조회 722
13년 전 조회 479
13년 전 조회 636
13년 전 조회 1,415
13년 전 조회 469
13년 전 조회 2,447
13년 전 조회 2,159
13년 전 조회 2,039
13년 전 조회 1,353
13년 전 조회 662
13년 전 조회 3,797
13년 전 조회 1,666
13년 전 조회 2,083
13년 전 조회 494
13년 전 조회 460
13년 전 조회 1,596
13년 전 조회 582
13년 전 조회 1,806
13년 전 조회 1,488
13년 전 조회 1,282
13년 전 조회 1,209
13년 전 조회 4,604
13년 전 조회 3,041
13년 전 조회 1,400
13년 전 조회 486
13년 전 조회 1,135
13년 전 조회 1,608
13년 전 조회 1,344
13년 전 조회 1,129
13년 전 조회 790
13년 전 조회 454
13년 전 조회 848
13년 전 조회 715
13년 전 조회 539
13년 전 조회 544
13년 전 조회 995
13년 전 조회 442
13년 전 조회 398
13년 전 조회 485
13년 전 조회 401
13년 전 조회 1,029
13년 전 조회 721
13년 전 조회 2,236
13년 전 조회 484
13년 전 조회 763
13년 전 조회 1,502
13년 전 조회 682
13년 전 조회 621
13년 전 조회 579
13년 전 조회 691
13년 전 조회 1,091
13년 전 조회 653
13년 전 조회 680
13년 전 조회 990
13년 전 조회 802
13년 전 조회 1,411
13년 전 조회 904
13년 전 조회 412
13년 전 조회 966
13년 전 조회 4,269
13년 전 조회 566
13년 전 조회 1,060
13년 전 조회 2,700
13년 전 조회 1,279
13년 전 조회 1,652
13년 전 조회 1,284
13년 전 조회 1,947
13년 전 조회 1,353
13년 전 조회 930
13년 전 조회 415
13년 전 조회 1.3만
13년 전 조회 1,189
13년 전 조회 3,332
13년 전 조회 963
13년 전 조회 425
13년 전 조회 596
13년 전 조회 411
🐛 버그신고