/* To use with lists, just change
  document.getElementsByTagName('tr');
to
  document.getElementsByTagName('li');
  
If you just want to color one of the tables (or lists) instead of using document.getElementByTagName("tr"); 
(for tables) give the table an id and use document.getElementById("myTablesId").getElementsByTagName("tr");  
*/

window.onload = colorRows;
function colorRows() {
  var myTR = document.getElementsByTagName('tr');
  for (var i=0;i<myTR.length;i++) {
    if (i%2) {
      myTR[i].className = 'rowTint';
    }
  }
}
