SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adjust CSS dropdown menu?

    I am looking to create a dropdown menu. I just have one question. Instead of hovering and the menu droping down, how do i make it to click and stay down unless clicked again?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    That's something you need to do with JavaScript. If you describe how you want this to work, we may be aple to point you to scripts that already exist. Anyhow, I'll move this to the JS forum.

  3. #3
    Non-Member
    Join Date
    Aug 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its easy if you can use jQuery:

    $(document).ready(function(){
    $('ul.menu li').click(function(){
    open your menu here...
    }, function(){
    close your menu here on second click
    });
    });


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
  •