Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2006, 16:27
Avatar de mkls
mkls
 
Fecha de Ingreso: diciembre-2004
Ubicación: Rengo - Chile
Mensajes: 55
Antigüedad: 19 años, 4 meses
Puntos: 1
Por que en explorer si y en firefox no??

Hice un script que cambia una imagen cuando le haces click a otra pero solo funciona en explorer por que? ni idea lo pongo aver si le encuentran algo raro

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>


<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Documento sin t&iacute;tulo</title>
</
head>
<
script language="javascript">
    function 
cam_im(imagen_nueva) {
        
document.all.mainImg.src imagen_nueva;
    }
</script>
<body>
<p><img src="original" name="mainImg" width="100" height="100" id="mainImg" /></p>

<a href="#" onclick="cam_im('cambio.jpg')"><img src="admin/imagenes/fondo_tabla.gif" width="25" height="25" border="0" /></a>

</body>
</html>