![]() |
Document Object Model![]() ![]() ![]() ![]() ![]()
First DHTML needs a way to look at the document. When you work with static HTML, the browser looks at the entire document, interprets it, and is finished with it. It begins and ends life as a text file filled with display instructions. With Dynamic HTML, the document takes on a structure of its own, which is called the Document Object Model (DOM).
As the browser encounters each element on the page, it notes what the element is and where it is and places it in a stack with similar elements. In this way, it can keep track of everything on the page, from the smallest <H6> heading and <HR> horizontal rule, to all of the elements on a form. In essence, the browser creates a database each time a page is loaded, and each tag becomes a record in the database. Controlling the Document with Scripts Next, DHTML needs a way to control how the different elements of the documents are controlled. This is accomplished through scripting languages, such as JavaScript or VBScript. Dynamic HTML is about grabbing hold of any element on the page, at any time after the page has downloaded, and changing its appearance, content, or location on the page.
|
|
Domain NamesDHTML Document Object Model Features of Dynamic HTML HTML Versus DHTML Netscape's Vision of DHTML Microsoft Vision of DHTML Cascading Style Sheets(CSS) Inline Style Sheets Embedded Style for a Page Linked Cascading Style Sheet Text Specific Style AttributesCSS Attributes Assigning Classes Java Script Style Sheets(JSSS) Object Property Functions Methods
Creating Style Sheets with JSSS New JSSS Methods Working Layers Positioning the Layer Using More than One Layer Moving a Layer Around on the Page Events
The mouseOver and mouseOut Events The mouseMove Event The Keyboard Events The mouseDown and mouseUp Events The dragDrop Event Error Event Form Event The Script Tag Changing Text Color Inline Text Attribute Changes Text Dynamically Changing StylesExample of Dynamically Changing Style Dynamically Changing Content HTML Replacement Changing Text Content An Example of HTML Graphics ReplacementWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |