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

Hour 6. Using Strings and Arrays > Workshop: Displaying Scrolling Messages

Workshop: Displaying Scrolling Messages

In Hour 3, “Exploring JavaScript's Capabilities,” you learned that JavaScript can be used to create a scrolling message in the status line of a Web page, and you copied an existing script. With your knowledge of strings, you can now create the scrolling message program from scratch.

To begin, you'll need to define the message to be scrolled. You will use a variable called msg to store the message. To begin the script, initialize the variable (feel free to choose your own text for the message):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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