handleMenuclick
function handleMenuClick(p_sType, p_aArgs){
var oMenuItem = p_aArgs[1];
var menuid = this.id.replace(/Menu/,'');
$(menuid).value = oMenuItem.cfg.getProperty('text');
}
var occupationMenu = new YAHOO.widget.Menu("occupationMenu", {fixedcenter: true, showdelay:0,iframe:false });
occupationMenu.subscribe('click', handleMenuClick);
occupationMenu.render();
YUE.on('btnOccupation', "click", occupationMenu.show, null, occupationMenu);
沒有留言:
張貼留言