h2g2 - GuideML - MAP tag

0 Conversations



pompy dompy dooooo


MAP tag



Function


The

<MAP>

tag creates link(s) to other pages, were areas of an image can be assigned tentative.



Syntax

<MAP NAME="mapname">

 area-tags

</MAP>
map-image


The

NAME

is the only attribute, just give it a unique name, to provide yourself with the knowledge what image it is for.

A specialised enclosed area is for area-tags these are used to

  • identify regions (preferrably on the image)

  • relate these areas to an address

  • give an alternative tip for this area

After the close map tag you have to specify the image and relate it to the map hence the mapname.



Area-tag

Syntax


<AREA SHAPE="geom" COORDS="x,y[,x,y[,x,y[,x,y[,x,y[,x,y[..]]]]]]" H2G2="URL" ALT="Destination"/>


  • SHAPE

    can be a geometrical shape

    • "rect"

      for the city square

    • "poly"

      for other specific areas

    • "circle"

      fits nice over a head

  • COORDS

    • "0,0, 100,100"
      1
      for rectangular shape (lefttop, rightbottom)

    • for a polygram (many-lined) shape (sequential list of x,y coordinates, the last should match the first)

  • H2G2 yes, well, you wanted to link something did you, do it here.

  • ALT most users will appreciate to know where they are going, give hint about the target

  • / do not forget to include the close sign /



Map-Image

Syntax


<IMG SRC="B1234" USEMAP="#mapname" ALT="off tentative hint"/>


  • SRC

    where to get the image from. The image must be part of the H2G2 image library. The images can have other sizes and shapes over skins, select the skin by trailing the number with 'white' or 'blue'.

  • USEMAP

    this is where we connect the mapped areas over this image, use the unique name as defined in the map open tag with a leading #.

  • ALT

    this is where you can place a hint tag for the not tentative areas

  • / do not forget to include the close sign /


Known issues

  • The linked pages do _not_ appear in referenced list

  • It is a tedious job to find the image as you can not use (all) relative locations and the preview function does not work.

  • The BIO reference attribute does not work in the AREA tag. The BLOB reference does not either.

  • Probably not approved GuideML (???)


Example
A1096986

GuideML-Clinic
1
It is not unwise to seperate pairs by an extra space.

Bookmark on your Personal Space


Conversations About This Entry

There are no Conversations for this Entry

Entry

A1085339

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


References

h2g2 Entries

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more