Board18com
board18com.js contains scripts that are common to all board18 web pages.
Global Variables
All board18 global variables are contained in one 'master variable' called BD18. This isolates them from global variables in other packages.
Function setPage()
The setPage() function adjusts the height and width of rightofpage and the height of lefttofpage.
Function $(window).resize()
The $(window).resize() function waits for 200 ms before executing setPage(). Multiple window resize events that occur within this time peroid will only trigger the setPage function once.
Utility Functions for Positioning
The findPos(obj), getScrolled(object, scrolled) and getOffset(object, offset) functions calculate the real position of an element on the page adjusted for scrolling. I got them from this web site: http://help.dottoro.com/ljnvukbb.php
Function offsetIn(event, obj)
The offsetIn function finds the offset of the cursor [at a click event] from the top/left of the specified containing object. It uses findPos() to calculate the object's top/left.
Function doLogNote(note)
Function doLogNote displays a lognote for 30 seconds.
A new lognote will replace any previous log note
that has not yet timed out.
BD18.noteTimeout is a
global variable with an initial value of null.