Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://crydee.sai.msu.ru/~vab/html.doc/dhtml/dynhtml/intro.htm
Дата изменения: Wed Aug 13 13:21:06 1997 Дата индексирования: Tue Oct 2 16:28:20 2012 Кодировка: Поисковые слова: trifid nebula |
Navigator 4 from Netscape, which is part of the Communicator product suite, includes three new areas of functionality that taken together give you Dynamic HTML. The three components of Dynamic HTML are style sheets, content positioning, and downloadable fonts. Used together, these three components give you greater control over the appearance, layout, and behavior of your web pages.
This chapter contains the following sections:
Style sheets let you specify the stylistic attributes of the typographic elements of your web page. With content positioning, you can ensure that pieces of content are displayed on the page exactly where you want them to appear, and you can modify their appearance and location after the page has been displayed. With downloadable fonts, you can use the fonts of your choice to enhance the appearance of your text. Then you can package the fonts with the page so that the text is always displayed with your chosen fonts.
Prior to the introduction of style sheets for HTML documents, web page authors had limited control over the presentation of their web pages. For example, you could specify that certain text should be displayed as headings, but you could not set margins for your pages or specify the line heights or border decoration for text.
Style sheets give you greater control over the presentation of your web documents. Using style sheets, you can specify many stylistic attributes of your web page, such as text color, margins, alignment of elements, font styles, font sizes, font weights and more. You can use borders to make certain elements stand out from the body of the content. You can specify different fonts to use for different elements, such as paragraphs, headings, and blockquotes. You can guarantee that your chosen fonts will be available on all systems by packaging them as downloadable fonts and attaching them to the web page.
In addition, you can use a style sheet as a template or "master page" so that multiple pages can use the same style sheet.
Part 1. Style Sheets, discusses the two kinds of syntax you can use for defining styles; describes how to define and use styles; discusses how to define border characteristic for block-level elements; gives the list of style properties; and presents an advanced example of the use of styles.
No longer are you constrained to use sequential content laid out linearly in your web pages. By specifying positions for blocks of HTML content, you can decide what contents goes where on the page, instead of leaving it up to the browser to lay it out for you. You could, for example, place one block of content in the top-left corner of the page, and another block in the bottom-right corner. Blocks of content can share space too, so images and text can overlap. You decide precisely where each part of the content will appear, and Navigator 4 will lay your page out exactly as you want.
Using JavaScript, you can change the layout of your page dynamically, and you can modify the page in a variety of ways after the user has opened it. You can make content vanish or appear, and you can change the color of individual parts of your page. You can incorporate animation into your web pages by moving and modifying individual parts of your HTML page on the fly.
Used together, content positioning and style sheets allow you to create web pages that use different styles in different parts of the page.
Part 2. Positioning HTML Content, discusses the two kinds of syntax you can use for positioning HTML content; describes the attributes and properties you can specify for positioned content; discusses how to use JavaScript to create and modify positioned content; and gives five complete, working examples of the use of positioned content.
Using downloadable fonts, you can attach specific fonts to your web page. As a result, your page will always be displayed with the fonts you picked out for it. No longer need you use generic fonts to make your pages look approximately similar on each platform. No longer are you subject to the vagaries of platform-specific fonts, because a downloadable font can be displayed on any platform.
To protect the rights of the font designers, the downloadable fonts are locked so that users cannot copy them and use them again. You can include your own fonts in your web documents without worrying that your readers may copy them for their own purposes.
Whether you apply font attributes directly to a piece of text or use style sheets to define the font family for different kinds of elements, you can use downloadable fonts in your web page to guarantee that the user sees your page as you want it to be seen.
Part 3. Downloadable Fonts, discusses how to create and use downloadable fonts, and how to attach them to your web page.
Last Updated: 08/07/97 15:21:44