Ciao a tutti, premetto che non so nulla di JavaScript.
Ho una pagina php che mi visualizza immagini in miniature e cliccandole si aprono in una nuova pagina (target="_blanc").
Vorrei che si aprissero in un popup con le esatte dimensioni dell'immagine da aprire (non sono tutte uguali).
Potreste consigliarmi ?
La pagina attuale è:
Codice PHP:
<?PHP
include ("header.php");
?>
<?PHP
include("dati.php");
?>
<div id="box-grande">
<script src="Scritte.js" type="text/javascript"></script>
<table style="width: 800px" class="style1" align="center">
<tr><td style="height: 30px">
<form name="tickform" action="post" method="post">
<input name="tickfield" size="99">
</form>
</td></tr>
</table>
<?php
$evento = $_GET['evento'];?>
<table style="width: 800px" class="style6" align="center">
<tr>
<td align="center" style="height: 35px">
[b]
IMMAGINI IN MINIATURA
[/b]
</td>
</tr>
</table>
<?php
echo "<Table Width=\"90%\" align=\"center\">";
$dbcnx = mysql_connect("$host", "$user_db", "$pass_db");
mysql_select_db("$nome_db", $dbcnx);
$res = mysql_query ('select * from gal2008 where evento = "'.$evento.'" ORDER BY id DESC');
$num = mysql_num_rows ($res);
echo "\n\n\n<Tr>";
for ($i=0; $i<$num; $i++)
{
$file = mysql_result ($res, $i, 'file');
echo "<Td>";
echo "<Table Cellpadding=\"4\" Cellspacing=\"1\" border=\"1\">";
echo "<Tr>";
echo "<Td>";
echo "<a href=\"album2008/slides/$file\" target=\"_blanc\"><img src=\"album2008/thumbs/$file\" alt=\"Foto\" title=\"Foto\"></a>";
echo "</Td>";
echo "</Tr>";
echo "</Table>";
if(($i+1)%3==0) echo "</Tr>\n\n<Tr>";
else echo "</Td>";
}
echo "<Td></Td></Tr></Table>";
?>
<center>
<script src="bannerad3.js" type="text/javascript"></script>
<div align="center">
<script src="Sponsor.js" type="text/javascript"></script>
</div>
</center>
</div>
<?PHP
include ("footer.php");
?>
</body>
</html>