rosebud289
Programmer
I am retrieving info from a database into a table. How can I highlight every other row in the table for the number of records displayed? Thanks!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<Table>
<%
Do While Not oRS.EOF
if (strColor = "f8f8f8") then
strColor = "eeeeee"
else
strColor = "f8f8f8"
end if
%>
<tr>
<td bgcolor="<%= strColor%>">
<%= oRS("Field1")%>
</td>
<td bgcolor="<%= strColor%>">
<%= oRS("Field2")%>
</td>
</tr>
<%
oRS.MoveNext
Loop
%>
</Table>