Layer.clip.right

JavaScript 1.2+ Nav4+ Syntax

							layer.clip.right

Description

The clip.right property of the Layer object represents the right of the layer's clipping area.

Example

Listing 7.327 shows how the clip.right property is used to shorten the right side of the layer. Two layers are created using the <layer> tag. When the button is clicked, the clip1() function is called, which clips the right side of layer1 by 110 pixels.

Listing 7.327 Example of the clip.right Property
 <html> <head> <title> Using the clip.right property of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide // function clips the right side of layer1 by 110 pixels function clip1(){ document.layer1.clip.right = 110; } // End Hide ...

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.