회원아이디 클릭시 레이어 팝업시 앱솔루트가 안되고 밑으로 내려와버리는데요~~ 정보
회원아이디 클릭시 레이어 팝업시 앱솔루트가 안되고 밑으로 내려와버리는데요~~본문
회원아이디 클릭시 레이어 팝업시 앱솔루트가 안되고 밑으로 내려와버리는데요~~
소스가 이렇게 복잡한지 몰랏네요 헐...
function showLayer()
{
clickAreaCheck = true;
var oSideViewLayer = document.getElementById(this.targetObj);
var oBody = document.body;
if (oSideViewLayer == null) {
oSideViewLayer = document.createElement("DIV");
oSideViewLayer.id = this.targetObj;
oSideViewLayer.style.position = 'absolute';
oBody.appendChild(oSideViewLayer);
}
oSideViewLayer.innerHTML = this.makeNameContextMenus();
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;
divDisplay(this.targetObj, 'block');
selectBoxHidden(this.targetObj);
}
dtd 선언하니 밑으로 내려와버리는데요 고수님들 도와주실분~~
소스가 이렇게 복잡한지 몰랏네요 헐...
function showLayer()
{
clickAreaCheck = true;
var oSideViewLayer = document.getElementById(this.targetObj);
var oBody = document.body;
if (oSideViewLayer == null) {
oSideViewLayer = document.createElement("DIV");
oSideViewLayer.id = this.targetObj;
oSideViewLayer.style.position = 'absolute';
oBody.appendChild(oSideViewLayer);
}
oSideViewLayer.innerHTML = this.makeNameContextMenus();
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;
divDisplay(this.targetObj, 'block');
selectBoxHidden(this.targetObj);
}
dtd 선언하니 밑으로 내려와버리는데요 고수님들 도와주실분~~
댓글 전체

실제 사이트를 보여 주시면, 다른 분들이 답변을 하시는데 도움이 됩니다. ^^