HierMenus CENTRAL: HierMenus In Progress. HM5 Status Report: Adding Opera (4/5) | WebReference

HierMenus CENTRAL: HierMenus In Progress. HM5 Status Report: Adding Opera (4/5)

To page 1To page 2To page 3current pageTo page 5
[previous] [next]

The Missing MouseUp

HM utilizes multiple mouse-related events of Web pages to control the display and behavior of the menus themselves. The common mouseover and mouseout events, for example, are used to trigger the display of child menus when parent menu items are rolled over. The click event is utilized to trigger the display of a new menu or the following of a link from a menu item, depending on the configuration of the menus themselves. And the mousedown and mouseup events are used in conjunction with tall scrolling menus, allowing the user to scroll the menus by holding the mouse down on the scrollbars. We didn't run into any problems with Opera's implementation of the mouseover, mouseout, and click events; but the latter two items, mousedown and mouseup, did pose some difficulties.

We've tied two event handlers to the mouseup and mousedown handlers of this Web page. These handlers print a message in the form textarea box below; printing "Mouse is Down" for the mousedown event; and "Mouse is Up" for the mouseup event. Try clicking and releasing your mouse on this page (but not over links, of course, since you will then exit the page) to see how your browser responds to these events. (Most browsers will work with this example, but some older browsers may not).