var Q_dmnsn = {
/*
Browser: MSIE7, Firefox3, Safari3, Opera9
DTD: Quirks, Strict XHTML 1.0, Strict HTML 4.01
Update: 2008-09-02
*/
get_lft : function(idntty) { return parseInt(document.getElementById(idntty).style.left ); }
,get_top : function(idntty) { return parseInt(document.getElementById(idntty).style.top ); }
,get_wdth : function(idntty) { return parseInt(document.getElementById(idntty).style.width ); }
,get_hght : function(idntty) { return parseInt(document.getElementById(idntty).style.height); }
,set_lft : function(idntty,nmbr) { document.getElementById(idntty).style.left = nmbr+"px"; }
,set_top : function(idntty,nmbr) { document.getElementById(idntty).style.top = nmbr+"px"; }
,set_wdth : function(idntty,nmbr) { document.getElementById(idntty).style.width = nmbr+"px"; }
,set_hght : function(idntty,nmbr) { document.getElementById(idntty).style.height = nmbr+"px"; }
,get_scrll_lft : function(idntty) {
if(document.body.scrollLeft) return document.body.scrollLeft;
else return document.documentElement.scrollLeft;
}
,get_scrll_top : function(idntty) {
if(document.body.scrollTop) return document.body.scrollTop;
else return document.documentElement.scrollTop;
}
,set_scrll_lft : function(nmbr) {
document.body.scrollLeft = nmbr;
document.documentElement.scrollLeft = nmbr;
}
,set_scrll_top : function(nmbr) {
document.body.scrollTop = nmbr;
document.documentElement.scrollTop = nmbr;
}
,clnt_wdth : function() {
if(typeof(document.compatMode)=='undefined' ) return document.documentElement.clientWidth;
else if(document.compatMode =='BackCompat') return document.body.clientWidth;
else if(document.compatMode =='CSS1Compat') return document.documentElement.clientWidth;
}
,clnt_hght : function() {
if(typeof(document.compatMode)=='undefined' ) return document.documentElement.clientHeight;
else if(document.compatMode =='BackCompat') return document.body.clientHeight;
else if(document.compatMode =='CSS1Compat') return document.documentElement.clientHeight;
}
,clnt_x : function(e) {
if(e) return e.clientX; else return event.clientX;
}
,clnt_y : function(e) {
if(e) return e.clientY; else return event.clientY;
}
};
/*
Browser: MSIE7, Firefox3, Safari3, Opera9
DTD: Quirks, Strict XHTML 1.0, Strict HTML 4.01
Update: 2008-09-02
*/
get_lft : function(idntty) { return parseInt(document.getElementById(idntty).style.left ); }
,get_top : function(idntty) { return parseInt(document.getElementById(idntty).style.top ); }
,get_wdth : function(idntty) { return parseInt(document.getElementById(idntty).style.width ); }
,get_hght : function(idntty) { return parseInt(document.getElementById(idntty).style.height); }
,set_lft : function(idntty,nmbr) { document.getElementById(idntty).style.left = nmbr+"px"; }
,set_top : function(idntty,nmbr) { document.getElementById(idntty).style.top = nmbr+"px"; }
,set_wdth : function(idntty,nmbr) { document.getElementById(idntty).style.width = nmbr+"px"; }
,set_hght : function(idntty,nmbr) { document.getElementById(idntty).style.height = nmbr+"px"; }
,get_scrll_lft : function(idntty) {
if(document.body.scrollLeft) return document.body.scrollLeft;
else return document.documentElement.scrollLeft;
}
,get_scrll_top : function(idntty) {
if(document.body.scrollTop) return document.body.scrollTop;
else return document.documentElement.scrollTop;
}
,set_scrll_lft : function(nmbr) {
document.body.scrollLeft = nmbr;
document.documentElement.scrollLeft = nmbr;
}
,set_scrll_top : function(nmbr) {
document.body.scrollTop = nmbr;
document.documentElement.scrollTop = nmbr;
}
,clnt_wdth : function() {
if(typeof(document.compatMode)=='undefined' ) return document.documentElement.clientWidth;
else if(document.compatMode =='BackCompat') return document.body.clientWidth;
else if(document.compatMode =='CSS1Compat') return document.documentElement.clientWidth;
}
,clnt_hght : function() {
if(typeof(document.compatMode)=='undefined' ) return document.documentElement.clientHeight;
else if(document.compatMode =='BackCompat') return document.body.clientHeight;
else if(document.compatMode =='CSS1Compat') return document.documentElement.clientHeight;
}
,clnt_x : function(e) {
if(e) return e.clientX; else return event.clientX;
}
,clnt_y : function(e) {
if(e) return e.clientY; else return event.clientY;
}
};
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5902 | 9년 전 | 302 | ||
| 5901 | 9년 전 | 321 | ||
| 5900 | 9년 전 | 322 | ||
| 5899 | 9년 전 | 795 | ||
| 5898 | 9년 전 | 282 | ||
| 5897 | 9년 전 | 290 | ||
| 5896 | 9년 전 | 207 | ||
| 5895 | 9년 전 | 738 | ||
| 5894 | 9년 전 | 359 | ||
| 5893 | 9년 전 | 346 | ||
| 5892 | 9년 전 | 400 | ||
| 5891 | 9년 전 | 405 | ||
| 5890 | 9년 전 | 455 | ||
| 5889 | 9년 전 | 319 | ||
| 5888 | 9년 전 | 212 | ||
| 5887 | 9년 전 | 303 | ||
| 5886 | 9년 전 | 245 | ||
| 5885 | 9년 전 | 259 | ||
| 5884 | 9년 전 | 249 | ||
| 5883 | 9년 전 | 264 | ||
| 5882 | 9년 전 | 287 | ||
| 5881 | 9년 전 | 312 | ||
| 5880 | 9년 전 | 228 | ||
| 5879 | 9년 전 | 245 | ||
| 5878 | 9년 전 | 419 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기