View Single Post
Morgan19

 
Member Since: Apr 08, 2004
Posts: 129
Morgan19 is on a distinguished road

Morgan19 is offline
I was wondering if there's a fairly simple way to set up navigation to behave in this way. Let's say that I have a cell on the left side of my site that has simple text links as navigation, set up with the following main sections:

Home
About Us
Archives
News


What I'd like to happen is that when you're on any pages in the About Us section, for example, a secondary bit of textual links would be shown under the main About Us link, like this:

Home
About Us
...Sublink 1
...Sublink 2
...Sublink 3
Archives
News


But then when a user arrives on a News page, only News subpages would be shown (and the About Us sublinks would be "rolled" back up), like this:

Home
About Us
Archives
News
...Sublink 1
...Sublink 2


So basically, I'd like the sublevel navigation to only show when a user is on a particular section. My guess was that this would involve some JavaScript coding, but I'm not sure how to proceed.

m19
QUOTE Thanks