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년 전 조회 597
13년 전 조회 652
13년 전 조회 902
13년 전 조회 817
13년 전 조회 602
13년 전 조회 1,448
13년 전 조회 783
13년 전 조회 5,969
13년 전 조회 1,139
13년 전 조회 766
13년 전 조회 1,787
13년 전 조회 616
13년 전 조회 1,548
13년 전 조회 3,015
13년 전 조회 621
13년 전 조회 633
13년 전 조회 734
13년 전 조회 649
13년 전 조회 558
13년 전 조회 805
13년 전 조회 551
13년 전 조회 1,092
13년 전 조회 1,066
13년 전 조회 846
13년 전 조회 596
13년 전 조회 759
13년 전 조회 1,529
13년 전 조회 573
13년 전 조회 2,561
13년 전 조회 2,276
13년 전 조회 2,164
13년 전 조회 1,470
13년 전 조회 769
13년 전 조회 3,921
13년 전 조회 1,773
13년 전 조회 2,195
13년 전 조회 605
13년 전 조회 573
13년 전 조회 1,700
13년 전 조회 698
13년 전 조회 1,923
13년 전 조회 1,609
13년 전 조회 1,395
13년 전 조회 1,328
13년 전 조회 4,728
13년 전 조회 3,148
13년 전 조회 1,510
13년 전 조회 597
13년 전 조회 1,244
13년 전 조회 1,718
13년 전 조회 1,450
13년 전 조회 1,244
13년 전 조회 904
13년 전 조회 566
13년 전 조회 972
13년 전 조회 821
13년 전 조회 648
13년 전 조회 646
13년 전 조회 1,104
13년 전 조회 540
13년 전 조회 501
13년 전 조회 592
13년 전 조회 507
13년 전 조회 1,134
13년 전 조회 826
13년 전 조회 2,348
13년 전 조회 594
13년 전 조회 863
13년 전 조회 1,608
13년 전 조회 785
13년 전 조회 733
13년 전 조회 678
13년 전 조회 797
13년 전 조회 1,186
13년 전 조회 752
13년 전 조회 783
13년 전 조회 1,104
13년 전 조회 907
13년 전 조회 1,526
13년 전 조회 1,007
13년 전 조회 522
13년 전 조회 1,067
13년 전 조회 4,380
13년 전 조회 667
13년 전 조회 1,171
13년 전 조회 2,810
13년 전 조회 1,395
13년 전 조회 1,762
13년 전 조회 1,393
13년 전 조회 2,061
13년 전 조회 1,461
13년 전 조회 1,051
13년 전 조회 518
13년 전 조회 1.3만
13년 전 조회 1,305
13년 전 조회 3,435
13년 전 조회 1,073
13년 전 조회 525
13년 전 조회 705
13년 전 조회 520
🐛 버그신고