public
void
addClass
(
Object
element,
Object
class)
Add a class name to an element
Attach an event to an element.
Get the x and y coordinates of an element relative to the top left corner of the window
public
Boolean
hasClass
(
Object
element,
Object
class)
Check if an element belongs to a certain class
public
void
removeClass
(
Object
element,
Object
className)
Remove a class name from an element
Popup / Hide an element at the location of the click
public
void
addClass(Object
element, Object
class)
Parameters:
element
The element to check
class
The class to add to the element
public
void
addEvent(DOMElement
element, String
event, Function
handler)
Parameters:
element
The element to add the event to
event
The type of event i.e. 'click','mouseover'
handler
The function handler for the event
public
Array
findPos(Object
obj)
Returns:
An array containing the x,y coords of obj
public
Boolean
hasClass(Object
element, Object
class)
Parameters:
element
The element to check
class
The class to check against the element
Returns:
The result of the operation
public
void
removeClass(Object
element, Object
className)
Parameters:
element
The element to check
className
The class to remove from the element
public
void
togglePopup(Object
source, Object
target)
Parameters:
source
The source element that is sending the request
target
The target element to show/hide