Image map

Image map

In HTML and XHTML , an image map is a list of coordinates relating to a specific image, created in order to hyperlink areas of the image to various destinations (as opposed to a normal image link, in which the entire area of the image links to a single destination). For example, a map of the world may have each country hyperlinked to further information about that country. The intention of an image map is to provide an easy way of linking various parts of an image without dividing the image into separate image files.

Contents

History

Kevin Hughes invented the image map while he was a student at Honolulu Community College (HCC).[1]

Definition in HTML

In HTML an imagemap is made of the actual image, that is embedded with the <img>-Tag. The image gets simultaneously the attribute usemap.

The imagemap comprise <map>-Tag and in the detail of the <area>-tags, which defines the fields with the weblinks. These are similar to the <a>-Tag defining which URL should be opened.

Following code defines a rectangular area (9,372,66,397) with a link to the English Wikipedia:

<img src="image.png" alt="alternative text" usemap="#mapname" />
<map name="mapname">
  <area shape="rect" coords="9,372,66,397" href="http://en.wikipedia.org/" />
</map>

Image maps use

Dr Johnson - Dictionary writer Boswell - Biographer Sir Joshua Reynolds - Host David Garrick - actor Edmund Burke - statesman Pasqual Paoli - Corsican patriot Charles Burney - music historian Thomas Warton - poet laureate Oliver Goldsmith - writer prob.The Infant Academy 1782 unknown painting An unknown portrait servant - poss. Francis Barber Use button to enlarge or use hyperlinks
Image map example of The Club (Literary Club). Clicking on a person in the picture causes the browser to load the appropriate article.

It is possible to create image maps by hand using a text editor, but doing so requires web designers to know how to code HTML as well as how to enumerate the coordinates of the areas they wish to place over the image. As a result, most image maps coded by hand are simple polygons.

Because creating image maps in a text editor requires much time and effort, many applications have been designed to allow web designers to create image maps quickly and easily, much as they would create shapes in a vector graphics editor. Examples of these applications are Adobe's Dreamweaver or KImageMapEditor (for KDE), and the imagemap plugin found in GIMP.

Image maps which do not make their clickable areas obvious risk subjecting the user to mystery meat navigation. Even when they do, where they lead may not be obvious. This can be partially remedied with rollover effects.[2]

Rollover effects

When designing an image map it is important to indicate to the user that the image is mapped. This may be done by a text instruction accompanying the image (like the one illustrating this page), by an indication within the image itself, or by a rollover effect which will alert the user that different sections of the image will respond differently to their interaction. When using an editor capable of layering images such as Photoshop or GIMP, sections of the image may be cut and pasted in place over a copy of the image which has reduced brightness. These highlighted areas will stand out to the user.

Client-side image maps can be implemented so that the user is given a visual indication of what can be clicked on. This can be an indication of the position of all the hot spots, or can be a rollover indication of the currently active hot spot. This functionality cannot be implemented using pure HTML, but can be implemented when a Clickable image is built using a programming environment such as XHTML with Cascading Style Sheets, ECMAScript and Java.

Rollover effects can be implemented by writing ECMAScript code to swap out the entire image with one that has that particular area highlighted, but this technique can use a considerable amount of bandwidth. Another solution is to script one or more page elements to respond as the mouse moves over the image.

See also

References

  1. ^ Mary Jo Fahey (1997). Web publisher's design guide for Macintosh. p. 241. 
  2. ^ Flanders, Vincent (March 1998). Web Pages That Suck: Learn Good Design by Looking at Bad Design. San Francisco: Sybex Inc. ISBN 978-0782121872. 

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Image Map — Verweissensitive Grafik (engl. image map) ist ein Begriff aus dem Webdesign und bezieht sich auch auf Multimedia Anwendungen. Verweissensitive Grafiken bieten eine Möglichkeit, Hyperlinks innerhalb einer Grafik zu verstecken. Sie werden als… …   Deutsch Wikipedia

  • Image map — Verweissensitive Grafik (engl. image map) ist ein Begriff aus dem Webdesign und bezieht sich auch auf Multimedia Anwendungen. Verweissensitive Grafiken bieten eine Möglichkeit, Hyperlinks innerhalb einer Grafik zu verstecken. Sie werden als… …   Deutsch Wikipedia

  • image map — paveikslo planas statusas T sritis informatika apibrėžtis Paveikslas, suskirstytas į sritis, ir su kiekviena jo sritimi susietas atskiras ↑saitas. Kiekviena sritis tampa nuoroda. Naudojamas įvairiuose hipertekstuose: tinklalapiuose,… …   Enciklopedinis kompiuterijos žodynas

  • image map —    A graphical inline image on a Web page that contains more than one link. Each region of the image map is linked to a different Web resource; you can click a part of the image to retrieve the appropriate resource.    See also inline image …   Dictionary of networking

  • Image Map — Image Maps sind Grafiken mit anklickbaren Flächen, die als Links fungieren. Einige Suchmaschinen Spider ignorieren Links, die sich in Image Maps verbergen …   SEO Wörterbuch

  • image map — ● ►en loc. f. ►WIDGET Image découpée en zones cliquables, i.e. quand on clique dans l image il se produit des choses diverses et variées. En fait, le terme désigne plus précisément la carte qui définit ces zones, mais l usage courant s en fout et …   Dictionnaire d'informatique francophone

  • image map — noun An image on a web page that is divided into shaped portions, each of which has an associated hyperlink …   Wiktionary

  • clicable image map — paveikslo planas statusas T sritis informatika apibrėžtis Paveikslas, suskirstytas į sritis, ir su kiekviena jo sritimi susietas atskiras ↑saitas. Kiekviena sritis tampa nuoroda. Naudojamas įvairiuose hipertekstuose: tinklalapiuose,… …   Enciklopedinis kompiuterijos žodynas

  • map — atvaizdis statusas T sritis fizika atitikmenys: angl. image; map vok. Abbildung, f; Bild, n; Darstellung, f rus. образ, m; отображение, n; соответствие, n pranc. image, f …   Fizikos terminų žodynas

  • image — atvaizdis statusas T sritis fizika atitikmenys: angl. image; map vok. Abbildung, f; Bild, n; Darstellung, f rus. образ, m; отображение, n; соответствие, n pranc. image, f …   Fizikos terminų žodynas

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”