Server side
Server side image maps are built on a simple mech in earliest HTML / browser
defs. If you have a URL link, and in the link text there is an IMG with
keyword/attribute ISMAP, then the URL is sent to server with coords of click
appended as in URL?23,509
Syntax of map file is typically like:
rect local.html 0,0 200,200
where second field is a URL (in this case, relative to where .map file is).
See http://httpd.apache.org/docs/mod/mod_imap.html
You can combine this with old server-side maps, so if client fails to do it,
or doesn't have defaults or some areas defined, then click will pass
through.
- Oldest method has separate software programme "ImageMap" in server's
cgi-bin.
Call from webpage will be:
< A href="http://www.psy.gla.ac.uk/cgi-bin/imagemap/~steve/ilig/pics/lobby.map">
I.e. URL is first that of software; then concatenated the file address of map
file (database of active areas). (The browser will further concatenate the
coords of the click.)
- Newer method if server has ImageMap enabled, is that the software is now
part of server, and additionally server recognises any web page with ".map"
suffix and applies to it.
Call from webpage will be: < A href="pics/lobby.map">
Client side images
- Use newer versions of HTML with