$('.file a').live('mouseenter', function() {
$('#download').stop(true, true).fadeIn('fast');
}).live('mouseleave', function() {
$('#download').stop(true, true).fadeOut('fast');
});
I want the mouseenter
function to have a stop()
and a delay of 1 second.
So, if I hover over #download
the fadeIn
should start after a 1 second delay. If I mouse out meanwhile the fadeIn
shouldn't start. Get me?
I don't really know how to do that, any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…