Cita:
Iniciado por el_javi
PArece una tontería no? pues hay os dejo el código, y después os digo el problema
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Previsualizar Imagen</title>
<script language="JavaScript1.2" type="text/javascript">
function agregarImagen ()
{
var objDiv = document.getElementById("capaPrueba");
var newImage = document.createElement("img");
newImage.src = "http://www.forosdelweb.com/images/vbulletin3_logo_fdw.gif";
objDiv.appendChild(newImage);
}
</script>
</head>
<body>
<div id="capaPrueba" style="width:300px;height:300px;border:1px solid red;background-color:#000000"></div><br>
<br>
<br>
<br>
<br>
<a href="javascript:void(null)" onclick="agregarImagen()">Pulsar para incluir Imagen</a>
</body>
</html>
Será cosa de brujas (lo digo por mi) pero acabo de probar el código tal cual en IE6 (para windows) y la imagen se carga perfectamente