Hi Robert, conceptually, here's what you need to do:
Create a hidden div (with 'display:none;') and position it where you want to become visible later. Create a mouse-over handler for the respective button, like so:
$('#button').mouseover(function(){
$('#menu').css({ 'display': 'block' }); // this will make the hidden menu become visible
});
then create a mouse leave handler:
$('#menu').mouseleave(function(){
$('#menu').fadeOut() // this will hide the menu again
});
To keep the menu open when the user want to, unbind the mouseleave even event again, like so:
$('#pin').click(function(){
$('#menu').unbind();
});
hope this helps,
martin
Hoff
2009-10-24 18:36:15