Functions | |
| if (browser.agentIE) document.onmousedown | |
| else | if (document.addEventListener) document.addEventListener("mousedown" |
| function | closeMenu () |
| function | pageMousedown (event) |
| function | openMenu (menu_button, menuName) |
| function | changeMenu (menu_button, menuName) |
| function | closeSubmenu () |
| function | closeSubmenuOf (name) |
| function | openSubmenu (item, subName) |
| function | clickMenu (menu_button) |
| function | getPageOffsetLeft (obj) |
| function | getPageOffsetTop (obj) |
| function | showContextMenu (id) |
| function | closeContextMenu () |
| function | getMouseX () |
| function | getMouseY () |
| function | replace (string, search, replace) |
| function | encodeArgument (arg) |
| function | contextURI (uri, names, translated) |
| function | openContext (uri, names, translated, window, params) |
| function | getform (form) |
| function | setformvar (form, name, value) |
| function | setformvarsubmit (form, name, value) |
| function | formsubmit (form) |
| function | toggle_flag (form, flag) |
| Toggle a (form) flag. | |
| function | submit_preventdouble (button, element, value) |
| Disable a button to prevent double-clicking, stores the optional value in an input field and submits the form. | |
| function | show_hourglass (time) |
| Show an hourglass after a specified time. | |
| function | _start_show_hourglass (fade) |
| function | fade_in (element) |
| Fade an element in softly. | |
| function | center_element (element) |
| Center an element. | |
Variables | |
| var | menuActive = null |
| var | subMenu = null |
| var | subMenuName = '' |
| var | contextMenu = null |
| var | x = 0 |
| var | y = 0 |
| else | pageMousedown |
| else | true |
| var | _fade_in_element = null |
| var | _fade_in_opacity = 0 |
|
|
|
|
|
Center an element. The element is supposed to be position: absolute.
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
Fade an element in softly. This works using opacity. Browsers not supporting oppacity will not actually show an effect - the object just appears. For this to work in Internet Explorer the element must have a given height or width. The element is supposed to be hidden before fading in with "visibility:hidden".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Show an hourglass after a specified time. This requires the hourglass HTML source (.inc@) to be included on the respective page. If a time argument is given, the hourglass is faded in after waiting time milliseconds. If no time is given, the hourglass is immediately shown without any fading effect.
|
|
|
|
|
||||||||||||||||
|
Disable a button to prevent double-clicking, stores the optional value in an input field and submits the form. When the button is disabled, its value will not be sent to the server, therefore this function allows to pass a value to a separate input field. If no value and/or element are given, only the form is submitted.
|
|
||||||||||||
|
Toggle a (form) flag. Finds a flag in a form, sets its value to "0" if it was true before, to "1" if it was false before.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5