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: Thursday February 8 2018 - 06:02:59

Black background on image


Poster: Roy Dammer
Dated: Saturday September 25 2004 - 9:02:30 BST

Hi All
When I have a single page all is fine but once I add more pages the active page "menu item" is black. What should happen is the background is green #99cc99 when no mouse over, when the mouse goes over the it turns to an image. The over mouse does turn to an image but the off mouse is black.

Many thanks

_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset



with(menuStyle=new mm_style()){
oncolor="#000000";
offbgcolor="#99cc99";
offcolor="#006633";
bordercolor="#339933";
borderstyle="solid";
borderwidth=1;
separatorcolor="#339933";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="bold";
fontfamily="Arial, Verdana, Tahoma";
pagecolor="#000000";
pagebgcolor="#000000";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='99cc99', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
top=192;
left=71;
screenposition="center";
orientation="horizontal";
aI("text=Home;url=http://www.ecoseeds.co.nz/indexm5.htm;status=Back To Home Page;overbgimage=/images/hills7m2.jpg;");
aI("text=About Us;showmenu=About Us;overbgimage=/images/hills7m2.jpg;");
aI("text=Gardening Centre;showmenu=Gardening Centre;overbgimage=/images/hills7m2.jpg;");
aI("text=Downloads;showmenu=Downloads;overbgimage=/images/hills7m2.jpg;");
aI("text=The Mailing list;showmenu=The Mailing list;overbgimage=/images/hills7m2.jpg;");
aI("text=Bits & Pieces;showmenu=Bits & Pieces;overbgimage=/images/hills7m2.jpg;");
}

with(milonic=new menuname("About Us")){
style=menuStyle;
overflow="scroll";
aI("text=All About Us;url=http://www.ecoseeds.co.nz/aboutusm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=ecoseeds Privacy;url=http://www.ecoseeds.co.nz/privacym5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Limitation on Seeds;url=http://www.ecoseeds.co.nz/limitationseedm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Limitation on Downloads;url=http://www.ecoseeds.co.nz/limitationdownloadsm5.htm;overbgimage=/images/hills7m25.jpg;");
}

with(milonic=new menuname("Gardening Centre")){
style=menuStyle;
overflow="scroll";
aI("text=Our Products;url=http://www.ecoseeds.co.nz/catindexm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=How to Order;url=http://www.ecoseeds.co.nz/howtoorderm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Online Ordering - without the credit card;url=http://www.ecoseeds.co.nz/onlineorder.htm;overbgimage=images/hills7m25.jpg;");
aI("text=Store Locator;url=http://www.ecoseeds.co.nz/localm5.htm;overbgimage=images/hills7m25.jpg;");
}

with(milonic=new menuname("Downloads")){
style=menuStyle;
aI("text=Catalogue download in PDF format;url=http://www.ecoseeds.co.nz/downforms/catindexp.zip;overbgimage=/images/hills7m25.jpg;");
aI("text=Catalogue download in Word 97 format;url=http://www.ecoseeds.co.nz/downforms/catindexw.zip;overbgimage=/images/hills7m25.jpg;");
aI("text=Order Form download in PDF format;url=http://www.ecoseeds.co.nz/downforms/orderformp.zip;overbgimage=/images/hills7m25.jpg;");
aI("text=Order Form download in Word 97 format;url=http://www.ecoseeds.co.nz/downforms/orderformw.zip;overbgimage=/images/hills7m25.jpg;");
aI("text=Free Download of Word Viewer for Word 97;url=http://www.ecoseeds.co.nz/downforms/wd97vwr32.exe;overbgimage=/images/hills7m25.jpg;");
aI("text=Free Download of Acrobat Reader for PDF reading;url=http://www.adobe.com/products/acrobat/readstep.html;overbgimage=/images/hills7m25.jpg;");
}

with(milonic=new menuname("The Mailing list")){
style=menuStyle;
aI("text=Join the Mailing List;url=http://www.ecoseeds.co.nz/joinlistm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Tell a Friend;url=http://www.ecoseeds.co.nz/friendm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Be Removed from the Mailing List;url=http://www.ecoseeds.co.nz/removem5.htm;overbgimage=/images/hills7m25.jpg;");
}

with(milonic=new menuname("Bits & Pieces")){
style=menuStyle;
aI("text=ecoseeds Latest Newsletter;url=http://www.ecoseeds.co.nz/news1m5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Phases of the Moon;url=http://www.ecoseeds.co.nz/moonm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Do You Grow Seeds?;url=http://www.ecoseeds.co.nz/growersm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=FAQ;url=http://www.ecoseeds.co.nz/faq.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Links to Other Green Places;url=http://www.ecoseeds.co.nz/linksm5.htm;overbgimage=/images/hills7m25.jpg;");
aI("text=Having Problems - Send an email;url=webmaster __at__ ecoseeds.co.nz;overbgimage=/images/hills7m25.jpg;");
}

drawMenus();


Poster: Ruth
Dated: Sunday September 26 2004 - 4:49:57 BST

Hi,
I moved this to the help and support section of the forum.

Code: Select all

pagecolor="#000000";
pagebgcolor="#000000";


That is what is making the item black, it works to show the 'active' page. If you want both the overbgimage to work and the pagebgcolor, to show the page one is on, you could change that black to something else, maybe white like the top part of the overbgimage. If you don't want it to work, just remove the code totally from the style definition.


Ruth

Thanks


Poster: Roy Dammer
Dated: Sunday September 26 2004 - 6:28:54 BST

Thanks Ruth, that did the trick. I am impressed with the service.

Roy :D