Created
September 9, 2011 12:14
-
-
Save varnie/1206060 to your computer and use it in GitHub Desktop.
an example of changing a style of td using embedded js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>change color using embedded javascript</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > | |
<style> | |
table .c { color: red } | |
.a.c {color: green} | |
</style> | |
</head> | |
<body> | |
<table id="t"> | |
<tr> | |
<td class="c" onmouseover="this.className='c'" onmouseout="this.className='a c'">Текст</td> | |
</tr> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment