Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/01/2007, 11:01
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Re: Pintar filas ASP+JAVASCRIPT

Qué tal feram1986

No sé muy bien en qué parte del código que has dejado estás pintando las filas así que mejor te he hecho un ejemplo simple a ver si te puede servir de referencia para adaptarlo tú mismo
Código HTML:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
.estilo1{
	background-color: #ffffcc;
}
.estilo2{
	background-color: #ffccff;
}
</style>
</head>

<body>
<table>
<%
var estilo;
for(m = 0; m < 10; m++){ 
	estilo = m%2 == 0 ? "estilo1" : "estilo2";
%>
	<tr class="<%=estilo%>">
		<td><%=m%></td>
	</tr>
<%
}
%>

</table>
</body>
</html> 
Yá me contarás

Un saludo