XMS?
mem/c/p ? :-)
I've only come across XMP ("eXaMPle"), now obsolete, which was like
PRE but with a specified width of 80 characters, and NO need to replace
<, > and & with their entity equivalents. Apart from the latter point,
you could use <pre width="80">.
As for image maps, USEMAP is the one for client-side processing.
e.g.
<img src="1-a-0.gif" width="120" height="80" border="0" alt=""
usemap="contents.htm#map-1-a">
This image 1-a-0.gif refers to co-ordinates held in a MAP with
name="map-1-a". This is a real-life example, so here's the MAP:
<!-- Map Row 1, Column A -->
<map name="map-1-a">
<area shape=poly coords="84,20,119,8,119,30,92,40"
href="#bottom" target="contents_page"
onMouseOver="window.status='There are currently no links for the Old Mere'
;return true">
<area shape=rect coords="58,42,115,61"
href="#Old_Grammar_School" target="contents_page"
onMouseOver="window.status='The imposing building at the entrance to the
village'
;return true">
<area shape=rect coords="42,71,70,79"
href="#Strawberry_Farm" target="contents_page"
onMouseOver="window.status='Strawberry Farm'
;return true">
</map>
Horror of horrors, Jake uses JavaScript! As I've mentioned to you
before L.D., these particular image maps are repeated on dozens of
pages, and re-use all the MAP data, which is held in a separate file
(contents.htm -- an always onscreen frame) which makes sense to me
but only appears to be supported by the Opera browser.
You shouldn't see anything onscreen of the MAP. The image used with
USEMAP points to co-ordinate data held in MAP which then tells the
browser where to go next.
You click on the USEMAP image, the browser says to itself 'Aha! I must
find the MAP of name usemap="whatever"', locates <map name="whatever">
and then checks the co-ordinates to see if any enclose the pixel you
clickethed. If one of these areas is a "hotspot" defined by AREA in MAP,
the browser should then follow whatever link has been specified.
In case the actual example above needs more deciphering, the USEMAP
image is a portion of an actual map. Running the mouse cursor over
the map will trigger JavaScript messages, which appear in the status bar
(the map being too small to contain much text or more than a few symbols).
Clicking a hotspot will then (at least with Opera) scroll the Contents
frame to a link with a fuller description appropriate to that area of
the map. Click the link and a new page opens in the main frame, complete
with a clickable map image and USEMAP referring to the MAP still in the
contents frame. By avoiding the inclusion of the MAP in every page I saved
9.5kB per page, plus a considerable maintenance headache. Eventually a
non-framed alternative will be offered, which will make the image map
and JavaScript messages functional in more browsers.
URLs and examples of HTML are always helpful in deciding whether our
nuggets are worth sending your way...
Regards,
Jake