Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webdesign - making menus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
krolden
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 293
Location: Belgium

PostPosted: Wed Sep 01, 2004 6:22 pm    Post subject: Webdesign - making menus Reply with quote

I recently got elected for sysadmin at a student club in our college. With it came the responsibility to maintain the website.
Thing is that it's pretty outdated, so I'm updating it at the moment. Though, I'm not a webdesigner (it's not my kind of hobby), I'm doing rather fine writing PHP, and so far everything does what it has to. Except for one thing. On the left side of the site there is a menu bar. It contains items that refer to various pages (duh). Some of them expand when you click on them, displaying a submenu.
I added some elements to some of the submenus, which are triggered by an "if clause" written in PHP. When I upload it, though, and click on the menu item that normally causes the menu to expand, it doesn't.

Now my question is, is a thing such as expandig a menu triggered by PHP or something like JavaScript?

Thx in advance...
Back to top
View user's profile Send private message
Flammie
Retired Dev
Retired Dev


Joined: 02 Jun 2003
Posts: 633
Location: Dublin, Ireland

PostPosted: Wed Sep 01, 2004 6:49 pm    Post subject: Re: Webdesign - making menus Reply with quote

Krolden wrote:
On the left side of the site there is a menu bar. It contains items that refer to various pages (duh). Some of them expand when you click on them, displaying a submenu.


Why? I'd expect to see that kind of UI on a file system browser such as Windows Explorer, not on a web page.

Quote:
Now my question is, is a thing such as expandig a menu triggered by PHP or something like JavaScript?


PHP is server side scripting language, javascript is usually client side. I assume you want javascript to have the expanding menu system working without page reloads or other confusing stuff.
Back to top
View user's profile Send private message
mikkelhoegh
n00b
n00b


Joined: 27 Aug 2004
Posts: 71
Location: Herning, Denmark

PostPosted: Wed Sep 01, 2004 6:54 pm    Post subject: Reply with quote

There is about a zillion way to do this - you might make it easy on the yourself and browse to one of those free-javascript-pages and grab a menu-script :)
Back to top
View user's profile Send private message
krolden
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 293
Location: Belgium

PostPosted: Wed Sep 01, 2004 7:05 pm    Post subject: Reply with quote

This is what I want it to do.


initial state

When clicked on "informatie"
expanded

Now, I added a few items to the submenu (by adding some info in the PHP code), but when I test it again, it doesn't expand anymore. I think the PHP code is correct, but I don't know if the expanding (the menu normally expands to the appropriate length) is done by some script.
Back to top
View user's profile Send private message
d0nju4n
Apprentice
Apprentice


Joined: 19 Apr 2004
Posts: 283
Location: Rochester, MN

PostPosted: Wed Sep 01, 2004 8:00 pm    Post subject: Reply with quote

check out dynamic drive. They may have what you're looking for.
_________________
Linux User 355087
Back to top
View user's profile Send private message
Teetante
Guru
Guru


Joined: 02 Mar 2004
Posts: 515
Location: Oldenburg/Germany

PostPosted: Thu Sep 02, 2004 12:14 am    Post subject: Reply with quote

For PHP there is a package repository called PEAR.

They offer a package called HTML_Tree_Menu which does what you want.

An example can be found here
_________________
ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum