Dropdown Menus using Multilevel UL LI

Hi,

Please find the code.

<html>
      <head>
            <style>
                  ul {
                        margin: 0;
                        padding: 0;
                        list-style: none;
                  }
                  ul li {
                        position: relative;
                        float: left;
                      width: 500px;
                  }
                  li ul {
                        position: absolute;
                        top: 30px;
                        display: none;
                  }
                  ul li a {
                        display: block;
                        text-decoration: none;
                        line-height: 20px;
                        color: #000;
                        padding: 5px;
                        background: #CC0;
                        margin: 0 2px;
                  }

                  ul li ul {
                        position: relative;
                        float: left;
                      width: 500px;
                        display: none;
                  }

                  ul li ul a {
                        display: block;
                        text-decoration: none;
                        line-height: 20px;
                        color: #000;
                        padding: 5px;
                        background: #CC0;
                        margin: 0 2px;
                  }
                  
                  
                  ul li a:hover { background: #66F; }
                  li:hover ul, li.over ul { display: block; }            
            </style>
            <script language="javascript">
                  startList = function() {
                  if (document.all&&document.getElementById) {
                  navRoot = document.getElementById("nav");
                  for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                  node.onmouseover=function() {
                  this.className+=" over";
                    }
                    node.onmouseout=function() {
                    this.className=this.className.replace(" over", "");
                     }
                     }
                    }
                   }
                  }
                  window.onload=startList;            
            </script>
      </head>
<body>
<ul id="nav" class="categoryfilter">
          <li>
            <a href="javascript:callCategory('^6','Passives')">Passives (214960)</a>
            <ul>
              <li>
                <a href="javascript:callCategory('^6/12','Capacitors')">Capacitors (214443)</a>
                <ul>
                  <li>
                    <a href="javascript:callCategory('^6/12/173','Ceramic - Multilayer')">Ceramic  -  Multilayer (164498)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/12/220','Plastic Film')">Plastic Film(21831)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/12/160','Tantalum - Solid')">Tantalum - Solid (14250)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/12/46','Ceramic - Single Layer')">Ceramic -Single Layer (5391)</a>
                  </li>
                </ul>
              </li>
              <li>
                <a href="javascript:callCategory('^6/11','Resistors')">Resistors (376)</a>
                <ul>
                  <li>
                    <a href="javascript:callCategory('^6/11/162','Fixed - Single')">Fixed - Single (363)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/11/174','Fixed - Networks/Arrays')">Fixed - Networks/Arrays(9)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/11/1','Trimmers/Pots/Rheostats')">Trimmers/Pots/Rheostats (4)</a>
                  </li>
                </ul>
              </li>
              <li>
                <a href="javascript:callCategory('^6/15','Magnetics - Inductors')">Magnetics - Inductors (114)</a>
                <ul>
                  <li>
                    <a href="javascript:callCategory('^6/15/5','Surface Mount')">Surface Mount (113)</a>
                  </li>
                  <li>
                    <a href="javascript:callCategory('^6/15/6','Leaded')">Leaded(1)</a>
                  </li>
                </ul>
              </li>
             </ul>
          </li>
        </ul>
</body></html>




From the above code what i wanted is...

When some one moves above Passives (214960)

I need to have a drop down for (Capacitors (214443), Resistors (376), Magnetics - Inductors (114))

and when some one moves above Capacitors (214443) I need to show another dropdown (Ceramic  -  Multilayer (164498), Plastic Film(21831),Tantalum - Solid (14250),Ceramic -Single Layer (5391))

Not sure how we can associate UL LI A, and Hide them and show it back.

Any help is appreciated.

Regards,G.
LVL 4
gcmachelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dbruntonCommented:
Try here for a sample menu that might do what you want to do.

http://www.howtocreate.co.uk/tutorials/testMenu.html

Scroll down for the sample code.



A wider range of menus can be found here

http://www.cssplay.co.uk/menus/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.