Hey all,
I was wondering how you make so that when you click on a photo it opens in a new window but the new window is the size of the photo.
I downloaded a script from javafile but it seemed a little excessive, just wondering what you guys have to say.
this is the script from javafile:
<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+"')";
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>

cheers
chuck