Now you should know all you need to know to start making image maps on
your own. There are, however, some issues that you should keep in mind.
One thing that is important to think about is your audience. Remember
that the client-side image mapping hasn't always been around. Older
browsers will not be able to understand these image maps. Also, what
about those text based browsers? Yeah, yeah, who still uses those? You
never know. Because of these cases, you should not rely totally on the
image map. Allow for some alternate links just bellow it or at the bottom
of the page.
Another thing you may want to spend some time with is the future uses of
you image map. What is meant by this? Well, if you look at our example
image you will see a lot of shapes that could be used for something, but
what? I don't know, but perhaps I will some time in the future. It may
be a good idea to define the areas of shapes that you may use in the future
while you are grabbing the coordinates of the others. This way, when you
come back sometime later with an idea, then you will have these already
ready for you. Remember that you can use the nohref attribute
in the area tag, this will allow you to setup the shape, but
have it inactive.
One last thing, comments. I don't know about you, but reading a nicely
formatted description of what the area will define is easier then coming
back to the map and trying to figure out where the rectangle
at coordinates (3,4) and (23,45) are located.
Here is an example of our image map, with these three issues addressed
(Note: the filler shapes are inactive):
-
TUCOWS
[ Linuxberg
| All Macintosh
| PDA Central
| Gaming Place
| Free Themes
| eBarn ]
Here we have the code for all this:
Now you know all that we can tell you about client-side image maps.
Go now and have a good time making them.
Have a comment or question dealing with this tutorial?
Write us!
<<Back