Online Sample Chapters
Table of Contents
(NOTE: Each chapter concludes with a Summary, Q&A, Quiz and Exercises.)
How to Use This Book. Q&A, Quiz, and Exercises. This Book's Web Site.
I. GETTING STARTED.
Hour 2. Creating a Simple Script.
Combining Tasks with Functions. Understanding Objects. Handling Events. Conditional Statements. Loops. Which Script Runs First? Workshop: Using Comments.
Hour 4. Using Functions and Variables.
Hour 5. Using Strings and Arrays.
Using String Objects. Working with Substrings. Using Numeric Arrays. Using String Arrays. Sorting a Numeric Array. Workshop: Displaying a Scrolling Message.
Hour 6. Testing and Comparing Values.
The if Statement. Using Shorthand Conditional Expressions. Using Multiple Conditions with switch. Workshop: Evaluating a User Response.
Hour 7. Repeating Yourself: Using Loops. Using for Loops. Using while Loops. Using do…while Loops. Working with Loops. Using for…in loops. Workshop: Working with Arrays and Loops.
Hour 8. Using Math and Date Functions.
What Is an Object? The Math Object. Working with Dates. Workshop: Working with the Math Object.
III. THE DOCUMENT OBJECT MODEL (DOM).
Hour 9. Working with the Document Object Model.
Understanding the Document Object Model. Using window Objects. Working with Web Documents. Accessing Browser History. Working with the location Object. Reading Information about the Browser. Workshop: Creating Back and Forward Buttons.
Hour 10. Responding to Events.
Understanding Event Handlers. Using Mouse Events. Using Keyboard Events. Using the onLoad and onUnload Events. Workshop: Adding Link Descriptions to a Web Page.
Hour 11. Using Windows and Frames.
Controlling Windows with Objects. Moving and Resizing Windows. Using Timeouts. Displaying Dialog Boxes. Working with Frames. Workshop: Creating a Navigation Frame.
Hour 12. Getting Data with Forms.
Hour 13. Using Graphics and Animation.
Hour 14. Creating Cross-Browser Scripts.
Hour 15. Creating Custom Objects.
Using Objects to Simplify Scripting. Creating an Object Instance. Customizing Built-In Objects. Workshop: Storing Data in Objects.
Hour 16. Working with Sounds and Plug-Ins.
Introducing Plug-Ins. Working with Plug-In Objects. Workshop: Playing Music with the Mouse.
Avoiding Bugs. Basic Debugging Tools. Creating Error Handlers. Workshop: Debugging a Script.
V. WORKING WITH DYNAMIC HTML (DHTML).
Hour 18. Working with Style Sheets.
Hour 19. Using Dynamic HTML (DHTML).
Understanding DOM Structure. Creating Positionable Elements. Workshop: Creating Dynamic HTML Animation.
Hour 20. Using Advanced DOM Features.
Working with DOM Nodes. Hiding and Showing Objects. Modifying Text within a Page. Adding Text to a Page. Workshop: A Better Scrolling Message.
VI. PUTTING IT ALL TOGETHER.
Creating the HTML Document. Using Drop-Down Lists for Navigation. Adding Link Descriptions. Adding Graphic Links. Workshop: Finishing up the Page.
Planning the Program. Writing the Program. Workshop: Putting It All Together.
Hour 23. Creating DHTML Applications.
Creating a Dynamic Site Map. Creating Drop-Down Menus. Workshop: Creating a Scrolling Text Box.
HTML and Text Editors. HTML Validators. Debugging Tools.
Appendix C. Glossary.
Appendix E. DOM Quick Reference.
DOM Level 0. DOM Level 1.