<%
TrBgColor = "tr2"
for i=1 to pagesize
if RsNews.eof then
exit for
end if
%>
<tr class
="<%=TrBgColor%>"> <td width="25" align="center"><input type="checkbox" name="news_code" value="<%=RsNews("news_code")%>"></td>
</tr>
<%
If TrBgColor="tr1" Then
TrBgColor="tr2"
Else
TrBgColor="tr1"
End If
RsNews.MoveNext
next
%>
tr1,tr2是行的样式,定义了背景颜色