background-attachment | NN 6 IE 4 CSS 1
| Inherited: No
When an image is applied to the element background (with the background-image attribute), the background-attachment attribute sets whether the image scrolls with the document. The image can remain fixed within the viewable area of the element (the viewport), or it may scroll with the element as content scrolls. During scrolling, a fixed attachment looks like a stationary backdrop to rolling credits of a movie.
CSS Syntax
    background-attachment: fixed | scroll
Value
The fixed value keeps the image stationary in the element viewport; the scroll value lets the image scroll with the document content.
Initial Value
scroll
Example
    body {background-attachment: fixed}
Applies To
All elements.
Object Model Reference
    [window.]document.getElementById("elementID").style.backgroundAttachment