Hola
DragonX
¿Algo así es lo que quieres?
Código:
<html>
<head>
<script language="javascript">
function pinta(){
cual=document.getElementById("tabla").rows;
for(a=0;a<cual.length;a++){
color(a);
}
}
function color(b){
if(b%2==0)
cual[b].style.backgroundColor="#ff0000";
else
cual[b].style.backgroundColor="#0000ff";
}
</script>
</head>
<body onload="pinta()">
<table width="200px" height="300px" border="0" id="tabla">
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
<tr><td>aaaaaaaaaaaaaaaaaaaaaaaaaaa</td></tr>
</table>
</body>
</html>
Suerte