I like to use alternating row columns in tables. If the tables in question are static HTML then updating the row colours, (when adding/removing/shifting rows), can become a real chore.
Using some of the wonderful W3C DOM Methods within Javascript I came up with a simple function to do all the work for me.