View Full Version : autodetect image size for popup
SlowRoasted
July 19th, 2005, 12:42 PM
can someone point me to some javascript that will autodetect the image size and then open the image in a popup that is the size of the image. thanks in advance :beam:
hl
July 19th, 2005, 12:47 PM
You can do this with PHP :) I'm not sure about javascript though.
In PHP, you use the getimagesize function. www.php.net/getimagesize
:D
SlowRoasted
July 19th, 2005, 01:04 PM
i would, but the server im working with doesnt have php.
hl
July 19th, 2005, 01:19 PM
http://javascript.internet.com/forms/image-dimensions.html
you can read through the script there, and try to integrate it.
SlowRoasted
July 19th, 2005, 02:22 PM
cool, that will help. thanks;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.