1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What is this menu called??

Discussion in 'HTML & Website Design' started by LongHaul, Sep 28, 2006.

  1. #1
    I want to put a kind of drop-down menu on a page, but not the "hover" kind with custom graphics I always see when I search.

    I'm thinking of an all-text one, in which the subcategories are hidden by default, with only the headers showing:

    > Shoes
    > Pants
    > Shirts

    When you click "Pants" (or the arrow beside it), the list becomes:

    > Shoes
    v Pants
    - Slacks
    - Jeans
    - Shorts
    - Assless
    > Shirts

    I can't give any online example off the top of my head, except for Google Analytics' "View", "Marketing Optimization" and "Content Optimization" menus.

    I don't know how to search for this, so I can't find any code for it. I don't even know if it's CSS or java! I looked at the Google Analytics source, but it's a little over my head.

    If you can help, thanks a lot!
     
    LongHaul, Sep 28, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Sep 28, 2006 IP
  3. chankit

    chankit Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's two different approaches to this expandable menus.

    For static expansion, you have to be in one of the submenu page for all other submenus in the same top-level menu to show. This is either done in PHP or statically (html hard coded).

    For dynamic expansion, you can either use Flash or DHTML+javascript to do the job. There are many free codes (and paid) around.

    Try this search, you may find what you are looking for:

    http://www.google.com/search?q=free+dhtml+menu
     
    chankit, Sep 28, 2006 IP
  4. mstwntd

    mstwntd Peon

    Messages:
    72
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    These are often referred to as 'Tree Menus'. Here's another link.
     
    mstwntd, Sep 28, 2006 IP
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Hmmm, looking at the source selection at the Google Analytics site, it seems that it's only CSS and no JS required to do that ...


    tayiper
     
    tayiper, Sep 28, 2006 IP
  6. LongHaul

    LongHaul Peon

    Messages:
    670
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks everyone, I found what I was looking for (I think) at http://javascript.internet.com/navigation/expanding-menu.html.

    I haven't played with it enough yet, and I may have problems getting an entire row's background to change color on hover (I was only getting the background directly behind the text to do so on my brief playing around with the CSS), but it does just what I was thinking.

    I may end up doing a straight JS anyway if I can't get it like I want, but it's pretty cool. The only part I didn't like about the above was having to place stuff in the header, the body, the CSS file, AND a separate JS file.

    But to the end user, none of that matters I guess.
     
    LongHaul, Sep 28, 2006 IP
  7. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Pat Gael, Sep 28, 2006 IP
  8. Kirtan

    Kirtan Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can do that in diffrent ways CSS show/hide layer. Javascript/DOM, etc..
     
    Kirtan, Oct 1, 2006 IP
  9. massjo

    massjo Active Member

    Messages:
    1,567
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    78
    #9
    thanks for the tools mate. really helpful things,
     
    massjo, Dec 15, 2010 IP
  10. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Cash Nebula, Dec 16, 2010 IP