[Javascript] Building menus

Andrew Gibson andyg at ihug.co.nz
Wed Feb 20 19:33:46 CST 2002


> I have a problem with a menu I'm building. I've built it with <div
> style="visibility: hidden/visible;"> and 'visibility' and 'hidden'
property
> is triggered by Javascript. But I want the menu to disappear if the user
> clicks outside the menu. Anyone?

The way I did one, was to set up variables holding the top, left, bottom,
top coordinates of where the menu is, then when the user's mouse moves
outside those regions the menu disappears.

Andrew Gibson






More information about the Javascript mailing list