Dynamic Properties Sample
In this sample, a DIV element is centered horizontally and aligned vertically below the page content. Resize the window and the positioning is lost. Using an expression for the top and left properties, the position equation can be used dynamically to adjust the values when one of the properties used in the equation changes. Click "Make the Position Dynamic" to set the top and left properties to expressions with the setExpression method. Resize the window again, but this time the positioning is automatically adjusted.
Example DIV
© 1999 Microsoft Corporation. All rights reserved. Terms of use.