MMDT1021 Chapter 6 Notes - page 4
Using Images to Label Links
Image Only. |
Image and Text. |
Code | Result |
---|---|
<a href="chapter6p5.htm"><img src="images/righthand2.gif"
width="100" height="54" alt="" border="0" align="center">Chapter
6 Notes - page 5</a> |
Chapter 6 Notes - page 5 |
Dividing an Image into
Clickable Regions
Use your favorite graphics software to map the points for your clickable regions. Then setup your client-side, CERN, or NCSA image information. |
Creating a Client-Side Image
Map
Client-side image mapping is the most common image mapping technique in use today. The client is your local computer running a browser, such as Internet Explorer or Netscape. Your browser has to determine the actual mapping based on the map information given in the html code. The code for the image map is embedded into the HTML page. |
Code | Result |
---|---|
<img src="images/12345L.png" border="0" usemap="#12345L"
|
Examples of sites that utilize image maps:
|
Creating a Server-Side Image
Map
Server side image mapping was a technology that was used when web browsers did not yet have the capability of supporting client-side image maps. (Pre Netscape 3.0). The server determined the actual mapping. Typically server-side image maps are not used much anymore. The code for the server-side image map is stored in an external file on the server. This type of image map uses either CERN (IIS) or NCSA (Apache) format. The server that this web site (ridgewater.net) is running on uses NCSA (Apache). (Each finger on the image below takes you to a different page.) If you look at the status bar at the bottom of your browser, you will notice coordinate pairs changing when rolling over the image in the following example. |
Code | Result |
---|---|
<a href="examples/righthand2.map"><img src="images/righthand2.gif"
width="100" height="54" border="0" ismap></a> |