Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/10/2008, 09:34
Avatar de markshock
markshock
 
Fecha de Ingreso: abril-2004
Ubicación: Allí, al fondo a la izqui
Mensajes: 316
Antigüedad: 20 años, 1 mes
Puntos: 0
Respuesta: cambiar estilo de texto al hacer rollover en imagen.

Al final lo he solucionado usando jQuery... pero si alguien se ve con fuerzas de arreglar la opción que planteo javierB estaría estupendo...

Mi solución:

Código HTML:
<html>
<head>
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function () {
$("#img").mouseover(function () { 
      //alert("OK");
      $("#enlace").css("background","red");
});
$("#img").mouseout(function () { 
      //alert("OK");
      $("#enlace").css("background","#f0f0f0");
});
});
</script>
</head>
<body>
<div>
	<div style="width:399px; margin-bottom:10px;" id="img"><img src="camiseta01-detalle.jpg"/></div>
	<div style="height:28px; width:399px; background:#f0f0f0;" id="enlace">
		<div style="float:left; wdith:150px; padding-top:3px;"><a href="#">Enlace</a></div>
		<div style="float:right; width:30px; padding-top:3px;">33€</div>
	</div>
</div>
</body>
</html> 
__________________
Señoooraaaa!! Que camisetas!!!

"Hay 10 tipos de personas, las que piensan en binario y las que no"
_________________________________