(extends CBObject)
Object Summary
Models a DHTML layer. This layer is specifically a div element, but it can be any other HTML element as well.
The basic properties of the layer such as its content, visibility, CSS
style are controlled with this object.
This object is a base class for DynamicLayer.
Constructor
parameters
elmID - The String index or object reference to the layer.
comments
Methods
LayerObject.setStyle(strSelector,strValue)
parameters
strSelector - the CSS selector.
strValue - the value.
comments
Sets a CSS property of the layer.
LayerObject.getStyle(strSelectorExtended)
parameters
strSelectorExtended - The extended selector (like background-color)
returns
comments
Gets a certain CSS value of the object.
returns
true if the object's style.
comments
Checks whether the object is visible.
comments
Sets the object's visibility to "visible".
comments
Sets the object's visibility to "hidden".
comments
Sets the object's display to "none".
comments
Sets the object's display to "inline".
comments
Sets the object's display to "block".
LayerObject.changeContent(strNewHTML)
parameters
strNewHTML - The new content.
comments
Changes the inner HTML
of the layer.
LayerObject.addContentBefore(strName)
parameters
strHTML - The content to append to top.
comments
Appends content to top of the layer.
LayerObject.addContentAfter(strName)
parameters
strHTML - The content to append to bottom.
comments
Appends content to the bottom of the layer.
See Also
DynamicLayer
DraggableLayer
CBObject
Usage Examples
Comments (0)
You don't have permission to comment on this page.