How do you set alternating colors in the list of topics

How would you do this on a topic detail page for alternating replies?