| 
  • 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
 

DynamicLayer

Page history last edited by PBworks 17 years, 11 months ago


 

DynamicLayer

(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

 

DynamicLayer(elmID)

 

parameters

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

 

comment

Creates a new DynamicLayer.


Methods

 

DynamicLayer.moveTo(intLeft,intTop)

 

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.


DynamicLayer.moveToDeadCentre()

 

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.


DynamicLayer.getLeft()

 

returns

The left coordinate.

 

comments

Gets the left coordinate of the layer.


DynamicLayer.setLeft(intLeft)

 

parametres

intLeft - The left coordinate.

 

comments

Sets the left coordinate of the layer.


DynamicLayer.getTop()

 

returns

The top coordinate.

 

comments

Gets the top coordinate of the layer.


DynamicLayer.setTop(intTop)

 

parameters

intTop - The top coordinate.

 

comments

Sets the top coordinate of the layer.


DynamicLayer.getHeight()

 

returns

Height of the layer.

 

comments

Gets the height of the layer.


DynamicLayer.setHeight(intHeight)

 

parameters

intHeight - height of the layer.

 

comments

Sets the height of the layer.


DynamicLayer.getWidth()

 

returns

width of the layer.

 

comments

Gets the width of the layer.


DynamicLayer.setWidth(intWidth)

 

parameters

intWidth - width of the layer.

 

comments

Sets the width of the layer.


DynamicLayer.getOpacity()

 

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.


DynamicLayer.setOpacity(dblValue)

 

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.