Javascript programming (course 5) _ basic knowledge

Source: Internet
Author: User
Javascript programming (Lesson 5) mouse events (Part 1)

With the course going on, fewer and fewer people will be able to follow. I don't know if it's because there aren't many performances, but it's just something to remember, and everyone is not interested. In fact, on the webpage

A lot of special effects, most of the actions are implemented using javascript, without javascript web pages, just like a person without muscles. However, all actions are controlled by functions.

The control statement is the foundation of the Foundation. I hope you can learn it with patience. Today's course is easy to learn.
The main content is mouse-based events, which are as follows:
1. mouseover (move the mouse over)
2. mouseout (move the mouse out)
3. mousemove (move the mouse)
4. mousedown (press the mouse)
5. mouseup)
6. click (click)
7. dblclick (double-click)

Usually 1 and 2 are used together. When a user moves the mouse to a hyperlink or another element, the mouseover event will occur, and mouseout will always accompany it, because when the mouse

When you exit, the mouseout event will occur.
Example:


Test
Related Article

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.