RT,我的代码如下:<table width="100%" border="0" align="left" id="getColor" onload="getcolor();">
{#foreach $T.d as record}
<tr class="trColor" style="background-color:$bcolor">
<td width="6%" align="center" valign="middle" ><img src="images/20061117000350390.gif" width="4" height="7" /></td>
<td width="10%" align="left" valign="baseline"><nobr><a style="width:38px" title="{$T.record.PersonName}" class="a1" href="PersonCenter_Other.aspx?pid={$T.record.Id}">{$T.record.PersonName}</a></nobr></td>
<td width="8%" align="left" valign="baseline"><nobr><a style="width:18px" title="{$T.record.Sex}" class="a2" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.Sex}</a></nobr></td>
<td width="9%" align="left" valign="baseline"><nobr><a title="{$T.record.Age}" class="a3" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.Age}</a></nobr></td>
<td width="17%" align="left" valign="baseline"><nobr><a style="width:42px" title="{$T.record.Educational}" class="a4" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.Educational}</a></nobr></td>
<td width="16%" align="left" valign="baseline"><nobr><a style="width:70px" title="{$T.record.WorkDays}" class="a5" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.WorkDays}</a></nobr></td>
<td width="17%" align="left" valign="baseline"><nobr><a style="width:80px"title="{$T.record.Function}" class="a6" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.Function}</a></nobr></td>
<td width="17%" align="left" valign="baseline"><nobr><a style="width:70px" title="{$T.record.Residence2}" class="a7" href="users/Person_Preview.aspx?pid={$T.record.Id}">{$T.record.Residence2}</a></nobr> </td>
</tr>
{#/for}
</table>
哪位大哥能给出JS的解决代码啊,~