Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/07/2002, 10:10
Rush2112
 
Fecha de Ingreso: junio-2002
Mensajes: 42
Antigüedad: 21 años, 10 meses
Puntos: 0
Re: ventana ajustada tamaño foto

Encontré este código; avisame si te resulta, ya que no le he probado! Saludos!

<!-- Dos pasos para instalar el AUTO-RESIZABLE-POP-UP:

1. Copia este código en el HEAD de tu fichero HTML
2. Agrega el último código dentro del BODY de tu fichero HTML -->

<!-- Paso 1: Pega este código en el HEAD de tu fichero HTML -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')&quot ;;
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height=&qu ot;+altez;
finestra=window.open(img,"",stringa);
}
// End -->
</script>

</HEAD>

<!-- PASO 2: Copia este código dentro del BODY de tu fichero HTML -->

<BODY>

<div align="center">
<TABLE BORDER="1" cellspacing=3>
<TR>
<TD align=left>
<A HREF="javascript:CaricaFoto('1.gif')" BORDER="0">
<IMG SRC="1.gif" BORDER="0"></A>
</TD>
<TD align=center>
<A HREF="javascript:CaricaFoto('2.gif')" BORDER="0">
<IMG SRC="2.gif" BORDER="0"></A>
</TD>
<TD align=right>
<A HREF="javascript:CaricaFoto('4.gif')" BORDER="0">
<IMG SRC="4.gif" BORDER="0"></A>
</TD>
</TR><TR>
<TD colspan=3>
<DIV ALIGN="CENTER">Click acá para ver la imagen en su tamaño real!</DIV>
</TD>
</TR>
</TABLE>
</div>