Results 1 to 5 of 5

Thread: Switch Menu - Highlight Current Menu Item?

  1. #1
    Join Date
    Jun 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Menu - Highlight Current Menu Item?

    I am using the Switch Menu
    http://www.dynamicdrive.com/dynamici...switchmenu.htm

    I really like it, but would like to be able to have the current selected menu item stay highlighted so the user knows where they are.

    If anyone knows how to modify the code to support this, I would really appreciate sharing this with me!

    Thanks

  2. #2
    Join Date
    Nov 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes I have ask his many times now... especially for the submenu items, the lack of replies signals that either it can't be done or its a tad difficult for the developers... lets hope they respond soon because it would really be the icing on the cake to a very nice menu sript..

    steve

  3. #3
    Join Date
    Nov 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    IS ANYONE EVER GOING TO COM UP WITH AN ANSWER?...

    Must be a real toughy

  4. #4
    Join Date
    Dec 2007
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, no kidding. Now there are at least 3 of us who want to be able to do this. It can't be that difficult for people who write these scripts, can it?

  5. #5
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Talking

    Quote Originally Posted by magruth View Post
    I am using the Switch Menu
    http://www.dynamicdrive.com/dynamici...switchmenu.htm
    I really like it, but would like to be able to have the current selected menu item stay highlighted so the user knows where they are.
    If anyone knows how to modify the code to support this, I would really appreciate sharing this with me!
    Thanks
    It's all CSS based.
    Add a new id or class selector, call it current.

    So it's like this:

    Code:
    .menutitle{
    cursor:pointer;
    margin-bottom: 5px;
    background-color:#ECECFF;
    color:#000000;
    width:140px;
    padding:2px;
    text-align:center;
    font-weight:bold;
    }
    
    .submenu{
    margin-bottom: 0.5em;
    }
    
    #current{
    cursor:pointer;
    margin-bottom: 5px;
    background-color:#FF0000;
    color:#FFFFFF;
    width:140px;
    padding:2px;
    text-align:center;
    font-weight:bold;
    }
    So you add it like this in RED.
    Code:
    <div class="menutitle" onclick="SwitchMenu('sub1')" id="current">Site Menu</div>
    Have you guys had any experience with HTML, CSS?

    Anyways if you want it dynamic, do this:
    Dynamic_Menu_Highlighting

    This is better:
    current_menu_state_with_css/

    Cheers
    Last edited by student101; 04-20-2008 at 07:11 AM. Reason: Adding more info

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
  •