Mouse event mouse over event mouseover

Source: Internet
Author: User

Source Address: http://www.g2room.com/jquery/index.php?p=example%2Fevent%2Fmouseover.html&n=%E9%BC%A0%E6%A0%87%E4%BA% 8b%e4%bb%b6%e4%b9%8b%e9%bc%a0%e6%a0%87%e6%bb%91%e8%bf%87%e4%ba%8b%e4%bb%b6mouseover

var i = 0;//Defines the method function Showcontent (event) {$ ("span") that executes after the event is triggered. EQ (0). After ("<span>" +i+ "times triggered" + Event.data.name+ "(" +event.data.code+ ") event, triggering element:" +$ (This). Get (0). tagname+ "</span><br/>"); Stop (). FadeTo (' Slow ', i%2==0 0.4:1); i++;} $ (function () {//Bind mouseover event on input//triggered when mouse over INPUT element. There are multiple elements used to bind an event, and the actual application is mostly handled separately. $ ("Input,textarea,select"). MouseOver (function Showcontent () {$ ("span"). EQ (0). After ("<span>" +i+ " Triggers the mouse cursor movement (mouseover) event, triggering the element: "+$ (This). Get (0). type+" </span><br/> "); Stop (). FadeTo (' Slow ', i% 2==0? 0.4:1); i++;}); /Bind the MouseOver event on Div, span, and p elements//and pass in the event argument $ ("Div,span,p,li,dd"). MouseOver ({code: "MouseOver", Name: "Mouse Down Event"}, showcontent);});


The effect is as follows:

Mouse event mouse over event mouseover

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.