HTML and CSS Reference
Figure 15.30 Paragraph 2 has been removed.
In the following example, all three layers of a a Web page are represented: the HTML
the getElementById() method and a little node knowledge, a scrolling marquee is created
in Example 15.17. In Chapter 10, Example 10.11 we saw scrolling in the window's status
and title bar. Now we can scroll within the body of the document. The program creates
a message that will continuously scroll across the screen. The original message is placed
within a <div> container. By first identifying the HTML div element— getElement-
( firstChild ). This is depicted in Figure 15.31.
Figure 15.31 Referencing a child node requires first identifying the div element.