JavaScript Reference/Javascript Properties/bgProperties
Содержание
"bgProperties" Example
<html>
<head>
<script>
function function1() {
document.all.myBody.bgProperties = "fixed";
}
</script>
</head>
<body background="yourImage.gif" onclick="function1();" id="myBody">
</body>
</html>
"bgProperties" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> |
+----------------+--------------------------------------------------------------+
"bgProperties" Possible Values
Possible Values
An empty string the default; the image scrolls with the body content
fixed the image stays fixed when the body content scrolls.
"bgProperties" Syntax and Note
Note:
Read and write property.
Controls scroll of the background image.
Syntax:
document.all.bodyID.bgProperties = value