I have been working with a real estate listing PHP/mySQL program and have everything configured and working great, but I want to a chnage -
I am trying to set a way to have a thumbnail of a pic clicked on and a Javascript to pop open a window with the pic in, just large enough for the pic.
I have it done, but can not dynamically generate the width and height of the image for the javascript to execute.
Here is the code that I have right now...
<a href=\"javascriptšisplayImage('image.php?Id=$image_row[id_files]','280','395')\">
<img src='image.php?Id=$image_row[id_files]' border=1 width=100 alt=\"Photo\"></a>
It works great, but I want to dynamically generate the height and width, which are 280 and 395 respectively.
I know there is an
int ImageSX (int imagename)
int ImageSy (int imagename)
functions, but I have no idea how to incorporate them to generate the numbers I need.
I trued this -
<a href=\"javascriptšisplayImage('image.php?Id=$image_row[id_files]','int ImageSX (int 'image.php?Id=$image_row[id_files])','395')\">
just to see what would happen and the window opened fine with the width )395) being fine, but the height was the full height of a normal window.
This will finish off the program for me and let me go live, so if anyone has any ideas, please let me know.
Thanks!
David Young