2013-10-15 131 views
0

任何人可以在添加scolor我會很樂意幫助時,如果u幫我做如何更改按鈕的顏色它被點擊DHTMLX

menu.setIconsPath("../common/imgs/"); 
menu.addNewSibling(null, "jan", "JAN"); //these jan to dec are button in menu bar 
menu.addNewSibling("jan", "feb", "FEB"); //when it is clicked it must show in another 
menu.addNewSibling("feb", "mar", "MAR"); //color 
menu.addNewSibling("mar", "apr", "APR"); 
menu.addNewSibling("apr", "may", "MAY"); 
menu.addNewSibling("may", "jun", "JUN"); 
menu.addNewSibling("jun", "jul", "JUL"); 
menu.addNewSibling("jul", "aug", "AUG"); 
menu.addNewSibling("aug", "sep", "SEP"); 
menu.addNewSibling("sep", "oct", "OCT"); 
menu.addNewSibling("oct", "nov", "NOV"); 
menu.addNewSibling("nov", "dec", "DEC", false); 

回答

0

嘗試下一個(不公開)的方法:

menu.attachEvent("onClick", function(id, zoneId, casState){ 
      menu.idPull[menu.idPrefix+id].style.backgroundColor = '#FFC000'; 
     }); 
相關問題