Image Mapping Feature
The image mapping feature of Web Server/400 allows a user to map parts of an
image to documents. When
the user clicks on different areas of the image with the browser,
the user will be redirected to a document appropriate to that part of the
describing the areas of the image, you can use shapes such as
rectangles. A user can also specify
points, with the nearest point being used to pick
a document. A default can be specified, which
is used when no other match is made.
Including a Mapped Image
To include a mapped image, include a reference like the
<A HREF="/qsys/webcgi/imagemap/MapFile"> <IMG SRC="picture.gif"
The example above has the following parts
An alias into
A script library (see configuration issues below).
The name of the image map mapping file.
An image the user can click on.
In addition to building a map file (above), you must set up a
global image map configuration file, and set
up an alias into
QSYS, as well as enable scripts correctly.
To support the above example, an
alias entry that redirects
the root of
*QSYS is required. Also see more about
aliases in general.
Image mapping is supported as a pseudo-script that must
be specified in a script library entry and
enable scripts must be set to
In the above
webcgi would need to be listed as a script library.
Using Your Own Image Mapping
You may write your own image mapping support as a
and reference it as above. The image mapping support provided with Web
Server/400 is written as a pseudo-script and if the server sees a script in
the referenced library, it will be executed instead of the shipped image