I want to display arrow only as subimage, not on main level

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aquaverse
Advanced
Advanced
Posts: 22
Joined: Fri Feb 11, 2005 9:40 pm

I want to display arrow only as subimage, not on main level

Post by aquaverse »

Is this possible?

Thanks in advance.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes. I don't know what your menu_data.js file has in it, but if you have only one menu style, you need to create a second one, make the first one your mainStyle and the second one your subStyle and leave out the subimage from the mainStyle. If your menu style is the same on both main and sub menus, you can make the second style like this

Code: Select all

subStyle=new copyOf(mainStyle)
subStyle.subimage="downboxed.gif";
mainStyle would be whatever your style is called i.e. menuStyle if you kept that name. From that mainStyle remove the subimage="arrow.gif"; With the above code you would have two styles, they would look exactly alike except that the submenus would have a subimage and the main menu wouldn't. Don't forget to put the new style name in each submenu.

Ruth
Post Reply