Triggering Images that Move

Sometimes, the image that triggers the menu will move (e.g. with browser resize). As such you may not be able to pass absolute coordinates to showPanel to display the menu, as it may no longer be aligned with the image.

To resolve this, we have written on this page an additional function, called

showPanel2('Panel Name', 'Image Name', x-offset, y-offset)

When called, showPanel2 first detects the position of the image specified (by calling the function imgXY), and then positions the specified menu panel at the location x-offset and y-offset from the upper left corner of this image.

See HTML for this page