The following snippet will let you reverse highlight with jQuery in WordPress.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | jQuery(document).ready (function() { jQuery("li.menu-item > a").hover( function () { jQuery(".menu-item > a").not(this).animate({ opacity: .5 }, 0, 'linear', function() { }); }, function () { jQuery(".menu-item > a").animate({ opacity: 1.0 }) } ); }); |