sams teach yourself javascript in 24 hours 3rd (2002)

451 815 1
sams teach yourself javascript in 24 hours 3rd (2002)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Programming Practices 240 Avoiding Common Mistakes 240 Basic Debugging Tools 242 Netscape’s JavaScript Console 242 Displaying Error Messages in Internet Explorer 243 Alert Messages and the Status Line 244 Using Comments 244 Other Debugging Tools 245 Creating Error Handlers 245 Using the onerror Property 245 Displaying Information... HOUR 16 Working with Sounds and Plug-Ins 225 Introducing Plug-Ins 226 Using the Tag 226 Using the Tag 227 Understanding MIME Types 228 Working with Plug -In Objects 228 Checking for Plug-Ins 229 Listing Plug-Ins 229 Using Objects in Plug-Ins 230 Workshop: Playing Music with the Mouse 231 Embedding the... and Frames 147 Controlling Windows with Objects 148 Creating a New Window 148 Opening and Closing Windows 149 Moving and Resizing Windows 150 Using Timeouts 152 Updating a Page with Timeouts 152 Displaying Dialog Boxes 154 Creating a Script to Display Dialog Boxes 156 Working with Frames 157 Using JavaScript Objects for... with Dishonest Browsers 204 Supporting Browsers with JavaScript 207 Creating a Browser-Specific Page 207 Branching to Separate Pages 207 Making a Multiple-Browser Page 208 Using Feature Sensing 208 xii Sams Teach Yourself JavaScript in 24 Hours Supporting Non -JavaScript Browsers 209 Workshop: Scripting for Multiple Browsers 210 Summary... book Email: webdev@samspublishing.com Mail: Mark Taber Associate Publisher Sams Publishing 800 East 96th Street Indianapolis, IN 4 6240 USA Reader Services For more information about this book or another Sams Publishing title, visit our Web site at www.samspublishing.com Type the ISBN (excluding hyphens) or the title of a book in the Search field to find the page you’re looking for Introduction The World... Creating a JavaScript Game 319 Planning the Program 320 Creating Graphics 320 Choosing Variables 320 Creating the HTML Document 321 Writing the Program 323 Handling the Deal/Draw Button 323 Shuffling the Deck 324 Dealing the Cards 324 Holding and Discarding Cards 325 Drawing New Cards 326 Calculating... Using Graphics and Animation 183 Using Image Maps with JavaScript 184 Using Dynamic Images in JavaScript 186 Working with the images Array 187 Preloading Images 188 Creating Rollovers 188 Workshop: Creating a Simple Animation 190 Creating the Images 190 Creating the HTML Document 191 Defining the Variables 191 Stepping... studying in a single 24- hour period, you may have what it takes to be a computer book author.) 2 Sams Teach Yourself JavaScript in 24 Hours Q&A, Quiz, and Exercises At the end of each hour’s lesson, you’ll find three final sections Q&A answers a few of the most common questions about the hour’s topic The Quiz includes three questions to test your knowledge, and the Exercises offer ways for you to gain... this book introduces the concept of Web scripting and the JavaScript language It also describes how JavaScript, Java, and other Web languages fit into the scheme of things The following topics will be covered in this hour: • What Web scripting is, and what it’s good for • How scripting and programming are different (and similar) 6 Hour 1 • What JavaScript is • How to include JavaScript commands in a Web... require the interpreter (in JavaScript s case, usually a browser) in order to work Introducing JavaScript JavaScript was developed by Netscape Communications Corporation, the makers of the popular Netscape Web browser JavaScript was the first Web scripting language to be introduced, and it is still by far the most popular JavaScript was originally called LiveScript and was first introduced in Netscape . St.,Indianapolis,Indiana,4 6240 USA Michael Moncur JavaScript in 24 Hours Teach Yourself 00 0672 3240 67 fm 5/16/02 12:17 PM Page i Sams Teach Yourself JavaScript in 24 Hours Copyright © 2002 by Sams. Messages in Internet Explorer 243 Alert Messages and the Status Line 244 Using Comments 244 Other Debugging Tools 245 Creating Error Handlers 245 Using the onerror Property 245 Displaying Information. Debugging JavaScript Applications 239 Avoiding Bugs 240 Using Good Programming Practices 240 Avoiding Common Mistakes 240 Basic Debugging Tools 242 Netscape’s JavaScript Console 242 Displaying

Ngày đăng: 28/04/2014, 17:07

Từ khóa liên quan

Mục lục

  • Sams Teach Yourself JavaScript in 24 Hours

    • Copyright © 2002 by Sams Publishing

    • Contents at a Glance

    • Contents

    • About the Author

    • We Want to Hear from You!

    • Introduction

      • How to Use This Book

      • Q&A, Quiz, and Exercises

      • This Book’s Web Site

      • PART I Getting Started

        • HOUR 1 Understanding JavaScript

          • Learning Web Scripting Basics

          • How JavaScript Fits into a Web Page

          • Browsers and JavaScript

          • Alternatives to JavaScript

          • Summary

          • Q&A

          • Quiz

          • Exercises

          • HOUR 2 Creating a Simple Script

            • Tools for Scripting

            • What Time is It?

            • Beginning the Script

            • Adding JavaScript Statements

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan