August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.resizeBy(x,y)
The resizeBy() method of the Layer object resizes the layer by a relative size. 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.349 shows how to resize a Layer object. When the button is clicked, the onClick event handler executes the resizeBy() method to resize layer2.
<html> <head> <title> Using the resizeBy 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