Jquery mousemove() gets activated without a mouse movement
I am trying to do a google.com like fade in (Cept i want to fade out text) <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> $(document).ready(function() { $("html").mousemove(function () { $("p").fadeOut("slow"); }); }); </script> With that code, my fade out gets automatically activated although I have not moved the mouse. Happens in all browsers. Any tips? Since the event fires once initially and mousemove fires every time you move it a pixel, you could just ignore the very first (possibly automatic, depending on browser) mousemove event to get the effect you want,