Click to return to the DHTML, HTML     
BGCOLOR Attribute     border Attribute | border...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

BGPROPERTIES Attribute | bgProperties Property


Sets or retrieves the properties of the background picture.

Syntax

HTML<BODY BGPROPERTIES = sProperties ... >
Scriptingbody.bgProperties [ = sProperties ]

Possible Values

sProperties String that specifies one of the following values:
""Background can scroll.
fixedBackground is fixed and cannot scroll.

The property is read/write with a default value of an empty string ("").

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

The property, for example, specifies whether the picture is a fixed watermark or scrolls with the page. This attribute/property is supported only by Internet Explorer.

Example

This example uses a fixed background image for the page.

Sample Code

<BODY BACKGROUND="/ie/images/watermrk.gif" BGPROPERTIES="fixed"
BGCOLOR=#FFFFFF TEXT=#000000 LINK=#ff6600 VLINK=#330099>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

BODY

See Also

background



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.