Wordpress - php - alternate row color

In Archive or Category template file of Wordpress site I want to show the posts links thru a table of odd-color rows. i.e each alternate row should be of different background color.
See the side view for an example.
This can be acheived thru a simple line of code as below :

    < script class="brush:php" type="syntaxhighlighter">
< ! [ CDATA [ < ? php echo $count % 2 ? ' class="odd"' : ''; ? >
.....
]]>
< /script>
every odd row will be given a css-class named as "odd"

< script class="brush:css" type="syntaxhighlighter">
< ! [ CDATA [ . odd { background-color : #0000FF ; } ..... ]] >
< /script>
Change the color of your choice.

for example :
In category.php file , you can put the code as like this...

< script class="brush:php" type="syntaxhighlighter">
< ! [ CDATA [ < table >< tbody >
< ? php while (have_posts()) : the_post(); ++$count; ? >
< tr < ? php echo $count % 2 ? ' class="odd"' : ''; ? > >
< td >
< ? php the_title(); ? >
< /td >
< /tr >
< ? php endwhile; ? >
< /tbody >< /table >]] >
< /script>