Heres a quick and simple way.
CSS:
PHP:Code:tr#even { background-color:#C3D9FF; }
And set the id to this:PHP Code:<?php
$tablerow_count=0;
function tablerowswitch() {
global $tablerow_count;
$tablerow_count++;
if ($tablerow_count % 2) {
echo "odd";
}
else {
echo "even";
}
}
?>
PHP Code:id="tablerowswitch()"



Reply With Quote


Bookmarks