Configuring the contextmenu as a dropdown "suckerfish" menu (not recommended usability-wise).

The menu can be easily configured as a horizontal or vertical dropdown menu.
The two mainmenus on this page are simple unordered lists.
Each of the links in a mainmenu is bound to a unique contextmenu which acts as the submenu.


The horizontal menu is configured with the following options (among others):



The vertical menu is configured with the following options (among others):

  • openBelowContext: true, same as the horizontal menu.
  • event: mouseover, same as the horizontal menu.
  • startLeftOffset: 170, setting openBelowContext to true causes the menu to open at the lowerleft corner of the context(mainmenu item). In this case we want the menu to open at the upperright corner of it's context, which means it needs a horizontal offset as wide as the mainmenu.
  • startTopOffset: -28, same reason as startLeftOffset. We want the menu to open at the upperright corner of it's context, which means it needs a negative vertical offset as heigh as a mainmenu-item.
  • fadeIn: 0, same as the horizontal menu.
  • autoHide: true, same as the horizontal menu.

Dynamically added submenu items >> << Open by button