Created
November 6, 2012 18:30
-
-
Save eristoddle/4026566 to your computer and use it in GitHub Desktop.
Hover based dropdown form jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.fb-album').hover( | |
function () { | |
pf_data.fb_list_hover = false; | |
$('.album-list').show(); | |
$('.album-list').hover( | |
function () { | |
pf_data.fb_list_hover = true; | |
$('.album-list').show(); | |
/*$('.album-list li').click(function () { | |
$('.album-list').hide(); | |
});*/ | |
}, | |
function () { | |
$('.album-list').hide(); | |
pf_data.fb_list_hover = false; | |
}); | |
}, | |
function () { | |
var delay = function (time, callback) { | |
$.fx.step.delay = function () {}; | |
return this.animate({ | |
delay: 1 | |
}, time, callback); | |
} | |
$('.album-list').delay(1000, function () { | |
if (!pf_data.fb_list_hover) { | |
$('.album-list').hide(); | |
} | |
}); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment