Layer.clip.bottom

JavaScript 1.2+ Nav4+ Syntax

							layer.clip.bottom

Description

The clip.bottom property of the Layer object refers to the bottom of the layer's clipping area.

Example

Listing 7.324 shows an example of how clip.bottom is used. Two layers are created using the <layer> tag. When the button is clicked, the clip1 function is called, which clips the bottom of layer1 by 100 pixels.

Listing 7.324 Example of the clip.bottom Property
<html>
<head>
<title> Using the clip.bottom property of the Layer object</title>
</head>
<body>

<script language="JavaScript">
<!-- Hide

// function clips the bottom of layer 1 by 100 pixels
function clip1(){
     document.layer1.clip.bottom = 100;
}
							 // End Hide ---> </script> <layer id="layer1" width=200 ...

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.