(extends Object)
Manipulates and returns various DOM properties.
This object does not have a constructor. It is statically accessed.
elm - The element to check the offset.
The (x,y) coordinates of the element from the top-left corner of the ViewPort.
The method will be useful for collision detection algorithms, since it gives coordinates according to a global point of reference.
elmTestNode - The node to test.
elmParentNode - The parent node to test.
true if elmParentNode is a direct parent of elmTestNode.
Test whether second node is a direct parent of the first node.
obj - The topmost node to begin sweep operation.
Removes all empty text nodes (i.e. sweeps) of obj and any children of it recursively. If obj is not given, entire document tree is swept.
strClassName - the className to scan.
elmParentNode - (optional) The node to start scanning.
An array of object references whose className match strClassName.
Works similar to document.getElementsByTagName.
elm - The element to remove from the node tree.
Removes elm from the DOM tree.
Makes links with a class name 'newwin' open in a new window.
Removes the click event handler from the external links.
fnRef - The function reference to call when DOM content is ready.
arID - An array of ID's or DHTML object references that fnDelegate uses directly or indirectly.
Executes fnDelegate whenever DOM content is ready. If the page is loaded with external objects and images, this will be much faster than the traditional "window.onload" approach. Just one caveat though, you have to pass any DOM objects that are used while quickloading in arID. For instance if you set the innerHTML of a paragraph with ID "mainContent", and the margin of a div with id "sideContent" in a function called init, then you should call
DOMManager.quickLoad(init,["mainContent","sideContent"]);
to reassure that these two elements (mainContent and sideContent) are ready when init is called through quickLoad.
None given.