JQ Mouse Move-in and move-out events

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.