Code Samples for Dynamic HTML: A Primer

Chapter 1 - The Problem of Interactivity

5 - Server-Side Include: Main file Included file
8 - CGI Script (Source)
10 - JavaScript
13 - VBScript (IE)

Chapter 2 - HTML: The Structures behind the Problem

23 - Page without styles
24 - Page with style sheet (requires Internet Explorer 3.0 or 4.0, or Netscape Communicator 4.0)

Chapter 3 - Getting Started with Dynamic HTML

35 - Example (IE 4.0)

Chapter 4 - Making the Objects Dance

43 - Blink - JavaScript (IE 4.0)
44 - Blink - VBScript (IE 4.0)
47 - Blinking Position (IE 4.0)
49 - Blinking (IE 4.0 - Now works!)
51 - Layers (IE 4.0)
62 - Images Demo (IE 4.0)
66 - TextRange Introduction (IE 4.0)

Chapter 5 - Something’s Happening: Events

72 - Microsoft Event Object (IE 4.0 - Updated!)
73 - Netscape Event Object (Netscape 4.0)
76 - onclick
76 - ondblclick (IE 4.0)
77 - onmousedown (IE 4.0 - Updated!)
78 - onmousemove (IE 4.0 - Updated!)
79 - onmouseout (IE 4.0 - Updated!)
80 - onmouseover (IE 4.0 - Updated!)
81 - onmouseup (IE 4.0 - Updated!)
82 - onabort
83 - onerror
83 - onload
84 - onreadystatechange (IE 4.0)
85 - onunload
86 - onblur
87 - onchange
88 - onfocus (IE 4.0 - Updated!)
88 - onreset
89 - onselect
90 - onsubmit
91 - onbounce (IE)
92 - onfinish (IE)
92 - onstart (IE)
93 - onhelp (IE 4.0)
94 - onkeydown (IE 4.0)
94 - onkeypress (IE 4.0)
95 - onkeyup (IE 4.0)
96 - onscroll (IE 4.0 - Updated!)
97 - ondragdrop (Netscape 4.0)
97 - onmove (Netscape 4.0)
98 - onresize (Netscape 4.0)
100 - Event Bubbling (IE 4.0)

Chapter 6 - Control or be Controlled: Controls and Applets

110 - Movie Demonstration (IE 4.0)
119 - Java source Code - First LiveConnect Demo
120 - LiveConnect Demo (Netscape 3.0/4.0, IE 3.0/4.0)
123 - Java source Code - Second LiveConnect Demo
124 - LiveConnect Demo (Netscape 3.0/4.0, IE 4.0!)

Chapter 7 - Interactive Documents I: Letting the User In

128 - TextRange Outline (IE 4.0)
131 - Style Outline (IE 4.0)
135 - Styles and Naming Convention Outline (IE 4.0)
142 - Pop-up menu (IE 4.0 - Updated!)
147 - Rabbit following cursor (IE 4.0 - Updated!)
150 - Dragging example (IE 4.0 - Updated!)
153 - Drag-and-drop (IE 4.0 - Updated!)
158 - Client-side image maps (IE 4.0)
162 - Puzzle (IE 4.0)

Chapter 8 - Interactive Documents II: Changing Document Content

Please note: This entire chapter has been updated. The page numbering below is for the examples as used in the first printing of the book.

176 - Testbed (IE 4.0)
177 - Replacing text (IE 4.0)
178 - Replacing HTML (IE 4.0)
180 - Moving (IE 4.0)
183 - Search (IE 4.0)
184 - Full Search (IE 4.0)
185 - Search and Replace (IE 4.0)
188 - Parents (IE 4.0)

Chapter 9 - Interactive Documents III: Communicating with the User

196 - Frames Example (IE 4.0)
199 - Windows Example (IE 4.0)
204 - Comic Strip Example (IE 4.0)
208 - Non-functional Eliza (IE 4.0 - Updated!)
215 - Eliza (IE 4.0 - Updated!)

Chapter 10 - Multimedia Effects

Please note: This chapter has been thoroughly updated. The page numbering below is for the examples as used in the first printing of the book.

223 - Transition (IE 4.0)
226 - Filters (IE 4.0)
230 - Paths (IE 4.0)
232 - Structured Graphics (IE 4.0)
235 - Sequencer (IE 4.0)

Chapter 11 - Data Binding

257 - Class List TDC Demo (IE 4.0)
258 - Sorting and Filtering with TDC (IE 4.0 - Updated!)
261 - Limiting Views with TDC (IE 4.0)

Chapter 12 - Layers upon Layers: Netscape Tools for Dynamic HTML

277 - Client-side include (Netscape 4.0)
281 - Hiding Information v.1 (Netscape 4.0)
286 - Hiding Information v.2 (Netscape 4.0)
291 - Comic Strip (Netscape 4.0)
293 - Sine curve animation (Netscape 4.0)
295 - Drag-and-Drop (Netscape 4.0)
301 - Clipping (Netscape 4.0)

Appendix A - Browser Detection

317 - Browser Detection

Back to the index