JavaScript & DHTML Cookbook
暫譯: JavaScript 與 DHTML 食譜

Danny Goodman

  • 出版商: O'Reilly
  • 出版日期: 2003-04-01
  • 售價: $1,590
  • 貴賓價: 9.5$1,511
  • 語言: 英文
  • 頁數: 576
  • 裝訂: Paperback
  • ISBN: 0596004672
  • ISBN-13: 9780596004675
  • 相關分類: HTMLJavaScript
  • 已過版

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

相關主題

商品描述

On numerous online forums for JavaScript and DHTML, the majority of questions begin with "How do I...?" This new Cookbook provides the answers. After reading thousands of forum threads over the years, author and scripting pioneer Danny Goodman has compiled a list of problems that frequently vex scripters of various experience levels. He has now applied state-of-the-art ECMA and W3C DOM standards and used best practices to create this extensive collection of practical recipes that can bring your web pages to life.

The JavaScript & DHTML Cookbook is all about adding value to the content of a web page. The book focuses on practical and sensible applications of scripting, rather than flying images and gratuitous color changes. For every problem Goodman addresses, there's a solution or "recipe"--a focused piece of code that web developers can insert directly into their applications. Yet, rather than just cut-and-paste code, you also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to your designs.

The recipes range from simple tasks, such as manipulating strings and validating dates in JavaScript, to entire libraries that demonstrate complex tasks, such as cross-browser positioning of HTML elements and sorting tables. This book contains over 150 recipes on the following topics:

  • Working with interactive forms and style sheets
  • Presenting user-friendly page navigation
  • Creating dynamic content
  • Producing visual effects for stationary content
  • Positioning HTML elements
  • Managing browser windows and multiple frames


This book is the ideal companion to O'Reilly's JavaScript: The Definitive Guide and Dynamic HTML: The Definitive Reference. If you own either of these books, the JavaScript & DHTML Cookbook is a must.

Table of Contents

Preface

1. Strings

2. Numbers and Dates

3. Arrays and Objects

4. Variables, Functions, and Flow Control

5. Browser Feature Detection

6. Managing Browser Windows

7. Managing Multiple Frames

8. Dynamic Forms

9. Managing Events

10. Page Navigation Techniques

11. Managing Style Sheets

12. Visual Effects for Stationary Content

13. Positioning HTML Elements

14. Creating Dynamic Content

15. Dynamic Content Applications

A. Keyboard Event Character Values

B. Keyboard Key Code Values

C. ECMAScript Reserved Keywords

Index

商品描述(中文翻譯)

在許多關於 JavaScript 和 DHTML 的線上論壇中,大多數問題都以「我該如何...?」開頭。這本新的食譜書提供了答案。在多年來閱讀了數千個論壇主題後,作者及腳本先驅 Danny Goodman 編纂了一份常常困擾各種經驗水平的腳本編寫者的問題清單。他現在應用了最先進的 ECMA 和 W3C DOM 標準,並使用最佳實踐來創建這本廣泛的實用食譜集,讓您的網頁生動起來。

《JavaScript & DHTML Cookbook》專注於為網頁內容增值。這本書著重於腳本的實用和合理應用,而不是飛舞的圖像和無意義的顏色變化。對於 Goodman 所解決的每個問題,都有一個解決方案或「食譜」——一段專注的代碼,網頁開發者可以直接插入到他們的應用中。然而,這不僅僅是剪切和粘貼代碼,您還會獲得代碼如何運作的解釋,讓您能夠學會將問題解決技術應用到您的設計中。

這些食譜涵蓋了從簡單任務(例如在 JavaScript 中操作字串和驗證日期)到整個庫(展示複雜任務,例如跨瀏覽器定位 HTML 元素和排序表格)。本書包含超過 150 個食譜,主題包括:
- 處理互動式表單和樣式表
- 提供使用者友好的頁面導航
- 創建動態內容
- 為靜態內容製作視覺效果
- 定位 HTML 元素
- 管理瀏覽器窗口和多個框架

這本書是 O'Reilly 的《JavaScript: The Definitive Guide》和《Dynamic HTML: The Definitive Reference》的理想伴侶。如果您擁有這兩本書中的任何一本,《JavaScript & DHTML Cookbook》都是必備之選。

目錄
前言

1. 字串
2. 數字和日期
3. 陣列和物件
4. 變數、函數和流程控制
5. 瀏覽器功能檢測
6. 管理瀏覽器窗口
7. 管理多個框架
8. 動態表單
9. 管理事件
10. 頁面導航技術
11. 管理樣式表
12. 靜態內容的視覺效果
13. 定位 HTML 元素
14. 創建動態內容
15. 動態內容應用
A. 鍵盤事件字符值
B. 鍵盤鍵碼值
C. ECMAScript 保留關鍵字
索引