Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/06/2004, 06:01
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años, 1 mes
Puntos: 1284
Hola otra vez:

¡Que raro!

Con este código me va bien en mozilla y explorer:

Código:
<html>
	<head>
		<title>
			Transición
		</title>
		<script type="text/javascript">
			var x;
			function inicio()	{
			x = document.getElementById("tabla");
			for (var i = 0; i < x.rows.length; i ++)	{
				x.rows[i].style.backgroundColor = (i % 2 == 0) ? "red" : "blue";
				x.rows[i].style.cursor = "pointer";
				x.rows[i].onmouseover = (i % 2 == 0) ? 
					function() {this.style.backgroundColor = 'yellow';}:
					function() {this.style.backgroundColor = 'lime';};
				x.rows[i].onmouseout = (i % 2 == 0) ? 
					function() {this.style.backgroundColor = 'red';}:
					function() {this.style.backgroundColor = 'blue';};
				x.rows[i].onclick = (i % 2 == 0) ? 
					function() {location.href = 'destino1';}:
					function() {location.href = 'destino2';};

			}
			}
		</script>
	</head>
	<body onload="inicio()">
		<table id="tabla">
			<tr>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
			</tr>
			<tr>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
			</tr>
			<tr>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
			</tr>
			<tr>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
			</tr>
			<tr>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
				<td>
					dato
				</td>
			</tr>
		</table>

	</body>
</html>
Y el cursor pointer es la mano que te falta...

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo