Board Logo

How to highlight items? (java-script newbie)
fabascal - 12/5/2003 at 04:04 PM


I'm happy of this tool, it builds pretty (no too much pretty fortunately) menus.

I would like to highlight menu items (built with online builder) when the mouse is over (as in some of the demos), but I don't know how and I don't find it in the documentation.

Could anybody help me, please?

Thanks in advance,

nik - 12/8/2003 at 08:53 AM

You should specify keys for mouseover state in menu_tpl.js file. For instance:
var MENU_STYLES = new Array();

// state when item has mouse over it
MENU_STYLES['onmouseover'] = [
'color', ['#ffffff', '#000000', '#000000'],
'background', ['#6699cc', '#66cc99', '#cc6699'],
'fontWeight', ['normal', 'bold', 'normal'],
'textDecoration', ['underline', 'none', 'none'],

Back to forum: