Results 1 to 7 of 7

Thread: I need a drop dowm menu that can be edited from one file..

  1. #1
    Join Date
    Jun 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need a drop dowm menu that can be edited from one file..

    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?

    thanks!

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Tell me if this is sort of what you are talking about

    http://phphost.smackum.com/test/

    and to edit the txt file, use the following:

    http://phphost.smackum.com/test/edit.php

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jun 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks, thats sort of what I was looking for, but with the drop down effect happening on mouseover.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Check out Demo 3 of the page in my last post and tell me if that is more like what you want.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jun 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah, something along that line - pretty cool actually!

  6. #6
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You could use this

  7. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •