Приглашаем посетить
Scripting Individual Elements
Chapter 9
Scripting Individual Elements
Chapter 8, "Scripts and Elements," introduced scripting elements in
Dynamic HTML. While every element in an HTML document is accessible to
scripts, this chapter focuses on techniques for programming a few of the elements
that appear most commonly in scripts. Chapter 10, "Forms and Intrinsic
Controls," describes techniques for programming elements in forms.
The following topics are covered in this chapter:
- Programming the Body and Frameset
elements HTML defines two types of documents: documents with Body elements for
displaying contents, and documents with Frameset elements for
dividing the screen into frames for loading other documents. This
section introduces techniques for manipulating these elements.
- Programming the Anchor
element Anchor elements serve a dual purpose in HTML: as links that navigate to new pages, and as
bookmarks that act as destinations. This section discusses how to
manipulate both types of Anchor elements and how to add custom
behavior to them.
- Programming the Link
element The Link element is used to define relationships between documents. Microsoft Internet Explorer 4.0 supports the Link element for specifying linked
style sheets. This section shows you how to define and take advantage
of custom relationships between documents.
- Programming the Image and Map
elements Dynamic HTML exposes a rich object model for manipulating images and
image maps. New images can be loaded in the background so that
they can be displayed instantly, and image maps can be
dynamically modified and scaled.
- Programming the Marquee
element The Marquee element is currently an Internet Explorer-specific feature used to
automatically scroll a block of text. The Marquee element can be
customized and manipulated using the Dynamic HTML object model.
- Programming the Object
element The Object element is used to embed custom contents, including ActiveX controls and
Java applets, in the HTML document. The custom contents can
expose a customized object model alongside that of the Object
element. This section shows you how to access this object model.
- Programming the Table
element Tables are used for two purposes: displaying tabular data in a gridlike format, and creating a sophisticated layout. This section discusses the relationship
between the underlying HTML for the table and the object
model representation.
[Содержание]