JavaScript Tutorial/HTML Tags/td
Содержание
Change Table cell background color (IE)
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body onMouseover="chgColor()" onMouseout="chgBack()">
</body> </html></source>
Set and clear table cell content
<source lang="javascript">
<html> <head> <style type="text/css"> td.menu {font-family:Arial;
font-weight:bold; background-color:blue; cursor:hand}
a{
text-decoration:none; color:black;
} </style> <script language="javascript" type = "text/javascript">
</script> </head> <body>
<a href="http://www.wbex.ru">AAA</a> |
<a href="http://www.wbex.ru">BBB</a> |
<a href="http://www.wbex.org/">CCC</a> |
<a href="http://www.wbex.ru">DDD</a> |
</tr>
|
</body> </html></source>
Table cell onmouseout action event
<source lang="javascript">
<html> <head> <style type="text/css"> td.menu {font-family:Arial;
font-weight:bold; background-color:blue; cursor:hand
} a{
text-decoration:none; color:black;
} </style> <script language="javascript" type = "text/javascript">
</script> </head> <body>
<a href="http://www.wbex.ru">AAA</a> |
<a href="http://www.wbex.ru">BBB</a> |
<a href="http://www.wbex.org/">CCC</a> |
<a href="http://www.wbex.ru">DDD</a> |
</tr>
|
</body> </html></source>
Table cell onmouseover action event
<source lang="javascript">
<html> <head> <style type="text/css"> td.menu {font-family:Arial;
font-weight:bold; background-color:blue; cursor:hand}
a{
text-decoration:none; color:black;
} </style> <script language="javascript" type = "text/javascript">
</script> </head> <body>
<a href="http://www.wbex.ru">AAA</a> |
<a href="http://www.wbex.ru">BBB</a> |
<a href="http://www.wbex.org/">CCC</a> |
<a href="http://www.wbex.ru">DDD</a> |
</tr>
|
</body> </html></source>