From 77e238cce83db586553295fab8d38e00c8a2cc34 Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 17 Jan 2013 22:14:30 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EB=93=9C=EB=B7=B0=20=EC=8A=A4=ED=83=80=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 3 +++ js/sideview.js | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/css/default.css b/css/default.css index bc0afada7..48530c89c 100644 --- a/css/default.css +++ b/css/default.css @@ -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} diff --git a/js/sideview.js b/js/sideview.js index 224b8c6c2..9597188f0 100644 --- a/js/sideview.js +++ b/js/sideview.js @@ -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;