商品簡介
Even though I've been hand-coding JavaScript for twelve years, I haven't forgotten what it's like to be just starting out. With this in mind, I wrote this book in a friendly, conversational style for web designers new to both JavaScript and programming. I assume a familiarity with HTML and CSS, but nothing more. I'm also aware that just passively staring at code samples in a book is no way to learn how to program.
So, as we explore ECMAScript, a standard defining JavaScript's core syntax, and DOM, a standard providing features for working with HTML, CSS, and events, you will enter and run hundreds of code snippets to see exactly how the techniques you're learning work in the real world. All this will be done in the safety of the JavaScript console of Firebug, a free add-on to Firefox for PC, Mac, or Linux. Then in the last two chapters of the book, you'll leave the nest and handcode a real-world application in your preferred text editor. That application will contain features like drag-and-drop, animated scrolling, sprites, and skin swapping. Moreover, it will dynamically add five galleries either by way of Ajax and data encoded JSON, XML, and HTML, or by dynamic script insertion and JSON with Padding (JSON-P). Don't worry if that sounds a bit bewildering now, it'll all make sense soon enough!
Finally, You'll make your script snappier, by incorporating leading-edge optimizations, such as advance conditional definition, lazy loaders, reverse loops, closure, minimizing reflows, and thread yielding. And even some new features from DOM3 and HTML5 that Explorer, Firefox, Safari, and Opera now implement. So, by the end of the book, you will know how to hand-code ultra-responsive interfaces. And You'll have the kinds of JavaScript tools in your pocket that employers crave.
作者簡介
Terry McNavage has been programming with JavaScript for 14 years and is the author of "JavaScript for Absolute Beginners" (Apress, December 2010). In addition, Terry is an elite runner, typically running 100 or more miles per week, and a bit of a food geek. Like Brendan Eich, JavaScript's creator, Terry is from Pittsburgh, Pennsylvania. So he's hoping the Pirates raise the Jolly Roger more often than not in 2012 rather than notch their 20th losing season in a row.