Just use put a mouseover event on the trigger which shows the menu,
and a mouseout event on the menu itself... like

<a href="#" id="startButton">Start</a>
<ul id="startMenu">
  <li>All Programs</li>
  <li>Recent Documents</li>
  <li>Upgrade to a Mac</li>
</ul>

$('#startButton').mouseover(function(){
  $('#startMenu').show();
});
$('#startMenu').mouseout(function(){
  $(this).hide();
});


On Sep 9, 11:10 pm, ops <p.sch...@googlemail.com> wrote:
> Hi,
>
> I want to make a vertical superfish menu, which should be shown after
> hovering over some button... when moving the mouse out from the menu
> again, the whole menu should disappear. (so a bit like the windows
> start menu)
>
> The first part works (showing the menu after hovering over the
> button), but I don't know where to add which code to hide the complete
> menu again, when the mouse leaves the menu...
>
> any tips?
>
> Best regards,
> ops

Reply via email to