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,109
13년 전 조회 1,166
13년 전 조회 1,432
13년 전 조회 1,339
13년 전 조회 1,132
13년 전 조회 1,944
13년 전 조회 1,321
13년 전 조회 6,504
13년 전 조회 1,665
13년 전 조회 1,295
13년 전 조회 2,324
13년 전 조회 1,123
13년 전 조회 2,074
13년 전 조회 3,572
13년 전 조회 1,136
13년 전 조회 1,144
13년 전 조회 1,244
13년 전 조회 1,153
13년 전 조회 1,060
13년 전 조회 1,329
13년 전 조회 1,059
13년 전 조회 1,615
13년 전 조회 1,573
13년 전 조회 1,341
13년 전 조회 1,101
13년 전 조회 1,277
13년 전 조회 2,035
13년 전 조회 1,052
13년 전 조회 3,047
13년 전 조회 2,757
13년 전 조회 2,656
13년 전 조회 1,953
13년 전 조회 1,261
13년 전 조회 4,403
13년 전 조회 2,237
13년 전 조회 2,701
13년 전 조회 1,077
13년 전 조회 1,016
13년 전 조회 2,159
13년 전 조회 1,180
13년 전 조회 2,401
13년 전 조회 2,081
13년 전 조회 1,891
13년 전 조회 1,776
13년 전 조회 5,211
13년 전 조회 3,589
13년 전 조회 1,949
13년 전 조회 1,035
13년 전 조회 1,681
13년 전 조회 2,182
13년 전 조회 1,897
13년 전 조회 1,694
13년 전 조회 1,372
13년 전 조회 1,025
13년 전 조회 1,440
13년 전 조회 1,286
13년 전 조회 1,115
13년 전 조회 1,093
13년 전 조회 1,550
13년 전 조회 1,017
13년 전 조회 963
13년 전 조회 1,050
13년 전 조회 970
13년 전 조회 1,596
13년 전 조회 1,303
13년 전 조회 2,810
13년 전 조회 1,049
13년 전 조회 1,332
13년 전 조회 2,109
13년 전 조회 1,264
13년 전 조회 1,185
13년 전 조회 1,140
13년 전 조회 1,265
13년 전 조회 1,652
13년 전 조회 1,227
13년 전 조회 1,274
13년 전 조회 1,560
13년 전 조회 1,395
13년 전 조회 1,998
13년 전 조회 1,476
13년 전 조회 994
13년 전 조회 1,571
13년 전 조회 4,894
13년 전 조회 1,217
13년 전 조회 1,753
13년 전 조회 3,354
13년 전 조회 1,951
13년 전 조회 2,296
13년 전 조회 1,921
13년 전 조회 2,598
13년 전 조회 2,031
13년 전 조회 1,612
13년 전 조회 1,080
13년 전 조회 1.4만
13년 전 조회 1,868
13년 전 조회 4,005
13년 전 조회 1,621
13년 전 조회 1,082
13년 전 조회 1,245
13년 전 조회 1,084