Or Weinberger
Or Weinberger

Reputation: 7482

jQuery menu styling

I've seen a really nice jQuery-like menu on force.com (after you log-in). And I can't find a tutorial/example on how to create it using jQuery.

It looks like this:

Before hover:

enter image description here

On Hover:

enter image description here

On Click:

enter image description here

Anyone knows where I can find a good example on how to create one of these?

Thanks.

Upvotes: 0

Views: 61

Answers (1)

Val
Val

Reputation: 17542

This is a very basic one :) however u do need css to style it how ever u wish :)

<ul>
    <li class="header">Header</li>
    <li class="menu" style="display:none;">
       <ul>
          <li>Me</li>
       </ul>
    </li>
</ul>



$('.header').click(function (){
 $('.menu').toggle();
});

Upvotes: 1

Related Questions