HOUR 23:Creating JavaScript Applications

What You’ll Learn in This Hour:

• Using the DOM to create a scrolling window

• Switching between CSS style sheets using JavaScript

• Using the DOM to create dynamic forms

You’ve learned quite a bit about JavaScript in the last 22 hours. In this hour, you’ll apply this knowledge to create three quick, practical examples of JavaScript applications that could be useful for just about any website.

Creating a Scrolling Window

One of the most common, and the most unfortunate, early uses of JavaScript was for scrolling messages, which crept across the browser’s status line giving you information one letter at a time rather than making use of the whole page.

In this section, you’ll ...

Get Sams Teach Yourself JavaScript in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.