[Nachtrag:]
Diese Funktion sollte das Gewuenschte tun:
function TRFarbe()
Da habe ich die falsche Funktion erwischt, die genannte formatiert nur die erste Reihe anders.
Probiere es damit:
function TRFarbe()
{
var tables,rows,i,j,farbe1,farbe2;
farbe1="#F00";
farbe2="#00C";
tables=document.getElementsByTagName("table");
for(i=0;i<tables.length;i++)
{
rows=tables[i].getElementsByTagName("tr");
for(j=0;j<rows.length;j++)
{
if(j%2==0)tables[i].rows[j].style.backgroundColor=farbe1;
else tables[i].rows[j].style.backgroundColor=farbe2;
}
}
}
MfG, Thomas