Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cascading menu idea

Status
Not open for further replies.

guitardave78

Programmer
Joined
Sep 5, 2001
Messages
1,294
Location
GB
I would like to be able to set up a menu using a list and use javascript to build a cascading menu from it.
Has anyone done this? Basically nested uls would become cascading submenus?
Code:
<ul class="cascadeMenu">
  <li> <a href="#">Item 1</a>
    <ul class="subMenu">
      <li><a href="#">Item 2</a></li>
      <li><a href="#">Item 3</a></li>
    </ul>
  </li>
  <li> <a href="#">Item 4</a>
    <ul class="subMenu">
      <li><a href="#">Item 5</a></li>
      <li><a href="#">Item 6</a></li>
    </ul>
  </li>
</ul>

}...the bane of my life!
 
This is a common approach for CSS menus. Google unordered list menu

At my age I still learn something new every day, but I forget two others.
 
dave, have a look here:



You can also find a lot of variations on that main idea using google.

-kaht

[small]How spicy would you like your chang sauce? Oh man... I have no idea what's goin' on right now...[/small]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top