I'm looking for a script that makes it possible to dynamically create a
client-side imagemap.
Its for use within a (browser-based) cms. It should be possible for a user to create a manual online, upload images for that manual, and then create hotspots on that image and link those to other documentation in the database.

So basically i need a script that shows the image and makes it possible for
the user to draw a hotspot on that image, which should be visualized in some
way. The output should be at least two coordinates which can be used to
create the imagemap.

If you have any suggestions i would appreciate that!