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

highlight main nav items


Poster: trent
Dated: Tuesday October 28 2003 - 4:27:44 GMT

I have a menu with five items. On say NAV item four I have no subnav items but on the page that it calls I have sub pages to call that are within the page, How can I highlight nav item four while the user is calling some of the page items. The pages called will be in the same directory as Nav item four if that helps.

regards


trent


Poster: Hergio
Dated: Tuesday October 28 2003 - 5:34:58 GMT

I dont quite understand what you are trying to do. Do you have a URL we could look at?


Poster: trent
Dated: Tuesday October 28 2003 - 5:50:53 GMT

No I don't have a url at this point in time,
Refering to my previous example. on the page that is called from Nav item four there is a list of generated pages. Can I when calling the items on this page still have nav item 4 highligted as the current site section.
Does that clarify it any further.

cheers

trent


Poster: John
Dated: Tuesday October 28 2003 - 14:12:42 GMT

I'm having trouble understanding this one, too (which is why I didn't try to answer it last night!). However, if you're saying sub4 from your main menu will call a page, then that called page has other links that can be hit, and when that happens you want the highlight to remain on your main menu, the answer is no. The reason is that the page you are on needs to match the URL of an item in the menu code.


Poster: trent
Dated: Tuesday October 28 2003 - 19:07:22 GMT

yes that is what I want, thanks for your answer

trent


Poster: Hergio
Dated: Wednesday October 29 2003 - 13:41:43 GMT

whew, thanks John. I was like 8O uhhh...out of it.


Poster: John
Dated: Wednesday October 29 2003 - 13:43:40 GMT

Well, it took me a day to figure it out, too...


Poster: kevin3442
Dated: Wednesday October 29 2003 - 17:07:26 GMT

I'd say that you could simulate the desired behavior in various ways. If the additional pages are, in fact, separate pages, then each one will have to load the menu scripts to display the menu. There are various ways you could apply the highlight color manually to the pertinent main menu item when the page loads... e.g., generating the menu code dynamically using server side scripting, setting a global js flag early in the page then using it in a conditional to specify colors, onclass/offclass, etc. in your menu_data.js.

Just a couple of thoughts,

Kevin