Layer.clip.top

JavaScript 1.2+ Nav4+ Syntax

							layer.clip.top

Description

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

Example

Listing 7.328 uses the clip.top property to shorten the height of the layer. Two layers are created using the <layer> tag. When the button is clicked, the clip1() function is called, which clips the top of layer1 by 88 pixels.

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

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

// function clips the top of layer 1 by 88 pixels.
function clip1(){
     document.layer1.clip.top = 88;
}
// 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.