This is a discussion on "Sub-Links" within the Web Page Design section. This forum, and the thread "Sub-Links are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Sub-Links
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Sub-Links
Okay,
I've tried researching on this but haven't found anything... On http://www.newbreedjesusfreaks.com/, I'd like to make some sub-links; as in under the staff link I'd like it to display a few more links UNDER the main link. But i don't want those thinks to show UNLESS I'm on the staff page... Am I making any sense?
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
|
|
#2
|
|||
|
|||
|
Re: Sub-Links
To do this you would have to make your menu (on the staff page only) like such:
HTML:
I got this from my menu links which was from Dynamic Drive's menus.
Last Blog Entry: First Post! (Apr 18th, 2008)
Last edited by nashultz07; Nov 18th, 2007 at 11:48. |
|
#3
|
||||
|
||||
|
Re: Sub-Links
hmm, Altho I thought this was good , it doesn't work.(for me)
take a look. http://www.newbreedjesusfreaks.com/index.php?page=staff
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#4
|
||||
|
||||
|
Re: Sub-Links
mcdanielnc89, from what I understood on your original post you want the extra navigation to appear directly below the Staff link on the left menu, only when you are on the 'staff' page?
If so, since you are using php, you would want to nest a list within
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Last edited by Aso; Nov 18th, 2007 at 19:04. |
|
#5
|
||||
|
||||
|
Re: Sub-Links
maybe if i attach some code i can understand it better.. my page is setup with php, yes, but, i hace namehere.inc.php and then the namehere.php. the inc file tells the command to open that page when i click it.. here is the main code...
My index..
staff.php
Last Blog Entry: My blog? (Oct 18th, 2007)
|
|
#6
|
||||
|
||||
|
Re: Sub-Links
If you're coding the page server-side, it's a lot easier to do it with a script than with CSS.
Just put whatever two states of navigation you want inside a conditional based on your $title variable. Say you have a basic style for navigation done by styling the <li> element in your css. Set a second style for a class in the css, say "li.x". Now say you want to use your basic style for navigation links, but want to use style "x" if you are on the page the link is set to (a common feature):
If this is going to affect every link (or a large number of links) there are shorter ways to code it, than by inserting a long string of "if" clauses. Anyone using OOP would do this automatically. (I mean, there are OOP fanatics who would make this into a class if two links were affected, LOL.) You can also shorten it in procedural code if someone else is going to be reading the code. If it's for your own site and you don't mind a long string of code, it would be faster just to duplicate the clauses. |
|
#7
|
||||
|
||||
|
Re: Sub-Links
Why don't you do something as follows (it might work but then it might not!):
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PR4 links for sale...links in an excellent position | agent14 | Link Building and Link Sales | 4 | Sep 19th, 2008 16:09 |
| Msie doesn't make my links links.. | delusion | Web Page Design | 7 | Nov 7th, 2007 08:05 |
| PR 5 Links available for recip links | GARY | Link Building and Link Sales | 1 | Aug 19th, 2006 09:52 |
| Blured Links (image links) | bruno89 | Web Page Design | 2 | Jul 25th, 2006 14:48 |
| Different coloured links without modifying links? | Webforumz Staff | Web Page Design | 12 | Aug 29th, 2003 18:48 |