사용자: 사이드뷰 스타일

This commit is contained in:
whitedot
2013-01-17 22:14:30 +09:00
parent 0a3cd9ba2d
commit 77e238cce8
2 changed files with 15 additions and 4 deletions

View File

@ -263,6 +263,9 @@ a {color:#000;text-decoration:none}
.td_nick {width:120px;text-align:center}
.td_name {width:120px;text-align:left}
.td_name div {position:relative}
#sideview {z-index:1000;position:absolute;top:15px;left:0;border:1px solid #ea87a5;background:#fff9fb}
#sideview ul {list-style:none}
#sideview a {display:inline-block;padding:5px 5px 3px;width:100px;border-bottom:1px solid #f5e3e8}
.td_date {width:60px;text-align:center}
.td_datetime {width:100px;text-align:center}
.td_mng {width:80px;text-align:center}

View File

@ -47,7 +47,7 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
function showSideView(curObj, mb_id, name, email, homepage)
{
var sideView = new SideView('nameContextMenu', curObj, mb_id, name, email, homepage);
var sideView = new SideView('sideview', curObj, mb_id, name, email, homepage);
sideView.showLayer();
}
@ -118,7 +118,7 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
if (oSideViewLayer == null) {
oSideViewLayer = document.createElement("div");
oSideViewLayer.id = this.targetObj;
oSideViewLayer.style.position = "absolute";
//oSideViewLayer.style.position = "absolute";
//oBody.appendChild(oSideViewLayer);
}
@ -126,6 +126,8 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
oSideViewLayer.innerHTML = this.makeNameContextMenus();
/*
if (getAbsoluteTop(this.curObj) + this.curObj.offsetHeight + oSideViewLayer.scrollHeight + 5 > oBody.scrollHeight)
oSideViewLayer.style.top = getAbsoluteTop(this.curObj) - getAbsoluteTop(this.curObj.offsetParent) - oSideViewLayer.scrollHeight + "px";
else
@ -133,11 +135,15 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
oSideViewLayer.style.left = getAbsoluteLeft(this.curObj) - getAbsoluteLeft(this.curObj.offsetParent) - this.curObj.offsetWidth + 65 + "px";
*/
divDisplay(this.targetObj, 'block');
selectBoxHidden(this.targetObj);
}
/*
function getAbsoluteTop(oNode)
{
var oCurrentNode=oNode;
@ -161,6 +167,8 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
return iLeft;
}
*/
function makeNameContextMenus()
{
@ -305,8 +313,8 @@ if (typeof(SIDEVIEW_JS) == 'undefined') // 한번만 실행
function hideSideView()
{
if (document.getElementById("nameContextMenu"))
divDisplay ("nameContextMenu", 'none');
if (document.getElementById("sizeview"))
divDisplay ("sideview", 'none');
}
var clickAreaCheck = false;