Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/04/2003, 07:40
CUNO
 
Fecha de Ingreso: noviembre-2002
Ubicación: Norte de Argentina
Mensajes: 19
Antigüedad: 21 años, 5 meses
Puntos: 0
Hola toiaqui, lo que pides lo solucionas asi:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- 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+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
}


// End -->
</script>


Ahora hace la llamada al script asi:

<A HREF="javascript:CaricaFoto('tufoto.jpg')" BORDER="0"><img src="tufoto.jpg" alt="" width="[el ancho que quieras]" height="[el alto que quieras]" border="0" ></a>


Te va a gustar, yo lo uso en todos mis sitios web.

Saludos!

CUNO :)