Skip to content Skip to sidebar Skip to footer

Making The "jsddm" Menu To List Sub Menus

can u help me making this jquery/css/menu to also display a second level ? this is the code: HTML

Solution 1:

How about not using jQuery at all and just using CSS for your menu?

http://jsfiddle.net/Sjhab/

<ulid="jsddm"><li><ahref="#">JavaScript</a><ul><li><ahref="#">Drop Down Menu</a></li><li><ahref="#">jQuery Plugin</a></li><liclass="b"><ahref="#">Ajax Navigation</a><ul><li><ahref="#">AJAXIFY</a></li></ul></li></ul></li><li><ahref="#">Effect</a><ul><li><ahref="#">Slide Effect</a></li><li><ahref="#">Fade Effect</a></li><li><ahref="#">Opacity Mode</a></li><li><ahref="#">Drop Shadow</a></li><li><ahref="#">Semitransparent</a></li></ul></li><li><ahref="#">Navigation</a></li><li><ahref="#">HTML/CSS</a></li><li><ahref="#">Help</a></li></ul>



#jsddm
{ margin: 0; padding: 0}

#jsddm li
{   float: left;
list-style: none;
font: 12px Tahoma, Arial}

#jsddm li a
{   display: block;
background: #20548E;
padding: 5px 12px;
text-decoration: none;
border-right: 1px solid white;
width: 70px;
color: #EAFFED;
white-space: nowrap}

#jsddm li a:hover
{   background: #1A4473}

#jsddm li ul
{   margin: 0;
    padding: 0;
    position: absolute;
    visibility: hidden;
    border-top: 1px solid white;
    opacity: 0;
}

#jsddm > li:hover ul,
#jsddm > li:hover ul li:hover ul
{
    visibility: visible;
    opacity: 1;
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;    
}

#jsddm ul {

-webkit-transition: all .5s ease-out .5s;
-moz-transition: all .5s ease-out .5s;
-ms-transition: all .5s ease-out .5s;
-o-transition: all 5s ease-out.5s;
transition: all .5s ease-out.5s;
}


#jsddm > li:hover ul li ul {
    visibility: hidden;
}


#jsddm li ul li
{   float: none;
    display: inline;
    position: relative;
}

#jsddm li ul li a
{   width: auto;
    background: #9F1B1B}

#jsddm li ul li a:hover
{   background: #7F1616}

Post a Comment for "Making The "jsddm" Menu To List Sub Menus"