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