background image on menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Jaco
Super Advanced
Super Advanced
Posts: 85
Joined: Thu Sep 30, 2004 4:57 pm
Location: montreal
Contact:

background image on menu

Post by Jaco »

Hi folks, thanks in advance for any help.
I am trying to get a background image on my menu and have tried the following in the properties section of menu_data.js without success:
with(menuStyle=new mm_style()){
//onbgcolor="#8B5736";
//oncolor="#FFFFFF";
//offbgcolor="#FAF8D7";
bgimage="background_image.gif";
....

Can someone suggest how to do this?
Cheers,

Jaco
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

Are you sure the image file is in the same directory? Post a link of your page will be very helpful to diagnose your issue.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Yes it could be in a folder "/images/bgimage.gif"

I see there is another called menubgimage=
If neither work it would appear its the image path is incorrect.

maz
Jaco
Super Advanced
Super Advanced
Posts: 85
Joined: Thu Sep 30, 2004 4:57 pm
Location: montreal
Contact:

Post by Jaco »

No the path is correct. Does the image have to be a certain size, what happens if it is too big for the menu?

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

Post by Ruth »

As Maz noted, bgimage= used in the global style section will insert a bgimage into each menu item. If you want one for the whole menu then the property is menubgimage=. Without seeing a test page we can't really see what the problem might be. If you cannot post a test page, we would need to have your menu_data.js file code, at least the main menu and one submenu. And the html code for the page, plus the version number. If you post here please use the code button above to bracket the code.

Ruth
Post Reply