
Originally Posted by
jscheuer1
I don't see a simple way or even a complicated one to do that through the code.
I haven't looked at the code in question, but presumably one could examine the links and the URL of the current document. Exactly how one would relate to the other depends on the site structure, but assuming there's a pattern, you could use that to determine where to highlight.
Consider this section of a hypothetical menu, and the associated links for each item:
Code:
Products http://www.example.com/products/
|
+-- Accessories http://www.example.com/products/accessories
+-- Monitors http://www.example.com/products/monitors
+-- Processors http://www.example.com/products/processors
+-- Storage http://www.example.com/products/storage
If the URL for the current document contained "http://www.example.com/products/", you could highlight the "Products" top-level item.
Just some food for thought.
Mike
Bookmarks