Line before menu line.

More lines

to push the

menu hotspot around

The menu only appears when the mouse hovers over these words . Now we need to position the menu over the event source. The table that defines the menu can be defined anywhere in the body of the document. I think that there are two obvious places: immediately following the hotspot or at the end of the document. I have used a mixture of attributes and inline styles to specify the various details of the menu. In practice it should be better to use a stylesheet instead, either an external one or one embedded in the document. Then you can alter the menu layouts just by altering the stylesheet and have the whole web site change to comply.

Note that all of this is horribly browser specific. It doesn't work at all in Mozilla Build 2003040105 or Opera 7.0.2577. It does work in IE6.0.2800.1106 If you want the menu to appear in another place you do not need to repeat the table, just refer to it as before in the PopupMenu call