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년 전 조회 489
13년 전 조회 554
13년 전 조회 791
13년 전 조회 713
13년 전 조회 504
13년 전 조회 1,341
13년 전 조회 692
13년 전 조회 5,871
13년 전 조회 1,032
13년 전 조회 667
13년 전 조회 1,702
13년 전 조회 513
13년 전 조회 1,432
13년 전 조회 2,908
13년 전 조회 513
13년 전 조회 551
13년 전 조회 640
13년 전 조회 545
13년 전 조회 447
13년 전 조회 709
13년 전 조회 451
13년 전 조회 993
13년 전 조회 964
13년 전 조회 732
13년 전 조회 488
13년 전 조회 647
13년 전 조회 1,424
13년 전 조회 478
13년 전 조회 2,458
13년 전 조회 2,169
13년 전 조회 2,050
13년 전 조회 1,365
13년 전 조회 673
13년 전 조회 3,808
13년 전 조회 1,676
13년 전 조회 2,094
13년 전 조회 505
13년 전 조회 472
13년 전 조회 1,606
13년 전 조회 593
13년 전 조회 1,819
13년 전 조회 1,499
13년 전 조회 1,290
13년 전 조회 1,219
13년 전 조회 4,616
13년 전 조회 3,053
13년 전 조회 1,409
13년 전 조회 495
13년 전 조회 1,144
13년 전 조회 1,617
13년 전 조회 1,357
13년 전 조회 1,137
13년 전 조회 797
13년 전 조회 464
13년 전 조회 858
13년 전 조회 725
13년 전 조회 548
13년 전 조회 553
13년 전 조회 1,004
13년 전 조회 455
13년 전 조회 406
13년 전 조회 492
13년 전 조회 412
13년 전 조회 1,039
13년 전 조회 731
13년 전 조회 2,245
13년 전 조회 495
13년 전 조회 774
13년 전 조회 1,510
13년 전 조회 695
13년 전 조회 628
13년 전 조회 589
13년 전 조회 701
13년 전 조회 1,098
13년 전 조회 663
13년 전 조회 692
13년 전 조회 1,003
13년 전 조회 814
13년 전 조회 1,424
13년 전 조회 909
13년 전 조회 423
13년 전 조회 972
13년 전 조회 4,281
13년 전 조회 576
13년 전 조회 1,069
13년 전 조회 2,713
13년 전 조회 1,287
13년 전 조회 1,661
13년 전 조회 1,299
13년 전 조회 1,956
13년 전 조회 1,366
13년 전 조회 941
13년 전 조회 425
13년 전 조회 1.3만
13년 전 조회 1,202
13년 전 조회 3,342
13년 전 조회 975
13년 전 조회 433
13년 전 조회 603
13년 전 조회 422
🐛 버그신고