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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -