DOM Scripting, 2/e : Web Design with JavaScript and the Document Object Model Paperback)

Jeremy Keith, Jeffrey Sambells

  • 出版商: Friends of Ed
  • 出版日期: 2010-12-29
  • 售價: $2,430
  • 貴賓價: 9.5$2,309
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 1430233893
  • ISBN-13: 9781430233893
  • 相關分類: JavaScript網頁設計
  • 無法訂購

買這商品的人也買了...

商品描述

In this Second Edition of the popular DOM Scripting: Web Design with JavaScript and the Document Object Model, comes a modern revision to include current best practices and guidelines. There is also full coverage of HTML5 in a new, dedicated chapter, and details on JavaScript libraries and how they can help your scripting.

The book gives you everything you 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 you 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 your 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 off by receiving 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 mark-up on the fly.

This book is perfect for your needs if you want to create websites that are beautiful, dynamic, accessible - and standards compliant!

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

  1. A Brief History of JavaScript
  2. JavaScript Syntax
  3. The Document Object Model
  4. A JavaScript Image Gallery
  5. Best Practices
  6. The Image Gallery Revisited
  7. Creating Markup on the Fly
  8. Enhancing Content
  9. CSS-DOM
  10. An Animated Slideshow
  11. HTML5
  12. Putting It All Together
  13. DOM Scripting Libraries

商品描述(中文翻譯)

在這本廣受歡迎的《DOM Scripting: 使用JavaScript和文件物件模型進行網頁設計》第二版中,我們提供了現代化的修訂,包括當前的最佳實踐和指南。全新的專門章節中還包含了對HTML5的全面介紹,以及JavaScript庫的詳細信息以及它們如何幫助您的腳本編寫。

這本書為您提供了一切開始使用JavaScript和文件物件模型來增強您的網頁,實現客戶端動態效果和用戶控制的動畫所需的知識。它向您展示了JavaScript、HTML5和層疊樣式表(CSS)如何共同創建可用、符合標準的網頁設計。我們還將介紹如何實現DOM腳本的跨瀏覽器兼容性,以及在JavaScript不可用時如何優雅地降級。

《DOM Scripting: 使用JavaScript和文件物件模型進行網頁設計》專注於使用JavaScript添加動態效果和通過文件物件模型操作頁面結構。您將首先接受JavaScript和DOM的速成課程,然後進行幾個從頭開始構建的實際示例,包括動態圖片庫和動態菜單。您還將學習如何使用CSS DOM來操作網頁樣式,並動態創建標記。

如果您想創建美觀、動態、可訪問且符合標準的網站,這本書非常適合您的需求!

您將學到什麼:
- 在不在標記中插入JavaScript的情況下,將動態行為應用於您的網頁。
- 當JavaScript不可用時,優雅地降級腳本。
- 使用Web標準確保跨瀏覽器兼容性。
- 利用DOM的功能創建用戶控制的動畫。
- 還包括Ajax的介紹。

這本書適合對DOM想要擴展知識,為網頁添加互動性和功能的網頁開發人員。

目錄:
1. JavaScript的簡要歷史
2. JavaScript語法
3.文件物件模型
4. JavaScript圖片庫
5.最佳實踐
6.圖片庫再訪
7.動態創建標記
8.增強內容
9.CSS-DOM
10.動畫幻燈片
11.HTML5
12.將所有內容結合起來
13.DOM Scripting庫