SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Expandable Menu

  1. #1
    SitePoint Enthusiast weicool's Avatar
    Join Date
    Jul 2004
    Location
    USA
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Expandable Menu

    I have recently brushed up on my CSS knowledge through a book and have been inspired to design a new layout for my site using CSS. I'm thinking about creating a vertical, expandable menu. I have a few major sections on my website, whose links appear on a menu. If a visitor clicks on, say, an arrow next to that link, I wish to present them with an expanded version of that section, providing links to sub-pages. Is this possible only using CSS, or is there some JavaScript involved (I know little about JavaScript)? I'm hoping that JavaScript isn't required, since it seems that search engines don't work well with it, and some users can have it disabled.
    Pokemon Dream - The greatest Pokemon website of all...

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're going to have to use JavaScript for this. Fortunately, there is an accessible (and unobtrusive) means of doing so:
    http://onlinetools.org/tools/dom-tree-menu-puredom

    Just style with CSS to taste.


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
  •