quarryknight
Programmer
Hello, I am trying to great an onclick event for when an image thumbnail is clicked, a new window pops up to contain the exact dimensions of the image, with an an additional 50 pixels around the image. However, when I try to size the window according to the image's dimensions, it first pops up the window and passes the dimensions before the image is loaded. The user has to click the image twice to get the dimensions to pass correctly and resize the window.
Is there any way to correct this problem so that the dimensions are cast, even before the image is entirely loaded? Thanks for your time.
Find the best deals online!
Is there any way to correct this problem so that the dimensions are cast, even before the image is entirely loaded? Thanks for your time.
Find the best deals online!