Use jQuery to quickly and efficiently create webpage effects ------------------------- jQuery events and animations, and jquery animation Effects

Source: Internet
Author: User

Use jQuery to quickly and efficiently create webpage effects ------------------------- jQuery events and animations, and jquery animation Effects

1. Basic events

Divided into three events

1.1 window event

A window event is an event that is triggered when a user executes operations that affect the browser.

1.2 mouse events

As the name suggests, a mouse event is an event that occurs when you move or click the mouse on a document.

1. click Event:Triggered when you click the mouse

$ ('P'). click (function (){});

2. mouseover event:

List. mouseover (function () {callback (this).css ("background", "pink ");});

 

3. mouseout event:

List. mouseout (function () {detail (this).css ("background ","");});

1.3 Keyboard 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.