View Full Version : I need a drop dowm menu that can be edited from one file..

11-25-2006, 05:53 PM
I'm a web newbie here, so pls bear with me..

I'm bulding a site where I want a horizontal menu (preferably tabs), with multi level drop downs, that has it's content in as few files as possible. I'm not sure if I need php or css, or a mixture of both for this. I've used PHP on one site for different sets of links that show up on all pages, where I only have to edit a couple of files so that all pages that use these links are updated, and I also use a central css stylesheet for formatting behaviour of these links.

PHP works well for me as a central repository for all my links, which is why I posted in this forum.

On another site I used a javascript menu (HV menu) where I needed dropdowns, and I suppose it would do for this purpose as well as it has the single file for updating, but for this one I thought I'd get away from javascript and try something a little more lightweight. The one's I've looked at so far on this site and others seem to need the menu items/links located in the body section of the page themselves, which is not what I wanted. I want the link names and references to be located in a single file so that each page that has this menu does not need updating when I change or add a link.

Is this doable? Do I use PHP or CSS, both? Or am I best off sticking to javascript?

Any examples I may check out?


11-25-2006, 07:17 PM
Tell me if this is sort of what you are talking about


and to edit the txt file, use the following:


The files are located on my home server, so if you cannot access, I might be doing some updates on it just try again later.
Let me know if this helps or not.

11-25-2006, 07:27 PM
thanks, thats sort of what I was looking for, but with the drop down effect happening on mouseover.

11-25-2006, 07:39 PM
Check out Demo 3 of the page in my last post and tell me if that is more like what you want.

11-26-2006, 01:04 AM
yeah, something along that line - pretty cool actually!

11-26-2006, 01:07 AM
You could use this (http://javascript.internet.com/generators/drop-down-menu.html)

11-26-2006, 05:58 PM
You can view the source code by going to http://phphost.smackum.com/test/index.phps and http://phphost.smackum.com/test/edit.phps. Let me know if you need anymore help.