August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.pageY
The pageY property of the Layer object represents the y-coordinate position of the layer relative to the top-level document.
Listing 7.346 shows how to manipulate the pageY property. When the button is clicked, the size function is called, which adds 20 pixels to pageY attribute of layer1.
<html>
<head>
<title> Using the pageY property of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
// function changes the value of the PageY attribute
function size(){
document.layer1.pageY = document.layer1.pageY +20;
}
// End Hide --->
</script>
<layer id="layer1" width=200 height=200 color= bgcolor="yellow" ... |
Read now
Unlock full access