The following menu is “electric”. This means, submenus are opened when the mouse “hovers” menu items (at the “onmouseover” event); they won't wait for a click. Also, in this mode the submenus will close automatically when the cursor is moved outside, with a timeout of 250 milliseconds.

For demo simplicity, we didn't include icons nor actions for menu items.

See the page source: the main thing demonstrated in this page is the electric functionality, which can be obtained by setting up the menu with the following function call:

DynarchMenu.setup('menu', { electric: 250 });

The value “250” in the function call is the timeout after which submenus will be closed if the mouse cursor leaves them.