Thursday, January 10, 2008

Just set attributes 'class' and 'image' for a menuitem, the menu will become vivid immediately.
















Sample:
var mi=document.createElement('menuitem');
mi.setAttribute('class', 'menuitem-iconic');
mi.setAttribute('image','chrome://

But it may be affected by themes that you applied. See snapshot below.


No comments: