Topic awaiting preservation: Help cobbling JS for open win > image fit |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: |
posted 11-05-2002 21:02
JS is definitely not my strong suit. I can cobble some simple scripts together with some trial-n-error. That's what I'm doing right now, but I would like some help to expediate matters. |
Maniac (V) Mad Scientist From: |
posted 11-05-2002 23:03
|
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 11-05-2002 23:25
I had no problem grabbing the size of an image using document.getElementById["name"].width or document.getElementById["name"].height. You just have to make sure that the images are loaded before trying to get the dimensions. Doesn't that method work for you? |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-06-2002 00:14
You really need the size of the full image before it is loaded which is tricky. |
Maniac (V) Mad Scientist From: New California |
posted 11-06-2002 02:05
wj, |
Maniac (V) Mad Scientist From: |
posted 11-06-2002 02:14 |