August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.moveToAbsolute(x,y)
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.
Listing 7.338 an example of how the moveToAbsolute() method is used.
<html> <head> <title> Using the moveToAbsolute method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" ... |
Read now
Unlock full access