Results 1 to 4 of 4

Thread: how do I create expandable menus?

  1. #1
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default how do I create expandable menus?

    Hello,

    I'm looking for a way to create expandable menus on a web page - "expandable" meaning a tree structure that you can collapse or expanding depending on how deep into the tree you want to go.

    The kind of thing I'm looking for can be seen on this Microsoft web page: http://support.microsoft.com/kb/278835. Scroll to the bottom where it says "applies to". To the left of it, there's a box with a plus sign in it. You can click on it and it expands a list. The plus sign changes to a minus sign, and if you click on it again, the list collapses. This is a very simple tree - only one level deep - but I've seen other expandable lists/trees like this in which even the list items in the expanded branch have the little boxes with the plus signs, and clicking on those boxes opens up another layer of list items.

    I'm sure this must involves some javascript or DHTML, maybe even some server side code such as ASP.NET or VB or C#. Can someone explain to me how this works or at least point me in the right direction? Thanks very much.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That can't be done with anything serverside because serverside code operates on the server-- so it doesn't interact with the user. You need something clientside, such as Javascript (or a plugin, like Flash).

    There are a few menus like this available in the DD library. Take a look at those first and see if one works. If not, explain why and we can try to point you in the right direction.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2008
    Posts
    192
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    All right, I'll have a look. Thanks djr33.

  4. #4
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default here use this to test with

    http://www.web-user.net/menu/14/index.html

    It is the one level down.

    Bud
    Thanks,

    Bud

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
  •