August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.pageX
The pageX property of the Layer object represents the x-coordinate position of the layer relative to the top-level document.
Listing 7.345 shows how to use the pageX property.
<html>
<head>
<title> Using the pageX property of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
// function increases the size of Layer 1 pageX property
function size(){
document.layer1.pageX = document.layer1.pageX +20;
}
// End Hide --->
</script>
<layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 VISIBILITY="show"> <center>Layer 1</center> </layer> <layer id="layer2" width=150 ... |
Read now
Unlock full access