Skip to content

Instantly share code, notes, and snippets.

@kirkconnell
Created May 6, 2011 17:34
Show Gist options
  • Select an option

  • Save kirkconnell/959394 to your computer and use it in GitHub Desktop.

Select an option

Save kirkconnell/959394 to your computer and use it in GitHub Desktop.
var mousingOverEvent;
var mouseOutDelay = 500;
$('.hover_menu').hover(function(){
clearTimeout(mousingOverEvent);
$('#passport_login').hide();
$('#passport_dropdown').show();
$('#passport_dropdown').position({
my: "right top",
at: "right bottom",
of: "#switch_apps a",
offset: "0 3"
});
},
function(){
mouseOverEvent = setTimeout(function(){
$('#passport_dropdown').hide();
}, mouseOutDelay);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment