Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:05

different bgimage for topmenu and submenu?


Poster: phpscripter
Dated: Tuesday May 23 2006 - 1:32:06 BST

Hi there,
am new to this menu and about to get an overview.

Here's my issue:

don't worry about my $defaultStyle. I use php and just putting the normal vars e.g. bgimage in that variable to loop through later. That works fine...

$defaultStyle->bgimage="./images/bg.jpg";
$defaultStyle->overbgimage="./images/overbg.gif";

Now, with these attributes these images will appear as "bgimage" and "overbgimage" in the topmenu and the expanded submenu as well.

Is it possible to have different bgimages for the topmenu and the submenu?

Cheers
Jan


Poster: Migru
Dated: Tuesday May 23 2006 - 1:40:04 BST

Hi

yes of course, just declare two different styles e.g topstyle and substyle, in each style definition you can set different properties...
See
http://www.milonic.com/styleproperties.php
and have a look at all the sample files (Milonic DHTML sample files) and their source/menu_data to see the different styles definitions.


Michael


Poster: phpscripter
Dated: Tuesday May 23 2006 - 1:51:12 BST

Thanks for that fast answer.
Where do i have to declare them?

bgimage and overbgimage are already there. Sorry am a bit confused..


Poster: Andy
Dated: Wednesday May 31 2006 - 19:12:56 BST

Hi,

You can create more than one style that you can apply to any menu.

What you would do is create one menustyle for the vertical menu and another for the horizontal menu. Then just declare the style in the appropriate menu object

Hope this helps,
Andy