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년 전 조회 494
13년 전 조회 560
13년 전 조회 796
13년 전 조회 719
13년 전 조회 512
13년 전 조회 1,347
13년 전 조회 695
13년 전 조회 5,878
13년 전 조회 1,038
13년 전 조회 673
13년 전 조회 1,706
13년 전 조회 520
13년 전 조회 1,438
13년 전 조회 2,912
13년 전 조회 521
13년 전 조회 557
13년 전 조회 644
13년 전 조회 551
13년 전 조회 454
13년 전 조회 712
13년 전 조회 457
13년 전 조회 997
13년 전 조회 969
13년 전 조회 739
13년 전 조회 495
13년 전 조회 652
13년 전 조회 1,431
13년 전 조회 486
13년 전 조회 2,464
13년 전 조회 2,173
13년 전 조회 2,055
13년 전 조회 1,371
13년 전 조회 680
13년 전 조회 3,816
13년 전 조회 1,680
13년 전 조회 2,100
13년 전 조회 508
13년 전 조회 477
13년 전 조회 1,609
13년 전 조회 597
13년 전 조회 1,821
13년 전 조회 1,503
13년 전 조회 1,295
13년 전 조회 1,225
13년 전 조회 4,622
13년 전 조회 3,055
13년 전 조회 1,415
13년 전 조회 502
13년 전 조회 1,152
13년 전 조회 1,622
13년 전 조회 1,361
13년 전 조회 1,144
13년 전 조회 803
13년 전 조회 469
13년 전 조회 862
13년 전 조회 731
13년 전 조회 554
13년 전 조회 558
13년 전 조회 1,008
13년 전 조회 459
13년 전 조회 412
13년 전 조회 499
13년 전 조회 415
13년 전 조회 1,042
13년 전 조회 736
13년 전 조회 2,253
13년 전 조회 500
13년 전 조회 777
13년 전 조회 1,518
13년 전 조회 699
13년 전 조회 635
13년 전 조회 594
13년 전 조회 706
13년 전 조회 1,106
13년 전 조회 668
13년 전 조회 695
13년 전 조회 1,006
13년 전 조회 818
13년 전 조회 1,430
13년 전 조회 914
13년 전 조회 428
13년 전 조회 977
13년 전 조회 4,287
13년 전 조회 581
13년 전 조회 1,075
13년 전 조회 2,718
13년 전 조회 1,294
13년 전 조회 1,667
13년 전 조회 1,303
13년 전 조회 1,961
13년 전 조회 1,368
13년 전 조회 947
13년 전 조회 430
13년 전 조회 1.3만
13년 전 조회 1,207
13년 전 조회 3,349
13년 전 조회 979
13년 전 조회 439
13년 전 조회 610
13년 전 조회 428
🐛 버그신고