hoverintent

jQuery hoverIntent not working, but hover does

社会主义新天地 提交于 2019-12-01 11:53:38
I have the following code: $(document).ready(function(){ $(".yearInner").hide(); $(".year", this).hover( function () { $(".yearInner", this).slideToggle(); } ); }); It hides the div with class yearInner, and then when the containing div with class year is hovered over, the yearInner div toggles on. Works fine, put I'd like to use the hoverIntent plug-in instead of hover. Doesn't work at all with hoverIntent. Suggestions? Div structure for reference: <div class="year"> 2009 <div class="yearInner"> More Info... </div> </div> <div class="year"> 2008 <div class="yearInner"> More Info... </div> <

jQuery hoverIntent not working, but hover does

倖福魔咒の 提交于 2019-12-01 10:30:05
问题 I have the following code: $(document).ready(function(){ $(".yearInner").hide(); $(".year", this).hover( function () { $(".yearInner", this).slideToggle(); } ); }); It hides the div with class yearInner, and then when the containing div with class year is hovered over, the yearInner div toggles on. Works fine, put I'd like to use the hoverIntent plug-in instead of hover. Doesn't work at all with hoverIntent. Suggestions? Div structure for reference: <div class="year"> 2009 <div class=

jQuery - unbind or rebind hoverIntent()?

痞子三分冷 提交于 2019-11-28 21:38:42
I have a menu bar that displays a set of categories in an upper row. One of the categories has a set of sub-categories. I have a hoverIntent setup so that it will slideDown the submenu, and slideUp when the mouse leaves. However, if I am viewing a page in this category, I would like the submenu to be visible with the active category highlighted. I would also like to make sure that when the submenu is interacted with via the mouse, it does not slideUp again once the mouse leaves. I have tried redeclaring the hoverIntent function on the element in this page but it does not work, it is still

jQuery - unbind or rebind hoverIntent()?

◇◆丶佛笑我妖孽 提交于 2019-11-27 14:02:05
问题 I have a menu bar that displays a set of categories in an upper row. One of the categories has a set of sub-categories. I have a hoverIntent setup so that it will slideDown the submenu, and slideUp when the mouse leaves. However, if I am viewing a page in this category, I would like the submenu to be visible with the active category highlighted. I would also like to make sure that when the submenu is interacted with via the mouse, it does not slideUp again once the mouse leaves. I have tried