File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes getting image height of previous image Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "getting image height of previous image" Watch "getting image height of previous image" New topic
Author

getting image height of previous image

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 127
I am creating an image gallery. The code is below.

The last line of code prints the image height of previous image, not the one set in the previous line.



Any clue to solve this problem!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Because it has not loaded yet. You need to use the onload event.

Eric
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 127
Thank you Eric.
 
 
subject: getting image height of previous image
 
Threads others viewed
Not able to Align in bottom
image path goes wrong.
Image width & height return negative
Image and Image not the same....
to draw and remove lines on click of mouse
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture