From 8f01c5ccd8c0716089e0f4c727c8b551b59ccaef Mon Sep 17 00:00:00 2001 From: ngleader Date: Tue, 28 Oct 2008 02:37:23 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4703 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/css/default.css | 12 ++++++++++ common/js/common.js | 52 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/common/css/default.css b/common/css/default.css index 6b42ddc60..16bd48109 100644 --- a/common/css/default.css +++ b/common/css/default.css @@ -89,7 +89,19 @@ a.bold { font-weight:bold; } /* xe layer */ #waitingforserverresponse { border:2px solid #444444; font-weight:bold; color:#444444; padding: 7px 5px 5px 25px; background:#FFFFFF url("../tpl/images/loading.gif") no-repeat 5px 5px; top:40px; left:40px; position:absolute; z-index:100; visibility:hidden; } + +#popup_menu_area{ position:absolute; background:#fff; border:2px solid #eee; -moz-border-radius:5px; -webkit-border-radius:5px; margin:0; padding:0;} +#popup_menu_area *{ margin:0; padding:0; list-style:none; font-size:12px; line-height:normal;} +#popup_menu_area ul{ border:1px solid #ddd; -moz-border-radius:5px; -webkit-border-radius:5px; padding:10px;} +#popup_menu_area li{ padding-left:20px; background-repeat:no-repeat; background-position:left center; margin-bottom:3px; *margin-bottom:-2px;} +#popup_menu_area li a{ text-decoration:none; color:#000;} +#popup_menu_area li a:hover, +#popup_menu_area li a:active, +#popup_menu_area li a:focus{ font-weight:bold; letter-spacing:-1px;} + +/* #popup_menu_area { position:absolute; left:0px; top:0px; z-index:1003; visibility:hidden; border:2px solid #D9D9D9; background-color:#FFFFFF; padding:0; } #popup_menu_area .box { border:1px solid #CACACA; background-color:#FFFFFF; padding:7px; } #popup_menu_area .item { color:#333333; cursor:pointer; margin:0; padding:3px 0 3px 0; white-space:nowrap; } #popup_menu_area .item_on { color:#333333; font-weight:bold; margin:0; cursor:pointer; padding:3px 0 3px 0; letter-spacing:-1px; white-space:nowrap;} +*/ \ No newline at end of file diff --git a/common/js/common.js b/common/js/common.js index c4392e21b..3f38fcd9b 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -458,7 +458,7 @@ function displayPopupMenu(ret_obj, response_tags, params) { var menu_id = params["menu_id"]; var menus = ret_obj['menus']; var html = ""; - +/* if(loaded_popup_menus[menu_id]) { html = loaded_popup_menus[menu_id]; } else { @@ -507,6 +507,56 @@ function displayPopupMenu(ret_obj, response_tags, params) { if(xHeight(area)+xTop(area)>xClientHeight()+xScrollTop()) xTop(area, xClientHeight()-xHeight(area)+xScrollTop()); area.style.visibility = "visible"; } +*/ + if(loaded_popup_menus[menu_id]) { + html = loaded_popup_menus[menu_id]; + } else { + if(menus) { + var item = menus['item']; + if(item.length<1) item = new Array(item); + if(item.length) { + for(var i=0;i'+str+' '; + } + } + } + loaded_popup_menus[menu_id] = html; + } + + // 레이어 출력 + if(html) { + var area = xGetElementById("popup_menu_area"); + xInnerHtml(area, ""); + xLeft(area, params["page_x"]); + xTop(area, params["page_y"]); + if(xWidth(area)+xLeft(area)>xClientWidth()+xScrollLeft()) xLeft(area, xClientWidth()-xWidth(area)+xScrollLeft()); + if(xHeight(area)+xTop(area)>xClientHeight()+xScrollTop()) xTop(area, xClientHeight()-xHeight(area)+xScrollTop()); + area.style.visibility = "visible"; + } } /**