Codice PHP:
function dlApriFinestraZoom(imgW, imgH, page)
{
var w = imgW;
var h = imgH;
var l = Math.floor( (screen.width - (w/2) ) / 2);
var t = Math.floor( (screen.height - (h/2) ) / 2);
cmd = "zoom.htm?Foto=" + page;
if (w == 567 || h == 850)
{
vReturnValue = window.open(cmd, "", "toolbar=no,width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",status=no,scrollbars=no,resizable=0");
}
else (w == 1090 || h == 296)
{
vReturnValue = window.open(cmd, "", "toolbar=no,width=" + w + ",height=" + h + ",left=500,top=700,status=no,scrollbars=no,resizable=0");
}
/*vReturnValue = window.open(cmd, "", "toolbar=no,width=" + w + ",height=" + h + ",left=300,top=200,status=no,scrollbars=no,resizable=0");*/
return false;
}
Bstabva solo che modificassi 2 calcoli e la firma della funzione. il resto dovrebbe andare