Document Timer: 0

This example uses the begin attribute set to a simple time for each of the three colored DIVs. Each DIV will begin its simple duration upon the firing of the document.body.onload event plus the value of the begin attribute assigned. The yellow DIV has a begin time of 1 second, the blue DIV has a begin time of 2 seconds and the red DIV has a begin time of 3.5 seconds after document.body.onload event fires.


[Right-click and choose View Source from the shortcut menu.]

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