August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.visibility
The visibility property of the Layer object controls whether the layer is displayed or hidden. Valid values for this property are: hide, show, and inherit. This property also represents the HTML VISIBILITY attribute of the <layer> tag.
Listing 7.356 shows how the visibility property is used to hide a Layer object.
<html>
<head>
<title> Using the visibility property of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
function hide(){
document.layer2.visibility ="hide";
}
// End Hide --->
</script>
<layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 ... |
Read now
Unlock full access