0

任何人都可以帮助添加一个颜色如果你帮助我做我会很高兴

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);
4

1 回答 1

0

尝试下一个(非公开)方法:

menu.attachEvent("onClick", function(id, zoneId, casState){
            menu.idPull[menu.idPrefix+id].style.backgroundColor = '#FFC000';
        });
于 2013-11-19T11:00:29.123 回答