Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Menu In Links

  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    459
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Menu In Links

    Hi All,

    I am wondering if I can achieve this, I want to have a link:

    "NEWS & EVENTS"

    And then when rolled over:

    "NEWS & EVENTS / Menu Item 1 / Menu Item 2 / Menu Item 3"
    Last edited by tomyknoker; 10-31-2006 at 09:47 AM.

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Manchester, UK
    Posts
    533
    Thanks
    4
    Thanked 1 Time in 1 Post
    put a hidden div that gets called when you mouse over the "news & events".

    something like

    Code:
    <script type="text/javascript">
    function toggle_menu(which, how) {
    	//which is the menu number
    	//how is what do to (display method)
    	document.getElementById("menu" + which + "_sub").style.display = how;
    }
    </script>
    
    <div id="menu1" onmouseover="toggle_menu(1,'block')" onmouseout="toggle_menu(1,'none')">
    	News &amp; Events
    	<div id="menu1_sub" style="display:none">Menu item 1 | Menu item 2 | Menu item 3</div>
    </div>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •