- Create Account

Highlighting a root selection until another Menu selection.

Forums > Cascading Popup Menus: Feedback > Highlighting a root selection until another Menu selection.
Author
Message

1) PECastro Group: Guests
IP: 212.0.--.--
Hi Angus.
Nice frackin Menus man... enough said.
Do you think its possible for a menu root like File for instance to stay highlighted or underlined or just pointed out after a user clicked in some of its internal items?
It woul only dim after the user made another selection in the menu though higliting another root member?
Tkx.

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Yes -- in fact, if you pay close attention on the frontpage of this very website, you'll see that as you navigate in, "selected" items are green :).

I  do this on the backend with some PHP that compares each link HREF to the requested document address and highlights them if they match. It'd be just as simple to do in JS though!

- Angus.

3) PECastro Group: Guests
IP: 212.0.--.--
Ok. I've already noticed.
But what is the function call that highlights Parent Menu Item?
Tkx.

P.

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.173.--.--
Actually, sorry -- I should have pointed out that I'm using the FreeStyle Menu script, not the Cascading Popup Menu script.

For the CPM script, there's a suggestion in the pop_help.html file as to how to ago about doing this. You might want to adjust it to match your URL naming scheme -- if you're familiar with JavaScript text processing/comparison that should be OK.

Good luck - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.