Non garantisco il funzionamento, però prova in questo modo.
codice:function viewFoto(img){ largh=foto1.width+20; altez=foto1.height+25; top=(screen.height-altex)/2; left=(screen.width-largh)/2; stringa='width='+largh+',height='+altez+',top='+top+',left='+left; finestra=window.open(img,"",stringa); } // End --> </script>

Rispondi quotando