Forum Home
PC World Chat
 
Thread ID: 69456 2006-06-02 04:28:00 How can I do this? stu161204 (123) PC World Chat
Post ID Timestamp Content User
459949 2006-06-02 04:28:00 On The left hand side of this site: this site is in german & it’s slow) when you click on a link for example when you click on “Wir über uns “ you get another set of links see: http://www.fit-4.net/ueber_uns.php" target="_blank">www.fit-4.net/ (Note: this site is in german & it’s slow) when you click on a link for example when you click on “Wir über uns “ you get another set of links see: http:

Does any one know how you can do this?

Thanks in advice
stu161204 (123)
459950 2006-06-02 04:55:00 They're different pages.

Each different page has a different set of sub menus.

Nothing tricky about that.
ninja (1671)
459951 2006-06-02 04:57:00 Try some of the scripts on this (www.dynamicdrive.com) page. They've all got demos on the pages themselves. Greg (193)
459952 2006-06-02 05:24:00 They're different pages.

Each different page has a different set of sub menus.

Nothing tricky about that.

yeath your right ninja its just all html & tables

Bugger! & the site I want to do this on is using dev’s! :(
stu161204 (123)
459953 2006-06-02 05:27:00 Very good site. I was about to revamp our Club web site and now I have new ideas and other peoples code.

Must learn more about DHTML and Java too.

Thanks for that.
Sweep (90)
459954 2006-06-02 12:50:00 All you need is a simple css style sheet and an unordered list.

Each menu item would have a class to be either be extended on not depending on what page you were on.
Rob99 (151)
459955 2006-06-02 13:05:00 You can also do this via PHP. something like
<?php
if($page == 'p1') {
echo($links['p1']);
}

?>in each nav section. This will help to keep code bloat down, as it will only send to the browser what will actually be displayed.
Erayd (23)
459956 2006-06-02 23:48:00 Rob99, I don't think there is a pure css way to do that well is there? I think the best way is as Bletch suggested. mejobloggs (264)
459957 2006-06-03 02:10:00 Rob99, I don't think there is a pure css way to do that well is there? I think the best way is as Bletch suggested.
Yes, you can do this with CSS (in the way Rob99 suggests) but it involves sending all the links every time, regardless of what page you are on. All the 'sub-links' are in containers set to display:none, and in the head section of each page set the links for that page to display:block. The PHP method is more efficient though, and less likely to go wrong - IE has some interesting compliance issues with CSS. I believe in this instance using CSS will trigger the 3px gutter bug - fixable, but annoying.
Erayd (23)
459958 2006-06-23 12:50:00 Thank you all your reply’s :)

ninja was right there was northing tricky to do that :o :blush:
stu161204 (123)
1