fabascal
Newbie
Posts: 1
Registered: 12/5/2003
Member Is Offline
|
| posted on 12/5/2003 at 04:04 PM |
|
|
How to highlight items? (java-script newbie)
Hello,
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,
Federico
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 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'],
];
|
|
|
|