HTML and CSS Reference
In-Depth Information
Figure 12.15 Creating links with JavaScript and an image map.
Figure 12.16 Thumbnails of pictures in the image map for “Spring in San Francisco.”
12.4 Resizing an Image to Fit the Window
If you resize a window and the image remains the same size, you might want to resize
the image as well so that it is proportional to the window; that is, as the window gets
bigger or smaller, so does the image. By using the onLoad event handler, each time the
page loads, a function will be called to reset the dimensions of the image, but to see the
change, you will have to refresh the page.
 
 
Search WWH ::




Custom Search