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년 전 조회 504
13년 전 조회 565
13년 전 조회 806
13년 전 조회 727
13년 전 조회 518
13년 전 조회 1,359
13년 전 조회 708
13년 전 조회 5,885
13년 전 조회 1,047
13년 전 조회 681
13년 전 조회 1,718
13년 전 조회 523
13년 전 조회 1,447
13년 전 조회 2,922
13년 전 조회 529
13년 전 조회 562
13년 전 조회 656
13년 전 조회 560
13년 전 조회 463
13년 전 조회 722
13년 전 조회 469
13년 전 조회 1,004
13년 전 조회 980
13년 전 조회 749
13년 전 조회 504
13년 전 조회 663
13년 전 조회 1,442
13년 전 조회 491
13년 전 조회 2,473
13년 전 조회 2,185
13년 전 조회 2,064
13년 전 조회 1,376
13년 전 조회 690
13년 전 조회 3,826
13년 전 조회 1,690
13년 전 조회 2,108
13년 전 조회 516
13년 전 조회 485
13년 전 조회 1,619
13년 전 조회 606
13년 전 조회 1,830
13년 전 조회 1,514
13년 전 조회 1,304
13년 전 조회 1,234
13년 전 조회 4,630
13년 전 조회 3,063
13년 전 조회 1,425
13년 전 조회 509
13년 전 조회 1,158
13년 전 조회 1,635
13년 전 조회 1,367
13년 전 조회 1,153
13년 전 조회 815
13년 전 조회 479
13년 전 조회 871
13년 전 조회 739
13년 전 조회 558
13년 전 조회 567
13년 전 조회 1,016
13년 전 조회 464
13년 전 조회 419
13년 전 조회 506
13년 전 조회 420
13년 전 조회 1,052
13년 전 조회 742
13년 전 조회 2,263
13년 전 조회 507
13년 전 조회 785
13년 전 조회 1,528
13년 전 조회 704
13년 전 조회 645
13년 전 조회 600
13년 전 조회 715
13년 전 조회 1,117
13년 전 조회 675
13년 전 조회 705
13년 전 조회 1,017
13년 전 조회 825
13년 전 조회 1,438
13년 전 조회 920
13년 전 조회 436
13년 전 조회 985
13년 전 조회 4,296
13년 전 조회 590
13년 전 조회 1,084
13년 전 조회 2,726
13년 전 조회 1,306
13년 전 조회 1,678
13년 전 조회 1,309
13년 전 조회 1,971
13년 전 조회 1,380
13년 전 조회 956
13년 전 조회 433
13년 전 조회 1.3만
13년 전 조회 1,220
13년 전 조회 3,357
13년 전 조회 988
13년 전 조회 448
13년 전 조회 620
13년 전 조회 436
🐛 버그신고