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

Text Color Problem on Un-Linked Menu Items


Poster: shanafourde
Dated: Tuesday April 27 2004 - 21:53:29 BST

On my top level menu items, all are links except one which just opens a sub menu. All of the text is white except the item which isn't a link.

Here is the site:
http://www.oldcatholicseminary.org/test/

The problem is with the item "Our Beliefs"

Here is the applicable portion of menu_data.js

Quote:


_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(mainmenu=new mm_style()){
onbgcolor="#006600";
oncolor="#FFFF00";
offbgcolor="none";
offcolor="#FFFFFF";
bordercolor="#003300";
borderstyle="solid";
borderwidth=1;
separatorcolor="#003300";
separatorsize="1";
padding=5;
fontsize="11px";
fontstyle="normal";
fontweight="bold"
fontfamily="Verdana, Tahoma, Arial";
pagecolor="#FFFFFF";
pagebgcolor="#003300";
headercolor="#FFFFFF";
headerbgcolor="#006600";
subimage="arrow.gif";
subimagepadding="2";
visitedcolor="#FFFFFF";
}

with(menuStyle=new mm_style()){
onbgcolor="#006600";
oncolor="#FFFF00";
offbgcolor="#003300";
offcolor="#FFFFFF";
bordercolor="#003300";
borderstyle="solid";
borderwidth=1;
separatorcolor="#003300";
separatorsize="1";
padding=5;
fontsize="11px";
fontstyle="normal";
fontweight="bold"
fontfamily="Verdana, Tahoma, Arial";
pagecolor="#FFFFFF";
pagebgcolor="#006600";
headercolor="#FFFFFF";
headerbgcolor="#006600";
subimage="arrow.gif";
subimagepadding="2";
}

with(milonic=new menuname("Main Menu")){
style=mainmenu;
top=120;
left=0;
itemwidth=148;
alwaysvisible=1;
orientation="vertical";
aI("text=Home;url=index.php;status=Back To Home Page;");
aI("text=Prospectus;url=prospectus.php;showmenu=require;");
aI("text=Expenses & Terms;url=expenses.php;showmenu=expenses;");
aI("text=Our Beliefs;showmenu=beliefs;");
aI("text=Religious Affiliation;url=religiousaff.php;");
aI("text=The OCS Family of Personnel;url=personnel.php;");
aI("text=Our Patron St. Bede;url=stbede.php;");
}


then the rest goes on list all of the sub menus.

Any ideas?

Thanks
Sarah


Poster: John
Dated: Tuesday April 27 2004 - 22:25:09 BST

All right - another Mac user!

Anyway...

Not sure if this is proper, but after battling for a while I just did this...
Code:
aI("text=Our Beliefs;url=#;showmenu=beliefs;");

Adding the url=#; fixed the color problem.

Also, I removed all the alwaysvisible=0; (not needed); both fontweight="bold"; were missing the closing ';' ; some of your numeric definitions still had "" around them (separatorsize="1";, etc.); added offbgcolor="transparent"; to the main menu style - otherwise the solid green remained when you moused off an item, blocking the background.

Think that was all.

See http://www.west.asu.edu/sa/testsite/ (I didn't code in all the graphics).


Poster: shanafourde
Dated: Wednesday April 28 2004 - 15:38:25 BST

thank you so much! it works great.

And yes I'm another mac user :)
Happy on my Power Book G4 using OS X 10.3


Poster: John
Dated: Wednesday April 28 2004 - 15:59:19 BST

shanafourde wrote:
thank you so much! it works great.

You're welcome.
shanafourde wrote:
And yes I'm another mac user :)

My spies told me... :roll:
shanafourde wrote:
Happy on my Power Book G4 using OS X 10.3

Glad to have you with us. Maz and I are Mac users as well, except I'm stuck on a Windoze box at work. Yuck!