(extends LayerObject)
Object Summary
DynamicLayer inherits LayerObject's methods. Plus, it has additional methods to modify the dimension and orientation of the layer it controls. The object creates a base for DraggableLayer.
Constructor
parameters
elmID - The String index or object reference to the layer.
comment
Methods
parameters
intLeft - The new left coordinate.
intTop - The new top coordinate.
comments
Moves the layer to its new coordinates. The layer should be either absolutely or relatively positioned to be moved.
comments
Moves the layer to the centre of the visible browser window.
DynamicLayer.resizeTo(intWidth,intHeight)
parameters
intWidth - The new width in pixels.
intHeight - The new height in pixels.
comments
Changes the width and height of the layer.
returns
comments
Gets the left coordinate of the layer.
parametres
intLeft - The left coordinate.
comments
Sets the left coordinate of the layer.
returns
comments
Gets the top coordinate of the layer.
parameters
intTop - The top coordinate.
comments
Sets the top coordinate of the layer.
returns
comments
Gets the height of the layer.
parameters
intHeight - height of the layer.
comments
Sets the height of the layer.
returns
comments
Gets the width of the layer.
parameters
intWidth - width of the layer.
comments
Sets the width of the layer.
returns
The opacity of the layer if supported. Which is a value between 0 and 1; 0 meaning fully transparent (invisible) whereas 1 meaning fully opaque. Returns 1 if opacity is not supported on the user agent.
parameters
dblValue - A value between 0 and 1.
comments.
Sets the new opacity value, if it is supported by the user agent. It does nothing otherwise.
See Also
None given.
Usage Examples
Comments (0)
You don't have permission to comment on this page.