Portable Anymaps in JavaScript

In this example, we’ll consider a selection of JavaScript functions to facilitate the use and creation of Portable Anymap images. (The source for the functions described is available from this document’s /html/head/script element.)