Transparent menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Transparent menu items

Post by richards »

This morning I set up my first test menu, which works predictably but for one formatting problem: The menu references are all transparent i.e. devoid of background color.

The link http://waterfordbikes.com/! demonstrates the problem.

Any ideas?

Thanks.
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Transparent Menu Link

Post by richards »

User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

See http://milonic.com/tablemenu.php for the proper way to set up a menu inside a td.
John
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Post by richards »

John wrote:See http://milonic.com/tablemenu.php for the proper way to set up a menu inside a td.
Please let me clarify the issue. http://waterfordbikes.com/!/index.php is the reference.

The menu is properly positioned and functions properly within the table. It's just that references to submenus are transparent while references to actual pages display properly (with the color specified through the offbgcolor property.

Thanks
amanda
Beginner
Beginner
Posts: 7
Joined: Mon Apr 16, 2007 5:54 pm

Post by amanda »

I looked at your code and have two suggestions. The first is that you have duplicate menu entries, Platforms is there twice. Since this is javascript every typo or syntax error will mess up the menu. The second is to take out your milonic code and place it into a seperate file. I am assuming you have this menu on every subpage so if you have to make a change, you will only have one place to look.

As for your background problem, the best way to learn is to start commenting out lines of your code in menuStyle till you find what is causing the problem.

Hope this helps!
richards
Beginner
Beginner
Posts: 6
Joined: Wed Jul 25, 2007 2:33 pm

Transparent Menu Choices

Post by richards »

Thanks for your advice. It turns out that the big problem was with the style sheet. The menu had taken the color spec from the style sheet for table and (for Internet Explorer) the TD keywords. The style sheet trumped the drawing script, which must create a table which it then "draws" on the screen.

Thanks again for your help.
Post Reply