JIM Control Usage Manual : Adding The JIM Control To A Web Site
[ To Table Of Contents ]

You may wish to rename the JIM Control source file (jim_control.js) to something more familar if you choose. Then copy the file to your web site. After you have copied the file to your web site, add the link to the source file as indicated below:

<script language="javascript" src="source_file_name.js"></script>

The SRC path, depending on where you placed the file on your web site, and how you intend to link to it in your web pages may need to be changed.

Preliminary functions to be aware of:
The JIM Control has a few functions that should be called on your web pages. This can be done either by using a javascript onload function, or by adding a few references in the body tag of your web pages. Shown below is the method for using the body tag:

<body onselectstart="return wdrag_monitor();" onload="wghostcreate();wuserpreferences();">

wdrag_monitor() - This is a function that determines whether to disable mouse highlighting when an inline window is being dragged. This function allows a user to highlight areas on a web page, but disables that ability while inline windows are being dragged around. Unfortunately, only Internet Explorer seamlessly supports this toggling ability.

wghostcreate() - This is a function that dynamically creates the inline window frame that the user drags around on the screen after a window has been selected. This function must be called when a page loads so that the element can be created. You can change the id and name of this element by locating the variable called ghost_box_id in the JIM Control source file.

wuserpreferences() - In the event that you want to allow user's interactions with the inline windows to be preserved and recalled the next time the user returns to your web site, you will want to call this function when the page loads. You can always override this function by changing a variable called allow_user_prefs to zero that is found in the JIM Control source file.