How to change image size while frame/window size is adjusted?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Joshua_lee
Posted On:   Friday, March 7, 2003 09:21 AM

Hi, all!
I want to let image displayed in a frame/window change size as window size changed. For example, while you enlarge/reduce your frame/window size, the image size will also be enlarged/reduced. Can Javascript do it? Thanks a lot!

Re: How to change image size while frame/window size is adjusted?

Posted By:   Firat_Tiryaki  
Posted On:   Friday, March 7, 2003 01:22 PM

you can use document.images[parameter].width, document.images[parameter].height. You have to change the parameter with image index or with image name


document.images[0].width

document.images['imageName'].width



This works in IE.

About | Sitemap | Contact