Javascript SOS
Javascript SOS
- Started
- Last post
- 3 Responses
- Danski
Hey guys,
Any javascript gurus know of a way to find out the height of an image without displaying it?
And better yet, does anybody know a way of checking to see if an image file exists?
Many thanks in advance...
- Danski0
*bump
anyone at all? i'll be travelling home for the next hour but will check this thread when i get in
- mitsu0
one way is to just put this in your image tag:
style='position:absolute;top:-50...
then, with javascript, you can access the images' height and width attributes.
the only other way i could think of is to get the image info server-side. did this help any?
- Danski0
That would be the ultimate in "why didn't I think of that earlier?" answers :)
Many thanks mitsu