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년 전 조회 1,545
13년 전 조회 1,657
13년 전 조회 1,879
13년 전 조회 1,796
13년 전 조회 1,564
13년 전 조회 2,378
13년 전 조회 1,746
13년 전 조회 6,951
13년 전 조회 2,113
13년 전 조회 1,746
13년 전 조회 2,779
13년 전 조회 1,572
13년 전 조회 2,519
13년 전 조회 4,005
13년 전 조회 1,558
13년 전 조회 1,568
13년 전 조회 1,687
13년 전 조회 1,568
13년 전 조회 1,469
13년 전 조회 1,738
13년 전 조회 1,484
13년 전 조회 2,014
13년 전 조회 2,020
13년 전 조회 1,752
13년 전 조회 1,505
13년 전 조회 1,691
13년 전 조회 2,432
13년 전 조회 1,451
13년 전 조회 3,437
13년 전 조회 3,164
13년 전 조회 3,021
13년 전 조회 2,332
13년 전 조회 1,643
13년 전 조회 4,814
13년 전 조회 2,639
13년 전 조회 3,119
13년 전 조회 1,504
13년 전 조회 1,457
13년 전 조회 2,610
13년 전 조회 1,603
13년 전 조회 2,823
13년 전 조회 2,492
13년 전 조회 2,297
13년 전 조회 2,150
13년 전 조회 5,583
13년 전 조회 3,988
13년 전 조회 2,361
13년 전 조회 1,446
13년 전 조회 2,100
13년 전 조회 2,568
13년 전 조회 2,309
13년 전 조회 2,116
13년 전 조회 1,821
13년 전 조회 1,466
13년 전 조회 1,869
13년 전 조회 1,731
13년 전 조회 1,562
13년 전 조회 1,541
13년 전 조회 1,997
13년 전 조회 1,450
13년 전 조회 1,402
13년 전 조회 1,471
13년 전 조회 1,400
13년 전 조회 2,004
13년 전 조회 1,719
13년 전 조회 3,238
13년 전 조회 1,461
13년 전 조회 1,753
13년 전 조회 2,509
13년 전 조회 1,656
13년 전 조회 1,608
13년 전 조회 1,549
13년 전 조회 1,681
13년 전 조회 2,083
13년 전 조회 1,639
13년 전 조회 1,688
13년 전 조회 2,027
13년 전 조회 1,801
13년 전 조회 2,423
13년 전 조회 1,864
13년 전 조회 1,420
13년 전 조회 2,048
13년 전 조회 5,358
13년 전 조회 1,705
13년 전 조회 2,226
13년 전 조회 3,829
13년 전 조회 2,427
13년 전 조회 2,783
13년 전 조회 2,401
13년 전 조회 3,070
13년 전 조회 2,497
13년 전 조회 2,082
13년 전 조회 1,531
13년 전 조회 1.4만
13년 전 조회 2,324
13년 전 조회 4,446
13년 전 조회 2,084
13년 전 조회 1,533
13년 전 조회 1,705
13년 전 조회 1,546