different bgimage for topmenu and submenu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
phpscripter
Beginner
Beginner
Posts: 2
Joined: Tue May 23, 2006 1:17 am

different bgimage for topmenu and submenu?

Post by phpscripter »

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
:: all depends on the loop ::
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

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://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
phpscripter
Beginner
Beginner
Posts: 2
Joined: Tue May 23, 2006 1:17 am

Post by phpscripter »

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

bgimage and overbgimage are already there. Sorry am a bit confused..
:: all depends on the loop ::
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
Post Reply