Mira asi sta:
Código javascript
:
Ver original<script>
onload = function(){
var table = document.getElementById('tablacolor');
for(var i = 0; i < table.rows.length; i++){
if(i % 2)table.rows[i].style.backgroundColor = '#ccc'; // filas impares;
else table.rows[i].style.backgroundColor = '#999'; // filas pares;
}
}
</script>
y lo otro:
Código:
<table id="tablacolor" width="559" height="35" border="1" align="center" cellpadding = 2 cellspacing = 0 bordercolor="#000000" class="dropmenusimple" style="BORDER-COLLAPSE: collapse">
<tr bordercolor="#000000">
<td width="10%" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Usuario</strong></div></td>
<td width="10%" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Empresa</strong></div></td>
<td width="10%" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Periodo</strong></div></td>
<td width="70" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Número Factura</strong></div></td>
<td width="70" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Móvil</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>BAM</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>MMS</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>RPV</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>SME</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>SMR</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>TEL</strong></div></td>
<td width="50" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>TLL</strong></div></td>
<td width="70" bgcolor="#669999" height="35" nowrap class="titulo_table7"><div align="center"><strong>Total</strong></div></td>
</tr>
y por ultimo donde deben salir los resultados
Código:
<tr align=right valign="middle">
<td width="10%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var0%></td>
<td width="10%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var1%></td>
<td width="10%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var2%></td>
<td width="9%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var3%></td>
<td width="9%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var4%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var6%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var7%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var8%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var9%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var10%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var11%></td>
<td width="7%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var12%></td>
<td width="9%" height="35" align="center" nowrap bordercolor="#000000" class="texto_negro"><%=var5%></td>
</tr>
ves esta igual