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:08

background image on menu


Poster: Jaco
Dated: Thursday September 30 2004 - 17:01:33 BST

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


Poster: perldev
Dated: Thursday September 30 2004 - 17:56:30 BST

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.


Poster: Maz
Dated: Thursday September 30 2004 - 18:05:34 BST

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


Poster: Jaco
Dated: Thursday September 30 2004 - 23:15:32 BST

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


Poster: Ruth
Dated: Friday October 1 2004 - 2:46:10 BST

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