PDA

View Full Version : Submenu's won't close


mpiaser
08-10-2008, 12:14 PM
See www.activeamericans.com - scroll to bottom middle of page and click on "version 2". This will bring up the UDM4 navigation bar (menus).

Move your mouse to "About US" - don't click any of the submenus but move the mouse to another menu such as "Affinity Program". The submenus for About US stay on the screen but I do not want them too.

vinyl-junkie
08-10-2008, 03:39 PM
You have quite a number of validation errors (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.activeamericans.com%2F&charset=(detect+automatically)&doctype=Inline&group=0) on your page, which is probably the reason for the menu behaving as it does. Try fixing the validation errors first and see if that fixes the problem. If not, please let us know and we'll take a closer look. Thanks!

mpiaser
08-11-2008, 04:05 AM
"Fixing" the validation errors is a major task. First, by putting just the website URL in the validation tool, it is not checking the HTML in use when UDM4 is running. I have to really play around to generate the HTML. Most of the "errors" are related to DOCTYPE which the tool isn't recognizing my DOCTYPE statement. I will continue working on this issue but it will take a lot of time and I was hoping for a solution quicker than debugging all the validation errors (of which most of them are probably not even valid)

mpiaser
08-11-2008, 11:47 AM
I have trace the problem to my attempt to change the text color of a selected menu item. In my code, when I am writing the menu item which I want to indicate as selected, I am adding <span style="color:d7671a;">

For example: <li><a href='my link info'>Name</style></a></li>";

becomes

<li><a href='my link info'><span style="color:d7671a;">Name</style></a></li>";

The problem was that I had </style> instead of </span>

vinyl-junkie
08-11-2008, 02:48 PM
Congratulations on getting your menu working. Also, thanks for posting the solution to your problem. Perhaps it will help someone else down the road.