Simulando um mousestop() com jQuery – javascript
por Willian Moraes em Javascript,jQuery Nenhum comentário
TweetPost rápido, para deixar registrado o código <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript"> var move = false; var $box = null; jQuery(document).ready(function(){ $box = jQuery('.box').not('.active'); $box.mousemove(function( e ){ e.stopPropagation(); }); $box.mouseenter(function(){ var $this = jQuery( this ); $this.addClass('active'); }); $box.mouseleave(function(){ var $this = jQuery( this ); $this.removeClass('active'); }); jQuery(document).mousemove(function(){ $box = jQuery('.box').not('.active'); window.clearTimeout( ...





