Menu
okay i have a javascript code that i want to make into php:
i want this:
<a href=”#” onClick=”popimage(‘pictures/1.jpg’,600,300);return false”>Picture 1</a><br>
to work with:
<?PHP
$pic = “yourimage.gif”;
$wh = getimagesize($pic);
$width = $wh[0];
$height = $wh[1];
echo $width.”x”.$height;
?>
i want this:
echo $width.”x”.$height;
to give like the window sizes so it would be like:
(‘pictures/1.jpg’,$width,$height)
or however it can be done… I plan on using this a few times if u know what i mean for all my pics…
If anyone can help… then help lol
thanks in advance!