August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.resizeTo(x,y)
The resizeTo() method of the Layer object resizes the layer object to the specified value. The x parameter refers to the number of pixels the layer width is increased. The y parameter refers to the number of pixels the layer height is increased.
Listing 7.350 shows how to resize a layer. When the button is clicked, the onClick event handler uses the resizeTo() method to resize layer2.
<html> <head> <title> Using the resizeTo method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 VISIBILITY="show"> <center>Layer 1</center> ... |
Read now
Unlock full access