Since the procedures for generating files in the above two formats are very similar, the discussion below will focus on generating NCSA imagemap files.
In order to achieve the above effect demostrated here, you need an imagemap file that looks like the following:
default /tgif/imagemap/other.html poly /tgif/imagemap/triangle.html 3,131 67,195 131,131 3,131 rect /tgif/imagemap/oval.html 67,67 195,131 circle /tgif/imagemap/circle.html 35,99 67,99 rect /tgif/imagemap/rectangle.html 51,11 147,59