Jquery hover bug? -
i used jquery hover show item detail user hovers on item on page - dev.oyehabla.com problem mouse leaves item details must hide remain... jquery bug or i'm doing wrong? use code:
jquery('#big_container .item-image').hover(function(){ var $opt = $(this); $item_id = $opt.attr("id"); $post_id = $item_id.split('-'); jquery('#'+$item_id + ' .media_block .post-detail').show(); console.log($item_id + 'mouseover') },function(){ var $opt = $(this); $item_id = $opt.attr("id"); $post_id = $item_id.split('-'); jquery('#'+$item_id + ' .media_block .post-detail').hide(); console.log($item_id + 'mouseout') });
you don't need whole function.. use part
jquery('#big_container .item-image').hover(function(){ var $opt = $(this); $item_id = $opt.attr("id"); $post_id = $item_id.split('-'); jquery('#'+$item_id + ' .media_block .post-detail').stop().show(); console.log($item_id + 'mouseover') });
Comments
Post a Comment