Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/03/2007, 05:16
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: Tabla + imagenes

Hola Vane_

Te he preparado un ejemplo:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
cambiar() {
  
obj document.getElementById('celda');
  
obj.style.background 'red';
  
obj.getElementsByTagName('img')[0].src 'imagen2.gif';
}
</script>
<body>
<table>
<tr><td id="celda">Texto<img src="imagen1.gif"></td></tr>
</table>
<input type="button" onclick="cambiar()" />
</body>
</html> 
Saludos,