Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2004, 22:08
nostromo_
 
Fecha de Ingreso: diciembre-2004
Ubicación: Iquique, Chile
Mensajes: 150
Antigüedad: 19 años, 5 meses
Puntos: 0
Hola;

Lo que quieres se realiza de la siguiente forma:

Código HTML:
<html>
<head>
<title>Prueba tabla</title>
<script>
function uno(src)
{
	with(document)
	{
		var cel = getElementById(src);
		with(cel)
		{
		 	style.backgroundColor="yellow";
			style.cursor='hand';
		}
		if (src != 1)
		{
			getElementById('1').style.backgroundColor="white";
		}
	}
}
function dos(src)
{
	with(document)
	{
		var cel = getElementById(src);
		with(cel)
		{
			style.backgroundColor="white";
			style.cursor='default';
		}
	}
}
function ini()
{
	with(document)
	{
		getElementById('1').style.backgroundColor = "yellow";
	}
}
</script>
</head>
<body onload=ini();>
<table border=1 cellspacing=0 cellpadding=0>
	<tr>
		<td>Item</td><td>Valor</td>
	</tr>
	<tr id=1 onmouseover=uno('1'); onmouseout=dos('1');>
		<td>1</td><td>100</td>
	</tr>
	<tr id=2 onmouseover=uno('2'); onmouseout=dos('2');>
		<td>2</td><td>152</td>
	</tr>
	<tr id=3 onmouseover=uno('3'); onmouseout=dos('3');>
		<td>3</td><td>254</td>
	</tr>
</table>
</body>
</html> 
Nos vemos.