1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<html>
<head>
</head>
<body>
<table id="table">
<tr>
<td> <a href="toto" style="color: inherit;">TOTO</a></td>
<td> </td>
</tr>
<tr>
<td> TOTO</td>
<td> </td>
</tr>
</table>
</body>
<script type="text/javascript">
elem=document.getElementById("table");
elem.rows[0].style.backgroundColor="#555555";
for ( i = 0; i < elem.rows[0].children.length; i++ ) {
for ( j= 0; j < elem.rows[0].children[i].children.length; j++ ) {
try {
elem.rows[0].children[i].children[j].style.color="red";
}
catch(e) {}
}
}
elem.rows[1].style.backgroundColor="#555555";
elem.rows[1].style.Color="red";
elem.rows[0].firstChild.style.Color="red";
</script>
</html> |