JIM Control Usage Manual : Using The Mouse Popup Menu
[ To Table Of Contents ]

An optional feature of the JIM Control is the mouse-driven popup menu. A user can evoke the popup menu by clicking on their right mouse button, if you allow this feature. You can enable or disable this feature by locating the variable called monitor_rclick in the JIM Control source file (jim_control.js). If it is enabled, the user will see a popup menu appear populated with content that you specify.

You populate the mouse menu by specifying values in three arrays found in the JIM Control source file (jim_control.js). For example, let's say that you want to create a link with a small image preceeding it. Here is how to do that:
mmenu_titles[0] = "Link Text";
mmenu_links[0] = "http://www.somesite.com/";
mmenu_image[0] = "http://www.somesite.com/someimage.jpg";
mmenu_type[0] = 0;

mmenu_titles - This is the text that the user sees
mmenu_links - This is the URL that the user will go to when they click on the text / image
mmenu_image - This is the URL to the image that preceeds the text
mmenu_type - Specify 0 if you are using a normal link. Specify 1 if you are invoking a javascript function.

You can add as many links to the mouse menu as may be needed. It is important to note that the appearance of the mouse menu is controlled by a few CSS classes: .tablinkahref, .mousemenutxt, .mousemenubox.