How to get side menu items to swap images to use like a traditional image rollover.
Return to Recent Questions
Q:
I can't figure out how to get menu items to swap images to use
like a traditional image rollover. In the Dhtml menu, I can change
the style background without needing images, or I can use generic
images as a background, but I have situations where I need to use
unique images for each state of a button.
These unique image buttons contain text and graphics, and there
are different images for different states: normal, mouse over, mouse
down.
A:
The menu has only two states normal and mouseover.
You should use Individual Item Styles.
Please, see the example of Deluxe Menu here:
http://deluxe-menu.com/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"],
];
Return to Recent Questions
|