DHTML and CSS for the World Wide Web
| Code Examples
Part 2: Dynamic HTML
10
11
12
13
14
15
16
17
Chapter 2 - CSS Basics
Adding CSS to an HTML Tag
Adding CSS to a Web Page
Adding CSS to a Web Site
(re)Defining an HTML Tag
Defining Classes to Create your Own Elements
Defining IDs to Identify an Object
Creating Your Own Inline HTML Tags
Creating Your Own Block-Level HTML tags
Defining Tags with the Same Rules
Defining Tags in Context
Making a Definition !important
Inheriting Properties from a Parent
Importing Style Sheets
Managing Existing or Inherited Properties
Determining the Cascade Order
Setting the CSS for Printing
Adding Comments to CSS
Chapter 11- The Document Object Model
Creating an Object
Understanding Event Handlers
Detecting an Event
Using Feature Sensing
The Netscape Layers DOM
The IE All DOM
The W3C ID DOM
Detecting the DOM Type
Building a Cross-Browser DOM
Using the Cross-Browser DOM
Netscape 4 and Nested Layers
Chapter 12- Learning About the Environment
Detecting the Browser's Name and Version
Detecting the Operating System
Finding the Screen's Dimensions
Finding the Number of Colors
Finding the Browser Window's Dimensions (Netscape Only)
Finding the Visible Page Dimensions
Finding the Page's Location and Title
Finding the Page's Scroll Position
Finding an Object's Dimensions
Finding an Objects Top and Left Position
Finding an Object's Bottom and Right Position
Finding an Object's 3-D Position
Finding an Object's Visibility State
Finding an Object's Visible Area
Chapter 13- Dynamic Technics: The Basics
Makeing Objects Appear and Disappear
Moving Objects from Point to point
Moving Objects By a Certain Amount
Moving Objects in 3-D
Scrolling a Web Page
Changing an Objects Visible Area
Chapter 14- Dynamic Technics: Advanced
Making a Function Run Again (...and again ... and again)
Passing an Event to a Function
Creating a Global Event Handler
Animating an Object
Finding your Location in the Window
Identyfying an Object in the Window
Dynamic Content between Frames
Moving the Browsr Window
Opening a New Browser Window
Changing a Window's Size (Netscape Only)
Chapter 15- Dynamic Technics: CSS
Changing a Definition
Changing an Object's Class
Adding a New Rule
Disabling a Style Rule
Chapter 16- Netscape Layers
Creating a Layer
Importing External Content with Netscape Layers
Accessing Layers with JavaScript
Modifying Layers with JavaScript
Providing Content for Nonlayer Browsers
Chapter 17- IE's Visual Controls
Fading Between Objects
Transitions Between Pages
Making an Element Blur
Making an Object Wave