Home } Page Details } Dynamic Sized Image



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.

JavaScript Source Code 2002: 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!!!