CELEBRATE EARTH WEEK
Save 70% on video training and simulators now through April 27*—use code EARTH. Shop now.
The source code for the examples developed in the book in one ZIP file - 243 kb -- code.zip
The source code for the examples developed in the book in one SIT file - 320 kb -- code.sit.hqx
For updates and corrections to the code and/or book, please visit the author's book companion web site at http://www.jsworkshop.com.
(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.
Combining Tasks with Functions. Understanding Objects. Handling Events. Conditional Statements. Loops. Which Script Runs First? Workshop: Using Comments.
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.
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.
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.
Avoiding Bugs. Basic Debugging Tools. Creating Error Handlers. Workshop: Debugging a Script.
V. WORKING WITH DYNAMIC HTML (DHTML).Hour 18. Working with Style Sheets.
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.
Planning the Program. Writing the Program. Workshop: Putting It All Together.Hour 23. Creating DHTML Applications.
HTML and Text Editors. HTML Validators. Debugging Tools.Appendix C. Glossary.
DOM Level 0. DOM Level 1.Index.