Home >Web Front-end >JS Tutorial >Getting Started with JavaScript Programming (Lesson 5)_Basic Knowledge
Mouse Events (Part 1)
As the course progresses, fewer and fewer people can follow. I don’t know if it’s because there isn’t much performance, it’s just rote memorization, and no one is interested. . In fact, many of the special effects and actions of
on web pages are mostly implemented using JavaScript. A web page without JavaScript is like a person without muscles. But all actions are controlled by functions
, and control statements are the foundation of the foundation. I hope you can continue to learn patiently. Today's course is just a relaxing one, and you can see the results if you study a little bit.
The main content is mouse-based events, which are as follows:
1.mouseover (mouse moves to)
2.mouseout (mouse moves out)
3.mousemove (mouse moves)
4.mousedown (mouse down)
5.mouseup (mouse up)
6.click (click)
7.dblclick (double click)
Usually 1 and 2 are combined When the user moves the mouse to a hyperlink or other element, the mouseover event will occur. The mouseout event will always be accompanied by it, because when the mouse
leaves, the mouseout event will occur.
Example: