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년 전 조회 500
13년 전 조회 562
13년 전 조회 804
13년 전 조회 725
13년 전 조회 517
13년 전 조회 1,359
13년 전 조회 706
13년 전 조회 5,882
13년 전 조회 1,042
13년 전 조회 679
13년 전 조회 1,715
13년 전 조회 523
13년 전 조회 1,445
13년 전 조회 2,921
13년 전 조회 527
13년 전 조회 561
13년 전 조회 654
13년 전 조회 560
13년 전 조회 460
13년 전 조회 721
13년 전 조회 464
13년 전 조회 1,002
13년 전 조회 979
13년 전 조회 747
13년 전 조회 499
13년 전 조회 661
13년 전 조회 1,439
13년 전 조회 490
13년 전 조회 2,472
13년 전 조회 2,183
13년 전 조회 2,062
13년 전 조회 1,376
13년 전 조회 688
13년 전 조회 3,824
13년 전 조회 1,688
13년 전 조회 2,105
13년 전 조회 516
13년 전 조회 483
13년 전 조회 1,619
13년 전 조회 604
13년 전 조회 1,829
13년 전 조회 1,512
13년 전 조회 1,302
13년 전 조회 1,233
13년 전 조회 4,629
13년 전 조회 3,061
13년 전 조회 1,423
13년 전 조회 508
13년 전 조회 1,156
13년 전 조회 1,633
13년 전 조회 1,364
13년 전 조회 1,152
13년 전 조회 813
13년 전 조회 476
13년 전 조회 869
13년 전 조회 737
13년 전 조회 557
13년 전 조회 565
13년 전 조회 1,014
13년 전 조회 463
13년 전 조회 417
13년 전 조회 504
13년 전 조회 420
13년 전 조회 1,052
13년 전 조회 742
13년 전 조회 2,261
13년 전 조회 506
13년 전 조회 784
13년 전 조회 1,525
13년 전 조회 701
13년 전 조회 644
13년 전 조회 600
13년 전 조회 713
13년 전 조회 1,115
13년 전 조회 675
13년 전 조회 702
13년 전 조회 1,015
13년 전 조회 823
13년 전 조회 1,435
13년 전 조회 919
13년 전 조회 436
13년 전 조회 983
13년 전 조회 4,295
13년 전 조회 588
13년 전 조회 1,082
13년 전 조회 2,726
13년 전 조회 1,305
13년 전 조회 1,676
13년 전 조회 1,308
13년 전 조회 1,968
13년 전 조회 1,378
13년 전 조회 954
13년 전 조회 433
13년 전 조회 1.3만
13년 전 조회 1,218
13년 전 조회 3,356
13년 전 조회 986
13년 전 조회 447
13년 전 조회 618
13년 전 조회 435
🐛 버그신고