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

javascript uses onclick event to change the color of the selected row_javascript skills

WBOY
Release: 2016-05-16 17:06:03
Original
1476 people have browsed it

The table in the html page can be displayed line by line. Of course, divs can also be set to change their color when the mouse is placed on it. Part of the code is as follows

Copy code The code is as follows:


Then set the onmousehover or onclick event on td onmouseover="changeActiveRow(this)"

Related labels:
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