HTMLElement create(<string> n, <string> c, <HTMLElement> p, <string> h)
Creates a element for the layer based on the id and specified name.
Parameters
n - Element tag name, like div.
c - Optional class name to set as class attribute value.
p - Optional parent element reference, defaults to body.
h - Optional HTML code to insert into element.
Returns
HTML DOM element that got created.
boolean exists()
Returns true/false if a element exists for the layer.
Returns
true/false if a element exists for the layer.
Object getAbsPosition(<DOMElement> n)
Returns the absolute x, y cordinate of the specified node.
Parameters
n - DOM node to retrive x, y of.
Returns
Object containing absLeft and absTop properties.
HTMLElement getBlocker()
Returns the blocker DOM element, this is a invisible iframe.
Returns
DOM HTML element.
HTMLElement getElement()
Returns the DOM element that the layer is binded to.
Returns
DOM HTML element.
void hide()
boolean isVisible()
Returns true/false if the layer is visible or not.
Returns
true/false if it's visible or not.
void moveBy(<int> x, <int> y)
Moves the layer relative in pixels.
Parameters
x - Horizontal relative position in pixels.
y - Vertical relative position in pixels.
void moveRelativeTo(<HTMLElement> re, <string> p)
Moves the layer relative to the specified HTML element.
Parameters
re - Element to move the layer relative to.
p - Position of the layer tl = top left, tr = top right, bl = bottom left, br = bottom right.
void moveTo(<int> x, <int> y)
Moves the layer absolute in pixels.
Parameters
x - Horizontal absolute position in pixels.
y - Vertical absolute position in pixels.
int parseInt(<string> s)
Parses a int value this method will return 0 if the string is empty.
Parameters
s - String to parse value of.
Returns
Parsed number.
void resizeBy(<int> w, <int> h)
Resizes the layer by the specified relative width and height.
Parameters
w - Relative width value.
h - Relative height value.
void resizeTo(<int> w, <int> h)
Resizes the layer to the specified width and height.
Parameters
w - Width value.
h - Height value.
void setBlockMode(<boolean> s)
Sets the block mode. If you set this property to true a control box blocker iframe will be added to the document since MSIE has a issue where select boxes are visible through layers.
Parameters
s - Block mode state, true is the default value.
void show()
void updateBlocker()
Updates the select/iframe/flash blocker this will also block the caret in Firefox.