Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/04/2009, 09:11
Alexand3r
 
Fecha de Ingreso: abril-2009
Mensajes: 72
Antigüedad: 15 años
Puntos: 0
No se cargan las imagenes

Buenas, aqui va mi primer post con una pequeña duda, pero es que me estoy estrujando los sesos tratando de encontrar el error y no doy con él.


Tengo el siguiente codigo:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xxx</title>

<script language="javascript">

//script por Tunait
var ventana
var cont=0
var titulopordefecto = "Parcela" //texto por defecto a mostrar en la barra de título en caso de omitir el argumento titulo

function afoto(cual,titulo)
{
if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=Parcela}
ventana=window.open('','ventana','resizable=yes,sc rollbars=no')
ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">')
ventana.document.close()
cont++
}
function redimensionar(ancho,alto)
{
ventana.resizeTo(ancho+12,alto+28)
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. Eliminar si no se quiere centrar el popup
}
</script>


</head>

<body>
<table width="60%" align="center">
<tr>
<td height="45">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1918.jpg','Parcela 2 - Img 1');return false"><img src="img/parcela1/IMG1918.jpg" width="133" height="100" /></a></div></td>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1919.jpg','Parcela 2 - Img 2');return false"><img src="img/parcela1/IMG1919.jpg" width="133" height="100" /></a></div></td>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1925.jpg','Parcela 2 - Img 3');return false"><img src="img/parcela1/IMG1925.jpg" width="133" height="100" /></a></div></td>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1926.jpg','Parcela 2 - Img 4');return false"><img src="img/parcela1/IMG1926.jpg" width="133" height="100" /></a></div></td>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1927.jpg','Parcela 2 - Img 5');return false"><img src="img/parcela1/IMG1927.jpg" width="133" height="100" /></a></div></td>
<td><div align="center" class="style1"><a href="#" onClick="afoto('img/parcela1/IMG1928.jpg','Parcela 2 - Img 6');return false"><img src="img/parcela1/IMG1928.jpg" width="133" height="100" /></a></div></td>
</tr>
</table>
</body>
</html>

Y no se cargan las imagenes en la tabla, se ve unicamente una linea azul, sin cargarse las imagenes, y cuando pincho en la imagen, que en teoria tambien deberia abrirse en otra ventana, me sale como si estuviera el enlace roto.

En otra pagina de la web, si que me sale, y es lo que mas me tiene la mosca detras de la oreja, no se cual es la diferencia ni porque no se cargan las imagenes.

Bueno, espero que podais echarme una mano los gurus del foro.

Sin mas, recibid un saludo.

Alex.