Javascript Reference
Categories: layer

javascript layer moveAbove( ), moveBelow( )

@March 15, 2008, 1:22 a.m.
moveAbove( ), moveBelow( )NN |4| IE n/a Chrome/Safari/DOM n/a  

moveAbove(layerObject) moveBelow(layerObject)

  

These methods shift the z-order of the current layer to a specific location relative to another, sibling layer. This is helpful if your script is not sure of the precise zIndex value of a layer you want to use as a reference point for the current layer's stacking order. Use moveAbove( ) to position the current layer immediately above the layer object referenced as a parameter.

 
Parameters
 
  • Reference to another layer object that shares the same parent as the current layer.
 
Returned Value

None.


Powered by Linode.