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년 전 조회 564
13년 전 조회 623
13년 전 조회 868
13년 전 조회 786
13년 전 조회 565
13년 전 조회 1,412
13년 전 조회 751
13년 전 조회 5,936
13년 전 조회 1,111
13년 전 조회 735
13년 전 조회 1,757
13년 전 조회 581
13년 전 조회 1,505
13년 전 조회 2,981
13년 전 조회 590
13년 전 조회 611
13년 전 조회 712
13년 전 조회 615
13년 전 조회 512
13년 전 조회 773
13년 전 조회 517
13년 전 조회 1,055
13년 전 조회 1,035
13년 전 조회 806
13년 전 조회 563
13년 전 조회 715
13년 전 조회 1,489
13년 전 조회 537
13년 전 조회 2,528
13년 전 조회 2,244
13년 전 조회 2,129
13년 전 조회 1,439
13년 전 조회 736
13년 전 조회 3,885
13년 전 조회 1,742
13년 전 조회 2,164
13년 전 조회 576
13년 전 조회 530
13년 전 조회 1,665
13년 전 조회 658
13년 전 조회 1,886
13년 전 조회 1,571
13년 전 조회 1,357
13년 전 조회 1,287
13년 전 조회 4,681
13년 전 조회 3,115
13년 전 조회 1,477
13년 전 조회 569
13년 전 조회 1,212
13년 전 조회 1,689
13년 전 조회 1,422
13년 전 조회 1,208
13년 전 조회 870
13년 전 조회 533
13년 전 조회 931
13년 전 조회 786
13년 전 조회 610
13년 전 조회 612
13년 전 조회 1,064
13년 전 조회 508
13년 전 조회 466
13년 전 조회 554
13년 전 조회 470
13년 전 조회 1,098
13년 전 조회 790
13년 전 조회 2,305
13년 전 조회 556
13년 전 조회 831
13년 전 조회 1,572
13년 전 조회 755
13년 전 조회 700
13년 전 조회 649
13년 전 조회 761
13년 전 조회 1,163
13년 전 조회 718
13년 전 조회 753
13년 전 조회 1,068
13년 전 조회 871
13년 전 조회 1,489
13년 전 조회 968
13년 전 조회 473
13년 전 조회 1,043
13년 전 조회 4,351
13년 전 조회 635
13년 전 조회 1,138
13년 전 조회 2,773
13년 전 조회 1,360
13년 전 조회 1,727
13년 전 조회 1,354
13년 전 조회 2,019
13년 전 조회 1,421
13년 전 조회 1,018
13년 전 조회 486
13년 전 조회 1.3만
13년 전 조회 1,270
13년 전 조회 3,401
13년 전 조회 1,037
13년 전 조회 490
13년 전 조회 665
13년 전 조회 483
🐛 버그신고