mouseover - Jquery mouseenter state show active state and disable no active -
pretty strait forward:
- by default have 2 arrows displayed on hover active 1 have arrow. on mouse leave arrows displayed again.
please have demo, right now, menu 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)')
select 1 cursor not hovering over.
js (jquery):
$('a').on('mouseover', function() { $('a:not(:hover)').removeclass('arrows'); }).on('mouseout', function() { $('a:not(:hover)').addclass('arrows'); });
here's fiddle.
Comments
Post a Comment