Image Resize With Locked Aspect Ratio?

admin

Administrator
Staff member
Aloha,

I was playing around with one of the BG effect scripts in the library called Full Size Image, which autodetects the browser window size and resizes an image to fill the window.

<!-- m --><a class="postlink" href="http://javascript.internet.com/bgeffects/full-size-image.html">http://javascript.internet.com/bgeffect ... image.html</a><!-- m -->

It works great, but I was wondering if it could be modified to resize the image with a locked aspect ratio (same ratio of height X width) but still maximize the size of the image in the window? I don't know enough abot Java to mess with the code successfully to get this result.

-Mike
 
Back
Top