Designing with JavaScript, 2/e (Paperback)

Nick Heinle, Bill Pena

  • 出版商: O'Reilly
  • 出版日期: 2002-01-11
  • 定價: $1,180
  • 售價: 2.5$299
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 156592360X
  • ISBN-13: 9781565923607
  • 相關分類: JavaScript
  • 立即出貨(限量)



JavaScript is one of the core technologies of the Web. Using JavaScript, you can create dynamic, interactive web pages that include image rollovers, pop-up windows, auto-scrolling frames, intelligent forms, and sophisticated Dynamic HTML effects. Even better, you don't have to be a programming ace to learn enough JavaScript to incorporate these elements into your web pages.

Designing with JavaScript shows you how to create the effects you want, without forcing you to wade through pages of dry programmer-speak about variables, operators, and functions. Each chapter demonstrates common JavaScript techniques and explains how to customize them for your own use. Along the way, it introduces basic JavaScript concepts, teaching the language in the context of real-world examples. By the time you finish this book, you'll have a solid foundation of JavaScript knowledge that you can apply to your own web pages.

With Designing with JavaScript, you will learn to:

  • Use JavaScript to produce visual effects, such as image rollovers and rotating billboards
  • Launch new browser windows, control frames, and validate form data
  • Customize your site by using JavaScript to detect browsers, platforms, and plug-ins
  • Use cookies to keep track of visitors, so you can welcome new users while offering customized pages to returning users
  • Create a tabbed folder interface, drop-down menus, and a scrolling headline ticker, using the basics of Dynamic HTML

The first edition of Designing with JavaScript taught tens of thousands of web designers how to enliven their pages with JavaScript. This new edition has been updated to cover the latest JavaScript techniques supported by current web browsers. If you are ready to start incorporating JavaScript into your designs, this is the book for you.

Table of Contents



1. Diving into JavaScript
     Adding descriptive links
     Night and day

2. Doing Windows
     Window basics
     Launching new windows
     Remote control

3. Controlling Frames
     The toolbar design
     Rotating pages
     QuickTime VR on a budget

4. Forms and Validation
     Getting to know that form
     Stop that form!
     Is that really your email?
     Validate this!

5. Getting in Line with Arrays
     The array concept
     Being unpredictable
     Doing the date right
     Jumpin' jive

6. Too Many Browsers? Not Really
     What browser is that knocking at my door?
     Different browsers, different needs
     Style differences
     Checking for plug-ins
     Beyond the browser

7. Dynamic Images
     Image basics
     Image rollovers
     Multiple rollovers
     An image billboard

8. Customizing a Site with Cookies
     What's a cookie?
     Basic cookie operations
     A welcome for new visitors
     Forms that remember
     Customized pages

9. Dynamic HTML
     What is DHTML?
     The Document Object Model
     Dynamic Cascading Style Sheets
     Getting acquainted with layers
     Browser detection

10. Interactive DHTML Techniques
     Drop-down menus
     Sliding tabs
     Scrolling layers with clipping

11. Advanced Applications
     Object-oriented scripting
     The quiz: testing your readers
     Relational menus
     A cross-browser style object
     Moving on

A. Common JavaScript Objects

B. Event Handlers

C. Style Properties

D. JavaScript Syntax






- 使用JavaScript產生視覺效果,如圖像滑鼠懸停和旋轉廣告牌
- 啟動新的瀏覽器窗口,控制框架和驗證表單數據
- 通過使用JavaScript檢測瀏覽器、平台和插件來自定義您的網站
- 使用Cookie跟踪訪問者,以便歡迎新用戶並為返回用戶提供定制頁面
- 使用動態HTML的基礎知識創建標籤文件夾界面、下拉菜單和滾動標題新聞,等等。




1. 深入JavaScript
- 添加描述性鏈接
- 日夜切換

2. 操作窗口
- 窗口基礎知識
- 啟動新窗口
- 遠程控制

3. 控制框架
- 工具欄設計
- 頁面旋轉
- 低成本的QuickTime VR

4. 表單和驗證
- 熟悉表單
- Madlibs
- 停止表單提交
- 那真的是你的電子郵件嗎?
- 驗證表單

5. 使用數組排隊
- 數組概念
- 不可預測性
- 正確處理日期
- 跳躍舞曲

6. 多種瀏覽器?其實不然
- 是什麼瀏覽器在敲我的門?
- 不同的瀏覽器,不同的需求
- 樣式差異
- 檢查插件
- 超越瀏覽器

7. 動態圖像
- 圖像基礎知識
- 圖像滑鼠懸停
- 多個滑鼠懸停
- 圖像廣告牌

8. 使用Cookie自定義網站
- 什麼是Cookie?
- 基本的Cookie操作
- 歡迎新訪問者
- 記住表單
- 定制頁面

9. 動態HTML
- 什麼是DHTML?
- 文檔對象模型
- 動態HTML