Example of row color management with Javascript

Table (id="table1")

row one
row two
row three
row four
row five
row six
row seven
row eight

Another Table (id="table2")

Row1 Cell 1Row1 Cell 2
Row2 Cell 1Row2 Cell 2
Row3 Cell 1Row3 Cell 2