http://islaweb.gratishost.com/isla/index.htm
y todas abren con una función llamada afoto a 600 * 400, pero alguna foto quiero q el popup se abra a 400 * 600, como puedo hacerlo??
les paso el script
Código:
y a cada imagen le pondríamos esto<script language="javascript"> //script por Tunait var ventana var cont=0 var titulopordefecto = "Perico de los palotes" //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=titulopordefecto} ventana=window.open('','ventana','resizable=no,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(600,400) ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. Eliminar si no se quiere centrar el popup } </script>
Código:
<a href="#" onClick="afoto('100_0249.jpg','Enviada por');return false"><img src="mini/100_0249.jpg" width="50" height="50" border="fixed"></a>