Having the following:
$('#navMain .nav1').hover(function () {
$(this).addClass('hover');
if ($.browser.msie && $.browser.version < 7)
$('select').css('visibility', 'hidden');
}, function () {
$(this).removeClass('hover');
if ($.browser.msie && $.browser.version < 7)
$('select').css('visibility', 'visible');
});
I need to delay the executing of addClass('hover')
after hovering over $('#navMain .nav1')
element.
I've tried this but it doesn't work:
$(this).delay().addClass('hover');
if ($.browser.msie && $.browser.version < 7)
$('select').delay().css('visibility', 'hidden');
thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…