Home > Web Front-end > JS Tutorial > body text

CSS mouse response event process, movement, click example introduction_javascript skills

WBOY
Release: 2016-05-16 17:23:29
Original
2207 people have browsed it

Several types of mouse trigger CSS events.
Description:
onMouseDown triggers when the mouse is pressed
onMouseOver triggers when the mouse passes over
onMouseUp triggers when the mouse is pressed and released
onMouseOut triggers when the mouse moves out
onMouseMove triggers when the mouse moves

Copy code The code is as follows:



CSS mouse response event


Control the color change of every other row in the table:
Simple application:


Add CSS file reference:
Copy code The code is as follows:

< link id="cssStyle" rel="stylesheet" type="text/css" href="../style.css" />
Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template