| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

LayerObject

Page history last edited by PBworks 18 years ago


 

LayerObject

(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

 

LayerObject(elmID)

 

parameters

elmID - The String index or object reference to the layer.

 

comments

Creates a new LayerObject.


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

The style value.

 

comments

Gets a certain CSS value of the object.


LayerObject.isVisible()

 

returns

true if the object's style.

 

comments

Checks whether the object is visible.


LayerObject.show()

 

comments

Sets the object's visibility to "visible".


LayerObject.hide()

 

comments

Sets the object's visibility to "hidden".


LayerObject.collapse()

 

comments

Sets the object's display to "none".


LayerObject.expanInline()

 

comments

Sets the object's display to "inline".


LayerObject.expand()

 

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.