ui/ Dock.js

Mac-esque Dock by Joshua Olson and Kristof Neirynck k.neirynck at belgacom.net tweaked for Neuromancer.  To use this library just include the file then make a div element on the page with an id of ‘dock’ and within that div add anchors and images.  You wont need to call any of these methods by hand.  An example usage:

<div id="dock">
<a href="javascript: dothing();"><img src="myicon.gif"></a>
<a href="javascript: emptytrash();"><img src="trash.gif"></a>
</div>

The rest will be handled for you :)

Related

ui/EventManager.js

Summary
Mac-esque Dock by Joshua Olson and Kristof Neirynck k.neirynck at belgacom.net tweaked for Neuromancer.
the library version
Does some startup items, this needs to be called on page load.
This method is called automatically.
Does the little zoom thing.

Variables

DOCK_VERSION

var DOCK_VERSION

the library version

Functions

dock_prepDock

function dock_prepDock(e)

Does some startup items, this needs to be called on page load.  It it autoset with neuro_addLoadListener later in the file (which is why this depeneds on the system.js lib).  You shouldn’t need to call this function directly

dock_restoreDock

function dock_restoreDock()

This method is called automatically.  You shouldn’t need to call it directly

dock_magnify

function dock_magnify(e)

Does the little zoom thing.  This method is called automatically.  You shouldn’t need to call it directly

Parameters

ethe event

dock_mousepos

function dock_mousepos(e)
Get position of mouse relative to the pagethis method is called automatically when you mouse over an image on the dock.  You shouldn’t need to call this directly TODO: this is not using the SysMouse object...

Parameters

ethe event.

dock_objpos

function dock_objpos(obj)
Get position of object relative to the pagethis is called automatically you shouldn’t need to call it directly

Parameters

obj

var DOCK_VERSION
the library version
function dock_prepDock(e)
Does some startup items, this needs to be called on page load.
function dock_restoreDock()
This method is called automatically.
function dock_magnify(e)
Does the little zoom thing.
function dock_mousepos(e)
function dock_objpos(obj)