1. Trang chủ
  2. » Công Nghệ Thông Tin

Simply JavaScript ppt

150 241 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 150
Dung lượng 3,04 MB

Nội dung

[...]... Simply JavaScript (www.sitepoint.com) 363 364 375 378 Simply JavaScript xv Retrieving Computed Styles 379 The Complete Library 379 Index 387 Order the print version of this book to get all 400+ pages! Simply JavaScript (www.sitepoint.com) Preface On the surface, JavaScript. .. http://www.sitepoint.com/books /javascript1 /errata.php Simply JavaScript (www.sitepoint.com) Simply JavaScript xxi The SitePoint Forums If you’d like to communicate with other web developers about this book, you should join SitePoint’s online community.3 The JavaScript forum,4 in particular, offers an abundance of information above and beyond the solutions in this book, and a lot of fun and experienced JavaScript developers... But you knew all that, right? This is a JavaScript book, after all, so let’s talk about the JavaScript that goes into your pages JavaScript for Behavior As with CSS, you can add JavaScript to your web pages in a number of ways: ■ You can embed JavaScript code directly in your HTML content: ■ You can include JavaScript code at the top of your HTML... 8 JavaScript for Behavior 9 The Right Way 11 JavaScript Libraries 11 Let’s Get Started! 12 x Simply JavaScript Chapter 2 Programming with JavaScript 13 Running a JavaScript Program ... concepts introduced in this 1 http://www.sitepoint.com/books/html1/ Simply JavaScript (www.sitepoint.com) Simply JavaScript xix chapter—statements, variables, expressions, loops, functions, and objects—are the building blocks for every JavaScript program you’ll ever write Chapter 3: Document Access While certain people enjoy writing JavaScript code for its own sake, you wouldn’t want to run into them... simpler syntax: JavaScript code here ■ You can put your JavaScript code in a separate file, then link to that file from as many HTML documents as you like: ⋮ script.js (excerpt) JavaScript code here Guess which method you should use Writing JavaScript that enhances usability... tag: -JavaScript code here // > ⋮ Order the print version of this book to get all 400+ pages! 10 Simply JavaScript CDATA? If you’re wondering what all that gobbledygook is following the tag and preceding the tag, that’s what it takes to legitimately embed JavaScript in an XHTML document... Layers of the Web A big part of learning JavaScript is learning when it’s the right tool for the job, and when ordinary HTML and CSS can offer a better solution Before we dive into learning JavaScript, we’ll take a little time to review how to build web sites with HTML and CSS, and see just how JavaScript fits into the picture Chapter 2: Programming with JavaScript JavaScript is a programming language... the confidence not only to write JavaScript code of your own, but to understand code that was written by others, and even to spot harmful, old-fashioned code that's more trouble than it’s worth! Throughout this book, we’ve tried to go the extra mile by giving you more than just the basics In particular, we’ve covered some of the new JavaScript- powered devel- xviii Simply JavaScript opment techniques—like... or an extended discussion whenever I’m stuck: Derek Featherstone, Dustin Diaz, Jonathan Snook, Jeremy Keith, Peter-Paul Koch, and Dan Webb 5 http://www.sitepoint.com/newsletter/ Simply JavaScript (www.sitepoint.com) Simply JavaScript xxiii Conventions Used in this Book You’ll notice that we’ve used certain typographic and layout styles throughout this book to signify different types of information . Looking Forward 345 A. The Core JavaScript Library 363 SIMPLY JAVASCRIPT BY KEVIN YANK & CAMERON ADAMS Simply JavaScript by Kevin Yank and Cameron. this book to get all 400+ pages! xvSimply JavaScript Simply JavaScript (www.sitepoint.com) Preface On the surface, JavaScript is a simple programming language

Ngày đăng: 17/03/2014, 21:21