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년 전 조회 647
13년 전 조회 705
13년 전 조회 940
13년 전 조회 864
13년 전 조회 650
13년 전 조회 1,487
13년 전 조회 837
13년 전 조회 6,013
13년 전 조회 1,178
13년 전 조회 809
13년 전 조회 1,843
13년 전 조회 658
13년 전 조회 1,586
13년 전 조회 3,058
13년 전 조회 666
13년 전 조회 679
13년 전 조회 777
13년 전 조회 693
13년 전 조회 593
13년 전 조회 850
13년 전 조회 598
13년 전 조회 1,138
13년 전 조회 1,104
13년 전 조회 885
13년 전 조회 642
13년 전 조회 796
13년 전 조회 1,577
13년 전 조회 623
13년 전 조회 2,603
13년 전 조회 2,324
13년 전 조회 2,198
13년 전 조회 1,515
13년 전 조회 809
13년 전 조회 3,963
13년 전 조회 1,813
13년 전 조회 2,237
13년 전 조회 647
13년 전 조회 615
13년 전 조회 1,728
13년 전 조회 740
13년 전 조회 1,962
13년 전 조회 1,648
13년 전 조회 1,440
13년 전 조회 1,361
13년 전 조회 4,772
13년 전 조회 3,187
13년 전 조회 1,553
13년 전 조회 638
13년 전 조회 1,301
13년 전 조회 1,777
13년 전 조회 1,492
13년 전 조회 1,281
13년 전 조회 956
13년 전 조회 616
13년 전 조회 1,015
13년 전 조회 871
13년 전 조회 694
13년 전 조회 689
13년 전 조회 1,152
13년 전 조회 589
13년 전 조회 544
13년 전 조회 633
13년 전 조회 544
13년 전 조회 1,178
13년 전 조회 877
13년 전 조회 2,396
13년 전 조회 634
13년 전 조회 909
13년 전 조회 1,656
13년 전 조회 833
13년 전 조회 785
13년 전 조회 722
13년 전 조회 834
13년 전 조회 1,236
13년 전 조회 798
13년 전 조회 834
13년 전 조회 1,155
13년 전 조회 952
13년 전 조회 1,571
13년 전 조회 1,049
13년 전 조회 572
13년 전 조회 1,106
13년 전 조회 4,421
13년 전 조회 716
13년 전 조회 1,221
13년 전 조회 2,862
13년 전 조회 1,439
13년 전 조회 1,801
13년 전 조회 1,435
13년 전 조회 2,096
13년 전 조회 1,504
13년 전 조회 1,092
13년 전 조회 564
13년 전 조회 1.3만
13년 전 조회 1,353
13년 전 조회 3,486
13년 전 조회 1,118
13년 전 조회 575
13년 전 조회 749
13년 전 조회 556
🐛 버그신고