You could wrap it all in a div like:
<div id="altbg">
[your repeat code here]
</div>
Then use CSS like:
<style>
#altbg div:nth-child(even) {background: #76323f}
#altbg div:nth-child(odd) {background: #d7cec7}
</style>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.