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,037
13년 전 조회 1,111
13년 전 조회 1,360
13년 전 조회 1,262
13년 전 조회 1,062
13년 전 조회 1,871
13년 전 조회 1,259
13년 전 조회 6,447
13년 전 조회 1,599
13년 전 조회 1,235
13년 전 조회 2,260
13년 전 조회 1,057
13년 전 조회 2,002
13년 전 조회 3,518
13년 전 조회 1,071
13년 전 조회 1,085
13년 전 조회 1,184
13년 전 조회 1,101
13년 전 조회 1,004
13년 전 조회 1,260
13년 전 조회 994
13년 전 조회 1,548
13년 전 조회 1,511
13년 전 조회 1,281
13년 전 조회 1,035
13년 전 조회 1,214
13년 전 조회 1,977
13년 전 조회 984
13년 전 조회 2,991
13년 전 조회 2,700
13년 전 조회 2,595
13년 전 조회 1,899
13년 전 조회 1,209
13년 전 조회 4,349
13년 전 조회 2,187
13년 전 조회 2,647
13년 전 조회 1,025
13년 전 조회 964
13년 전 조회 2,100
13년 전 조회 1,118
13년 전 조회 2,357
13년 전 조회 2,020
13년 전 조회 1,824
13년 전 조회 1,732
13년 전 조회 5,177
13년 전 조회 3,550
13년 전 조회 1,902
13년 전 조회 989
13년 전 조회 1,655
13년 전 조회 2,145
13년 전 조회 1,858
13년 전 조회 1,660
13년 전 조회 1,336
13년 전 조회 980
13년 전 조회 1,390
13년 전 조회 1,243
13년 전 조회 1,070
13년 전 조회 1,044
13년 전 조회 1,500
13년 전 조회 974
13년 전 조회 912
13년 전 조회 1,008
13년 전 조회 920
13년 전 조회 1,539
13년 전 조회 1,265
13년 전 조회 2,760
13년 전 조회 1,008
13년 전 조회 1,273
13년 전 조회 2,059
13년 전 조회 1,217
13년 전 조회 1,140
13년 전 조회 1,102
13년 전 조회 1,232
13년 전 조회 1,607
13년 전 조회 1,180
13년 전 조회 1,223
13년 전 조회 1,516
13년 전 조회 1,340
13년 전 조회 1,944
13년 전 조회 1,429
13년 전 조회 949
13년 전 조회 1,520
13년 전 조회 4,831
13년 전 조회 1,148
13년 전 조회 1,680
13년 전 조회 3,290
13년 전 조회 1,900
13년 전 조회 2,241
13년 전 조회 1,862
13년 전 조회 2,538
13년 전 조회 1,960
13년 전 조회 1,539
13년 전 조회 1,001
13년 전 조회 1.4만
13년 전 조회 1,792
13년 전 조회 3,924
13년 전 조회 1,562
13년 전 조회 1,016
13년 전 조회 1,170
13년 전 조회 1,011