javascript - Sprytabs no longer working after i change hoverintent to mouseevent -
i changed dropdown menu trigger on mouseevent, have sprytabs nestled within dropcontent no longer working. thing changed
this (in tabs working fine)
$(function(){ $('#navigation_horiz').delay(50).fadein(50); $('#navigation_horiz').navidropdown({ dropdownwidth: 'auto', //the default width of drop down elements slidedownduration: 500, //easing duration slidedown slideupduration: 200 //easing duration slideup }); });
to (now tabs no longer working nestled in drop content)
$(function(){ $('#navigation_horiz ul li').bind('mouseenter',function(e){ $('#navigation_horiz ul li').removeclass('active'); $(this).addclass('active'); if($(this).children('.dropdown').length>0){ $('#navigation_horiz ul').next('.dropdown').attr('id',$(this).children('.dropdown').attr('id')); $('#navigation_horiz ul').next('.dropdown').html($(this).children('.dropdown').html()); $('#navigation_horiz ul').next('.dropdown').slidedown(500); $('#navigation_horiz ul').next('.dropdown').children().css('opacity',0); $('#navigation_horiz ul').next('.dropdown').children().animate({opacity:0},0).animate({opacity:1},1000,'linear'); } }); $('#navigation_horiz').bind('mouseleave',function(){ $('#navigation_horiz ul li').removeclass('active'); $('#navigation_horiz ul').next('.dropdown').delay(500).slideup(500); }); });
anyone see issue on needed fix this?
Comments
Post a Comment