A few days ago to help friends to do a single page, one of the effect is to move the mouse to the Avatar style change, when the mouse moved out of the avatar style. At that time did not think much, the brain jumped out the mouseover,mouseout two methods. But in the process of writing the page, no matter how I debug only the MouseOver method can, the Mouseout method fails. So on Google, Baidu to find solutions, but for a long time have not found the right answer. Had to ask colleagues, colleagues looked at my code after also feel no problem, but how to test all failed. Often after a road encounter problems, through a variety of ways can not solve when we have to adjust the way of thinking to change the road. My colleague told me about the method he used to write a similar effect. So I tried to try it out immediately. It seems that some of the methods of jquery are still not known. $ (obj). MouseEnter (function () {//Mouse in}). MouseLeave (function () {//mouse out});
JQ Mouse Move-in and move-out events