Layer.moveToAbsolute()

JavaScript 1.2+ Nav4+ Syntax

							layer.moveToAbsolute(x,y)

Description

The moveToAbsolute() method of the Layer object moves the upper-left corner of the layer to the specified position. This position is relative to the top-level document. The method takes two parameters, x and y. The x parameter refers to the number of pixels the layer is moved to the right. The y parameter refers to the number of pixels the layer is moved down.

Example

Listing 7.338 an example of how the moveToAbsolute() method is used.

Listing 7.338 Example of the moveToAbsolute() Method
 <html> <head> <title> Using the moveToAbsolute method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.