Changeset 55 for trunk/instant_messenger/js/im_menu_action.js
- Timestamp:
- 08/16/07 08:06:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/js/im_menu_action.js
r20 r55 10 10 try 11 11 { 12 pElement = arguments[0];12 var pElement = arguments[0]; 13 13 delete arguments[0]; 14 pMenu = ( func.isString(arguments[1]) ) ? arguments[1] : arguments;14 var pMenu = ( func.isString(arguments[1]) ) ? arguments[1] : arguments; 15 15 if ( document.getElementById(pElement).innerHTML == "" ) 16 16 { 17 17 func.confEl(pElement, 'style', 'display:block;'); 18 var _this = this; 19 _this.layout(pMenu, pElement); 18 this.layout(pMenu, pElement); 20 19 } 21 20 else … … 36 35 var el_dest_ = ( func.isString(pElement) ) ? func.byId(pElement) : pElement; 37 36 var div_menu = func.newEl("div"); 38 func.confEl(div_menu, 'id', 'div_pref'); 39 func.confEl(div_menu, 'style', 'padding:0px;position:absolute;padding:0px;'); 40 div_menu.style.Zindex = "150"; 37 func.confEl(div_menu, 'style', 'padding:0px;border:1px solid #809aa9'); 41 38 div_menu.onmouseover = function(){_this.clear_delayhide();}; 42 39 div_menu.onmouseout = function(){_this.resetit(pElement);}; 43 40 if ( func.isString(pHtml) ) 44 45 41 div_menu.innerHTML = pHtml; 42 else 46 43 for ( i = 1; i < pHtml.length; i++ ) 47 44 func.insEl(pHtml[i], div_menu); 48 45 49 46 func.insEl(div_menu, el_dest_); 50 47 this.delayhide = setTimeout("im_menu_action.del_innerHTML('"+pElement+"')", 2000); … … 62 59 this.delayhide = setTimeout("im_menu_action.del_innerHTML('"+pElement+"')",this.delay_hide); 63 60 }, 64 61 65 62 "clear_delayhide" : function() 66 63 {
Note: See TracChangeset
for help on using the changeset viewer.