CSS .rol_1{ background-color:#FFFFFF} .rol_2{ background-color:#CCCCCC} .rol_Hover{ background-color:#FFFF99} PHP Script On <TR> <?php do { ?> <tr class=”<?php echo ($ac_sw1++%2==0)?”rol_1″:”rol_2″; ?>” onmouseover=”this.oldClassName = this.className; this.className=’rol_Hover’;” onmouseout=”this.className = this.oldClassName;”> <td>loop</td> </tr> <?php } while ($row_travel_schedule = mysql_fetch_assoc($schedule)); ?>