Date:

IMAGE MAPS

Your Host
Quentin Brown
My Homepage
Start Your Own Internet Business
Where to Start
Research
Creating The Product
E-Commerce
Promotion
Google Adwords
Affiliates

E-mails
E-zines
Offline
Search Engines

Workshop
Forward   
Introduction
Hosting
What You Need
Planning
Composer
Templates
Graphics
Tables
Image Maps
Frames
Forms
Meta Tags
Publishing
Test
Create Ebooks
EBooks
Cover Design
Cover Thin Flat
3D Cover

Graphics & Art
Introduction
Animation
Side Bars
Converting
GIF's & JPEG
Scanning

Site Design
Dimensions
Colours
Artwork
Links

Multimedia
Converting
MP3's
Streaming Audio
Screen Capture
Videos
Radio Shows
Jukebox

Extras
PDF Files
Validate
Scripts
Training Videos
Macromedia
Business Building
List Building
Copywriting
1 Shopping Cart
Market Survey
Blogging

Bonuses
117 Hours Audio
Software
--------------------------------
Publisher

Quentin Brown
LPO Box 168
Mansfield, Qld 4122
Australia
Visit Web Site

--------------------------------

 

jpeg_examples.gif (17181 bytes)

IMAGE MAP

Examine the graphic above. It looks just like any image file you might come across on the web. But using some HTML code this image has become an image map. That means it has defined areas on its surface that can be used to trigger HTML events. Move your mouse pointer over the image. You must be online. Notice how the pointer turns to an action hand in certain areas of the image? Click one of these "hot spots". Use the back arrow above to return here. I did this all in Front Page which is the easiest way to create image maps.

Image maps and their "hot spots" are mostly used for navigation functions, such as moving to another page. But they can also be used to trigger advanced HTML and Java Script events. Using HTML you can define "hot spots" in various shapes.

Types of image maps

There are two types of image maps: Server-Side and Client-Side. Server-side maps use separate map files that have to be downloaded. They also depend on the server for translation, creating additional network traffic. Client-side maps reside within the HTML document, and use the local user's  browser to perform the translation. Since client-side maps were introduced later they do require Netscape 2.0+ or Internet Explorer 2.0+ to work.

Examples of image maps presented by Kaspar Stromme for WFED 597: Training On The Internet

Image maps are used all over the web. Some are highly creative and are not easily identifiable as image maps, such as this Atlas web magazine page. The image map in the center is the site logo with some text used for navigation. Some users might not know where to click since they do not look like buttons.

Others are strictly utilitarian, such as the navigation tool to the left on this NASA crew page. The image is just several lines of text, each linked to a different page or URL. One large image map is used instead of many different small name images. This makes it much easier for the web designer to keep track of the buttons. It also speeds up the time needed to download the page.

Want to see some more examples?

Good Example of Image Map

What Do I Need?

To create a client-side image map you will need:

An Image Processing Program: You can use anything from the most basic paint program to a professional package like Photoshop. The only requirements are that it can save image files in either JPEG (.jpg) or GIF (.gif) format, and that it can display image coordinates.

An HTML editor: Whatever you currently use to edit your HTML pages will do.

Client-side image map compatible web-browser: (Netscape 2.0 +, Internet Explorer 2.0 +, or other compatible browser

There are three steps:

1. Create a suitable image

Using your image processing program create the graphic you want to use as the image map. It can be anything from a small strip of buttons to a huge image that covers the entire screen area. When designing the graphic it is important to keep the user in mind. Is it clear and concise? Are the hot-spots easy to see?

Another thing to keep in mind is that just because it looks great on your screen does not mean it will look great on the users screen. Believe it or not - some people are still using 14 inch monitors out there! And many computers are set to run using only 256 colors, even when they are capable of more. So if you want to make sure the graphics will appear as you intended them, make them no more than 600 pixels wide and 400 pixels tall (that's a little less than a 640x480 screen, allowing room for the browser). And stick to a web-safe cross-platform palette (216 colors).

When you are done save your graphic, as either a JPEG (.jpg) or GIF (.gif) file. Each format has its advantages, depending on the type of image you are saving. Use JPEG for colourful photographic images. Use GIF for line art and text. The graphic below is a good example of GIF-type graphic. Take a look here and see what I mean. Always try to keep the image file size small, since larger files take longer to transmit to the user.

2. Determine hot-spot areas

We need to determine the coordinates of the virtual shape that will be the "hot-spot" area. HTML allows for different shapes to be used. Each requires at least one set of coordinates, and in the case of the circle: a radius. Use the graphic below to determine what shape you want to use and what coordinates you will need.

Using your image processing program, determine the coordinates needed. In Photoshop this can be accomplished simply by opening the "Info" window and moving the mouse. Check the FAQ if this is unclear, or to read about a real easy way to find coordinates.

3. Add HTML code

The final step is to add the HTML code needed to activate the image map on your web page. Open up your page in a HTML editor and add these lines to create a map:

Now add an entry for each "hot-spot" using this syntax:

In the above example "Rect" refers to a rectangle. "HREF" is where this "hot-spot" will direct the user. Sets of coordinates are separated by spaces. Here are some more examples:

With your map ready you have to add one last piece of code, assigning the map to your image. Simply add a USEMAP line to your IMG tag.

Finally, you will need to test the image map in your browser. You should find a functional image map ready for use.

Well, that's the end of the tutorial. Hope you found it easy to use and learned from it.

Image Maps - Another great tutorial on image maps.

With a program like Sothink you can download their cool menu add on and this will allow you to make image maps a lot easier. Also see if you have front Page on your computer because it is also easy to use it to create image maps.

Some people like frames and if you're up to it you can go on to learn how to put frames on your page, but it is quite a complex process and you can revisit it later. Lets just quickly have a look at them. Frames