NavigationLibrariesdoctype [?][strict] [loose] [none] |
Object Position and Size |
||||||||||||||||||||||||||||||||
Class MethodsPosition.get (object) : ObjectGet the top and left position of an object on the page, relative to the root element (HTML or BODY) tag. This can then be used to position another object relative to the first.
Returns: Object with properties: 'left' and 'top' to specify position, and 'width' and 'height' to specify the dimensions of the object's full box (including padding and borders) Position.getCenter (object) : ObjectSimilar to Position.get(), but this method returns the coordinates of the center of the object, rather than the upper left corner.
Returns: Object with properties: 'left' and 'top' to specify position, and 'width' and 'height' to specify the dimensions of the object's full box (including padding and borders) Position.set (object, left, top) : BooleanSet the position of an object to a certain location on the screen. If the object is not already position:absolute, it will be made so in order to be moved. Returns true if successful, else false.
Returns: Boolean |
|||||||||||||||||||||||||||||||||
All Contents Copyright © Matt Kruse |
|||||||||||||||||||||||||||||||||