August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.clip.left
The clip.left property of the Layer object represents the left of the layer's clipping area.
Listing 7.326 shows how the clip.left property is used. Two layers are created using the <layer> tag. When the button is clicked, the clip1() function is called, which clips the left side of layer1 by 90 pixels.
<html>
<head>
<title> Using the clip.left property of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
// function clips the left side of layer1 by 90 pixels
function clip1(){
document.layer1.clip.left = 90;
}
// End Hide --->
</script>
<layer id="layer1" width=200 height=200 ... |
Read now
Unlock full access