Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   Web Design and Hosting (http://www.mac-forums.com/forums/web-design-hosting/)
-   -   Text navigation auto-appears on certain pages? (http://www.mac-forums.com/forums/web-design-hosting/28518-text-navigation-auto-appears-certain-pages.html)

Morgan19 01-04-2006 04:13 PM

Text navigation auto-appears on certain pages?
 
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

Murlyn 01-04-2006 04:27 PM

Yeah javascript or a server side language like PHP could do the job. To do something like this though you'll probably need to have some coding experience unless you can find a script that makes it easy on you.

Morgan19 01-04-2006 04:28 PM

Gyah. That's what I was afraid of. Ok, thanks for the help. :)

m19

Ghostshadow 01-05-2006 02:06 PM

here is one, i think this is is what your looking for, http://www.dynamicdrive.com/dynamici...switchmenu.htm


All times are GMT -4. The time now is 02:32 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.