Book Description
With this second edition of the popular DOM Scripting: Web Design with JavaScript and the Document Object Model comes a modern revision to update best practices and guidelines. It includes full coverage of HTML5 in a new, dedicated chapter, and details on JavaScript libraries and how they can help your scripting.
The book provides everything you’ll need to start using JavaScript and the Document Object Model to enhance your web pages with client-side dynamic effects and user-controlled animation. It shows how JavaScript, HTML5, and Cascading Style Sheets (CSS) work together to create usable, standards-compliant web designs. We’ll also cover cross-browser compatibility with DOM scripts and how to make sure they degrade gracefully when JavaScript isn’t available.
DOM Scripting: Web Design with JavaScript and the Document Object Model focuses on JavaScript for adding dynamic effects and manipulating page structure on the fly using the Document Object Model. You’ll start with a crash course in JavaScript and the DOM, then move on to several real-world examples that you’ll build from scratch, including dynamic image galleries and dynamic menus. You’ll also learn how to manipulate web page styles using the CSS DOM, and create markup on the fly.
If you want to create websites that are beautiful, dynamic, accessible, and standards-compliant, this is the book for you!
What you’ll learn
- Apply dynamic behavior to your pages without inserting JavaScript in your markup
- Write scripts that degrade gracefully when JavaScript isn’t available
- Use web standards to ensure cross-browser compatibility
- Harness the power of the DOM to create user-controlled animation
- Also includes an introduction to Ajax
Who this book is for
This book is for web developers wanting to expand their knowledge of the DOM to add interactivity and functionality to their web pages.
Table of Contents
Chapter 1. A Brief History of JavaScript
Chapter 2. JavaScript Syntax
Chapter 3. The Document Object Model
Chapter 4. A JavaScript Image Gallery
Chapter 5. Best Practices
Chapter 6. The Image Gallery Revisited
Chapter 7. Creating Markup on the Fly
Chapter 8. Enhancing Content
Chapter 9. CSS-DOM
Chapter 10. An Animated Slideshow
Chapter 11. HTML5
Chapter 12. Putting It All Together
Chapter 13. DOM Scripting Libraries
中文:
书名:DOM Scripting, 2nd Edition
With this second edition of the popular DOM脚本:使用JavaScript和文档对象模型进行Web设计 进行了现代修订,以更新最佳实践和指南。它在新的专门章节中全面介绍了HTML5,并详细介绍了JavaScript库以及它们如何帮助您编写脚本。
这本书提供了一切你将需要开始使用的脚本和文档对象模型,以增强您的网页与客户端的动态效果和用户控制的动画。它展示了如何结合使用JavaScript、HTML5和层叠样式表(Cascading Style Sheet,CSS)来创建可用的、符合标准的Web设计。我们还将讨论跨浏览器与DOM脚本的兼容性,以及如何确保它们在JavaScript不可用时正常降级。
DOM脚本:使用JavaScript和文档对象模型进行Web设计 重点介绍了使用文档对象模型动态添加动态效果和操作页面结构的Java脚本。您将从一堂关于Java和DOM的速成课程开始,然后转到您将从头开始构建的几个真实世界的示例,包括动态图像库和动态菜单。您还将学习如何使用CSSDOM操作网页样式,以及如何动态创建标记。
如果你想创建漂亮、有活力、易访问的网站, 和 st和ards-compliant, this is the book for you!
你会学到什么
- 将动态行为应用于页面,而无需在标记中插入JavaScript
- 编写脚本,以便在JavaScript不可用时正常降级
- Use web st和ards to ensure cross-browser compatibility
- Harness the power of the DOM to create user-controlled animation
- Also includes an introduction to Ajax
Who this book is for
这本书是为想要扩展他们的DOM知识的Web开发人员而写的,以便为他们的Web页面增加互动性和功能。
目录表
Chapter 1. A Brief History of JavaScript
Chapter 2. JavaScript Syntax
Chapter 3. The Document Object Model
Chapter 4. A JavaScript Image Gallery
Chapter 5. Best Practices
Chapter 6. The Image Gallery Revisited
Chapter 7. Creating Markup on the Fly
Chapter 8. Enhancing Content
第9章.CSS-DOM
Chapter 10. An Animated Slideshow
第11章.HTML5
Chapter 12. Putting It All Together
Chapter 13. DOM Scripting Libraries
评论前必须登录!
注册