Last month I wanted to make a zebra effect for the headlines list on my nucleus site bmxaction.net. I didn't find a plugin or something for it so I wrote a little script for it. It's actually really easy to get this effect.

First I made a little zebra.php file with the following code:

<?php
global $z;
if($z % 2 !== 0) {
      echo ' class="zebra"'; $z = 1;
}
$z++;
?>

To add the this in the iteration of my items I went to the my headline template and added this in a phpinclude tag like so:

<li<%phpinclude(zebra.php)%>>
<div class="date"><%date%></div>
<h2><a href="<%itemlink%>" title="Read entry: <%title(attribute)%>"><%syndicate_title(50)%></a></h2>
</li>

The last step is to add some css to make a difference in background:

.zebra
{
      background:#CCC;
}

That's it! Now you have a cool zebra effect.