# J ee g oocontext, a jQuery context menu plugin

## Copyright © 2009 - 2010 Erik van den Berg, http://www.planitworks.nl/jeegoocontext

## 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.

- mainmenu 1
- mainmenu 2
- mainmenu 3
- mainmenu 4
- mainmenu 5
- mainmenu 6

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

- openBelowContext: true, this causes the contextmenu to open at the lowerleft corner of the context.
- event: mouseover, this is the event used to open the menu, i.e. hovering over the mainmenu items.
- ignoreHeightOverflow: true, setting this to true causes height(y) overflow to be ignored. We don't want overflowing submenus overlapping our mainmenu.
- fadeIn: 0, using fadeIn times bigger than 0 can cause multiple submenus to appear when moving rapidly from mainmenu item to mainmenu item.
- autoHide: true, setting autoHide to true causes the whole menu to hide when the mouse pointer exits the menu. Notice that the menu doesn't automatically hide when moving the mouse from a mainmenu item to the area above/left from the mainmenu. This is because the mainmenu isn't actually part of the contextmenus.

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.

- mainmenu 1
- mainmenu 2
- mainmenu 3
- mainmenu 4
- mainmenu 5
- mainmenu 6

Dynamically added submenu items >> << Open by button

- submenu 1.1
- submenu 1.2
  - submenu 1.2.1
  - submenu 1.2.2
  - submenu 1.2.3
  - submenu 1.2.4
  - submenu 1.2.5
  - submenu 1.2.6
  - submenu 1.2.7
  - submenu 1.2.8
    - submenu 1.2.8.1
    - submenu 1.2.8.2
    - submenu 1.2.8.3
    - submenu 1.2.8.4
    - submenu 1.2.8.5
      - submenu 1.2.8.5.1
      - submenu 1.2.8.5.2
      - submenu 1.2.8.5.3
      - submenu 1.2.8.5.4
      - submenu 1.2.8.5.5
      - submenu 1.2.8.5.6
      - submenu 1.2.8.5.7
      - submenu 1.2.8.5.8
      - submenu 1.2.8.5.9
    - submenu 1.2.8.6
    - submenu 1.2.8.7
    - submenu 1.2.8.8
    - submenu 1.2.8.9
  - submenu 1.2.9
- submenu 1.3
- submenu 1.4
- submenu 1.5
- submenu 1.6
- submenu 1.7

- submenu 2.1
- submenu 2.2
- submenu 2.3

- submenu 3.1
- submenu 3.2
- submenu 3.3
- submenu 3.4

- submenu 4.1
- submenu 4.2

- submenu 5.1
- submenu 5.2
- submenu 5.3
- submenu 5.4

- submenu 6.1
- submenu 6.2
- submenu 6.3
- submenu 6.4
- submenu 6.5
- submenu 6.6
- submenu 6.7
- submenu 6.8
- submenu 6.9
- submenu 6.10
  - submenu 6.10.1
  - submenu 6.10.2
  - submenu 6.10.3
  - submenu 6.10.4
  - submenu 6.10.5
  - submenu 6.10.6
  - submenu 6.10.7
  - submenu 6.10.8
  - submenu 6.10.9
  - submenu 6.10.10
  - submenu 6.10.11
  - submenu 6.10.12
  - submenu 6.10.13
  - submenu 6.10.14
- submenu 6.11
- submenu 6.12
- submenu 6.13
- submenu 6.14
- submenu 6.15
- submenu 6.16
- submenu 6.17
- submenu 6.18
- submenu 6.19
- submenu 6.20
- submenu 6.21

- submenu 1.1
- submenu 1.2
  - submenu 1.2.1
  - submenu 1.2.2
  - submenu 1.2.3
  - submenu 1.2.4
  - submenu 1.2.5
  - submenu 1.2.6
  - submenu 1.2.7
  - submenu 1.2.8
    - submenu 1.2.8.1
    - submenu 1.2.8.2
    - submenu 1.2.8.3
    - submenu 1.2.8.4
    - submenu 1.2.8.5
      - submenu 1.2.8.5.1
      - submenu 1.2.8.5.2
      - submenu 1.2.8.5.3
      - submenu 1.2.8.5.4
      - submenu 1.2.8.5.5
      - submenu 1.2.8.5.6
      - submenu 1.2.8.5.7
      - submenu 1.2.8.5.8
      - submenu 1.2.8.5.9
    - submenu 1.2.8.6
    - submenu 1.2.8.7
    - submenu 1.2.8.8
    - submenu 1.2.8.9
  - submenu 1.2.9
- submenu 1.3
- submenu 1.4
- submenu 1.5
- submenu 1.6
- submenu 1.7

- submenu 2.1
- submenu 2.2
- submenu 2.3

- submenu 3.1
- submenu 3.2
- submenu 3.3
- submenu 3.4

- submenu 4.1
- submenu 4.2

- submenu 5.1
- submenu 5.2
- submenu 5.3
- submenu 5.4

- submenu 6.1
- submenu 6.2
- submenu 6.3
- submenu 6.4
- submenu 6.5
- submenu 6.6
- submenu 6.7
- submenu 6.8
- submenu 6.9
- submenu 6.10
  - submenu 6.10.1
  - submenu 6.10.2
  - submenu 6.10.3
  - submenu 6.10.4
  - submenu 6.10.5
  - submenu 6.10.6
  - submenu 6.10.7
  - submenu 6.10.8
  - submenu 6.10.9
  - submenu 6.10.10
  - submenu 6.10.11
  - submenu 6.10.12
  - submenu 6.10.13
  - submenu 6.10.14
- submenu 6.11
- submenu 6.12
- submenu 6.13
- submenu 6.14
- submenu 6.15
- submenu 6.16
- submenu 6.17
- submenu 6.18
- submenu 6.19
- submenu 6.20
- submenu 6.21