• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 19. Using Advanced DOM Features > Workshop: A Better Scrolling Message

Workshop: A Better Scrolling Message

In Hour 6, “Using Strings and Arrays,” you created a script that scrolls a message across the browser's status line. Using the DOM objects, you can create a better scrolling message—one that scrolls within the Web page itself.

To do this, you can start with the scrolling message example from Hour 6. Instead of assigning the message to the window.status variable, you can display it in a text node within the page. Listing 19.4 shows the complete HTML document for this example.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint