|
|
How to get javascript dynamic menu to swap images to act like a traditional image rollover.
Return to Recent Questions
Q:
I can't find out how to get javascript dynamic menu items to swap images to act
like a traditional image rollover. I have situations where I need to use
unique images for each state of a button: normal, mouse over, mouse
down.
A:
The javascript dynamic menu has only two states normal and mouseover.
You should use Individual Item Styles.
See the example of DHTML Menu here:
http://dhtml-menu.com/menu/data-templates/vista-style-02-template-sample.html
You should use "itemBackImage" parameter.
var itemStyles = [
["itemWidth=92px","itemBorderWidth=0","fontStyle=normal 11px Tahoma","fontColor=#FFFFFF,#FFFFFF","itemBackImage=btn_greenblack.gif,btn_green.gif"],
];
You can also specify images in the javascript dynamic menu items. If item text is empty, icon fields will be used as item images.
For example:
["", "index.html", "itemImageNormal.gif", "itemImageOver.gif", "Home Page"]
Return to Recent Questions
Related:
- March 21, 2009 - How can we increase the width of the vista style buttons of javascript dynamic menu?
- Apr 07, 2009 - I want to get my text within a single javascript dynamic menu item to be on a two lines...
- Apr 25, 2009 - The javascript dynamic menu looks differently in IE 6 and Firefox...
- May 12, 2009 - Is there a way to set a parameter such that when a javascript dynamic menu Item is CLICKED...
- May 29, 2009 - Does javascript dynamic menu have support for Chinese or other Unicode characters?
- Jun 15, 2009 - I wonder how I can reduce the width of the tree javascript dynamic menu?
- Jul 03, 2009 - Could you please help me with an alignment issue with my javascript dynamic menu?
- Aug 06, 2009 - With the licensed .js files of javascript dynamic menu the status bar on IE start shows "Error on page".
- Aug 23, 2009 - When I roll over the javascript dynamic menu the font color doesn't change
- Sep 10, 2009 - Do you have a working sample of the javascript dynamic menu with PHP/MySQL?
- Sep 28, 2009 - When I run website, I see the javascript dynamic menu but no header menu images
|