Dynamic Sized Image | JavaScriptSource

Dynamic Sized Image

Ed Churnside Sep 9, 2000
Sometimes, your image does not look very good in different sized browser windows. This script will proportionally resize a graphic to fit within the current window or frame when a page is loaded, thus giving a more consistent and attractive look to your page.
Notice how the image fits your browser window perfectly.
Try resizing your browser window and then reload the page.

The JavaScript Source: Page Details: Dynamic Sized Image

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
1 comment)

How do you get dynamically called images to do this instead of a static image?

Mary Mar 23, 2012