mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4703 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b59ac03deb
commit
8f01c5ccd8
2 changed files with 63 additions and 1 deletions
|
|
@ -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;}
|
||||
*/
|
||||
|
|
@ -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<item.length;i++) {
|
||||
var url = item[i].url;
|
||||
var str = item[i].str;
|
||||
var icon = item[i].icon;
|
||||
var target = item[i].target;
|
||||
|
||||
var styleText = "";
|
||||
var click_str = "";
|
||||
if(icon) styleText = " style=\"background-image:url('"+icon+"')\" ";
|
||||
switch(target) {
|
||||
case "popup" :
|
||||
click_str = " onclick=\"popopen(this.href,'"+target+"'); return false;\"";
|
||||
break;
|
||||
case "self" :
|
||||
//click_str = " onclick=\"location.href='"+url+"' return false;\"";
|
||||
break;
|
||||
case "javascript" :
|
||||
click_str = " onclick=\""+url+"; return false; \"";
|
||||
url="#";
|
||||
break;
|
||||
default :
|
||||
click_str = " onclick=\"window.open(this.href); return false;\"";
|
||||
break;
|
||||
}
|
||||
|
||||
html += '<li '+styleText+'><a href="'+url+'"'+click_str+'>'+str+'</a></li> ';
|
||||
}
|
||||
}
|
||||
}
|
||||
loaded_popup_menus[menu_id] = html;
|
||||
}
|
||||
|
||||
// 레이어 출력
|
||||
if(html) {
|
||||
var area = xGetElementById("popup_menu_area");
|
||||
xInnerHtml(area, "<ul>"+html+"</ul>");
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue