<!-- 把下面代码加到<body>区域中 -->
<gaya>
.t1 {warna latar:#C8FC98;perataan teks:tengah}
.t2 {warna latar:#ffffff;perataan teks:tengah}
</gaya>
<tabel id="tabel1" width="100%" border="0" cellpadding="0" Cellspacing="0">
<tr><td>jsjsdjksdfdfgdfd</td></tr>
<tr><td>vrtbtynyudegbg</td></tr>
<tr><td>btrgjyjyukmymy</td></tr>
<tr><td>fvdfthdhyjd</td></tr>
<tr><td>htyjertyuktuijcdukdetyjety</td></tr>
<tr><td>fdghrguiowheruighiaue</td></tr>
<tr><td>aosiiopweorhwdebfcjlhaSD</td></tr>
<tr><td>SDHFKAJBNELFJAOSDFA</td></tr>
<tr><td>sdafasdgdasfgggggggasdffasd</td></tr>
<tr><td>asdfgasdddddddddddd</td></tr>
<tr><td>sdagasdcxgggggggggg</td></tr>
<tr><td>dfshfdfgggfdfdsrhfgjh</td></tr>
<tr><td>gjghkjghkhjghdfghdfgh</td></tr>
<tr><td>fdhdfghhfghfghfghfdghfdghf</td></tr>
<tr><td>fghfghvcnbvnvbcvgtr</td></tr>
<tr><td>gfjhvcbcvbvcbcvbvcb</td></tr>
<tr><td>fghdhgdfhfg</td></tr>
<tr><td>shdfsjitirueruiwoiwopeirwueitu</td></tr>
<tr><td>sjdfkjherhtuiehrjfhgsjghghdfgd</td></tr>
</tabel>
<script Language="Javascript1.2">
untuk (i=0;i<table1.rows.length;i++) {
(i%2==0)?(table1.rows(i).className = "t1"):(table1.rows(i).className = "t2");
}
</skrip>