Pretty strait forward:
Please have a look the demo, right now, the menu is always active
Demo: http://jsfiddle.net/33qeqap3/1/
$('.subtext').mouseenter(function () {
$(this).addClass('hover');
if ($(this).hasClass('hover')) {
$(this).addClass('yes');
}
});
$('.subtext').mouseleave(function () {
$(this).removeClass('hover');
$(this).removeClass('yes');
});
You can use $('a:not(:hover)')
to select the one that the cursor is not hovering over.
JS (jQuery):
$('a').on('mouseover', function() {
$('a:not(:hover)').removeClass('arrows');
}).on('mouseout', function() {
$('a:not(:hover)').addClass('arrows');
});
Here's a fiddle.