DTD 사용없이 SideView 위치
급하게 처리 했습니다.
<!doctype html>
<html lang="ko">
<head>
또는
<html>
<head>
상단에 이렇게 해놓고 작업하시는 경우
사이트뷰 위치가 않되서 급하게 처리했습니다
/js/sideview.js 파일안에서
function showLayer()
{
if (oSideViewLayer == null) {
oSideViewLayer = document.createElement("DIV");
oSideViewLayer.id = this.targetObj;
// oSideViewLayer.style.position = 'absolute'; <--- 주석처리
oBody.appendChild(oSideViewLayer);
}
var vleft = getAbsoluteLeft(this.curObj)-this.curObj.offsetWidth+3;
oSideViewLayer.style.cssText = "top:"+getAbsoluteTop(this.curObj)+"px;left:"+vleft+"px;position: absolute;";
/*
if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
oSideViewLayer.style.top = getAbsoluteTop(this.curObj) - oSideViewLayer.scrollHeight;
else
oSideViewLayer.style.top = getAbsoluteTop(this.curObj) + this.curObj.offsetHeight;
oSideViewLayer.style.left = getAbsoluteLeft(this.curObj) - this.curObj.offsetWidth + 14;
*/
............................
............................
}
이렇게 처리 .....
크로스 브라우징으로
Chrome, IE 는 8 이상에서 확인 하였습니다.
<!doctype html>
<html lang="ko">
<head>
또는
<html>
<head>
상단에 이렇게 해놓고 작업하시는 경우
사이트뷰 위치가 않되서 급하게 처리했습니다
/js/sideview.js 파일안에서
function showLayer()
{
if (oSideViewLayer == null) {
oSideViewLayer = document.createElement("DIV");
oSideViewLayer.id = this.targetObj;
// oSideViewLayer.style.position = 'absolute'; <--- 주석처리
oBody.appendChild(oSideViewLayer);
}
var vleft = getAbsoluteLeft(this.curObj)-this.curObj.offsetWidth+3;
oSideViewLayer.style.cssText = "top:"+getAbsoluteTop(this.curObj)+"px;left:"+vleft+"px;position: absolute;";
/*
if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
oSideViewLayer.style.top = getAbsoluteTop(this.curObj) - oSideViewLayer.scrollHeight;
else
oSideViewLayer.style.top = getAbsoluteTop(this.curObj) + this.curObj.offsetHeight;
oSideViewLayer.style.left = getAbsoluteLeft(this.curObj) - this.curObj.offsetWidth + 14;
*/
............................
............................
}
이렇게 처리 .....
크로스 브라우징으로
Chrome, IE 는 8 이상에서 확인 하였습니다.
댓글 1개
다이어리펜션
11년 전
찾던건데 다행이네요..
감사합니다 ^^
감사합니다 ^^
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3169 | 12년 전 | 11447 | ||
| 3168 | 12년 전 | 8361 | ||
| 3167 | 12년 전 | 9518 | ||
| 3166 | 12년 전 | 8616 | ||
| 3165 | 12년 전 | 3849 | ||
| 3164 | 12년 전 | 5777 | ||
| 3163 | 12년 전 | 5483 | ||
| 3162 | 12년 전 | 7510 | ||
| 3161 |
다케미카코
|
12년 전 | 5655 | |
| 3160 | 12년 전 | 5978 | ||
| 3159 | 12년 전 | 5819 | ||
| 3158 | 12년 전 | 4210 | ||
| 3157 |
izabella
|
12년 전 | 8329 | |
| 3156 | 12년 전 | 6297 | ||
| 3155 | 12년 전 | 3780 | ||
| 3154 | 12년 전 | 8913 | ||
| 3153 | 12년 전 | 3591 | ||
| 3152 |
다케미카코
|
12년 전 | 6557 | |
| 3151 | 12년 전 | 5427 | ||
| 3150 |
|
12년 전 | 4800 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기