Text Color Problem on Un-Linked Menu Items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
shanafourde
Beginner
Beginner
Posts: 2
Joined: Tue Apr 27, 2004 9:46 pm

Text Color Problem on Un-Linked Menu Items

Post by shanafourde »

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


_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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

All right - another Mac user!

Anyway...

Not sure if this is proper, but after battling for a while I just did this...

Code: Select all

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).
John
shanafourde
Beginner
Beginner
Posts: 2
Joined: Tue Apr 27, 2004 9:46 pm

Post by shanafourde »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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