
25/07/2003, 02:21
|
 | | | Fecha de Ingreso: junio-2003 Ubicación: Madrid
Mensajes: 289
Antigüedad: 21 años, 10 meses Puntos: 1 | |
comprueba que el contador es par. Si lo es escribe un color, y si no escribe otro.
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
if Repeat1__numRows mod 2 = 0 then
%>
<tr bgcolor="#xxxxxx" class="B">
<%
else
%>
<tr bgcolor="#yyyyyy" class="B">
<%
end if %>
<td><img src="../extras/varios/fly.gif" width="10" height="10" /><span class="B"><%=(Recordset1.Fields.Item("op_nombrep") .Value)%></span></td>
<td><%=(Recordset1.Fields.Item("nombre").Value)% ></td>
<td><%=(Recordset1.Fields.Item("op_mineral").Value )%></td>
<td><%=(Recordset1.Fields.Item("op_fecha").Value)% ></td>
<td><%=(Recordset1.Fields.Item("op_fechaupdate").V alue)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%> |