|
|||
| week 11b - gif animations, dynamic HTML, css, layers | |||
dynamic HTML : |
|
|
| introduction : |
Dynamic HTML (DHTML) is the general term for a suite of new HTML features available in the 4.0 and later web browsers. These features enable the web designer to control the web page layout and formatting, to a greater degree than was possible with previous versions of HTML. This control includes:
|
|
| Cascading Style Sheets : |
CSS - style definitions applied across a document or entire site Cascading Style Sheets (CSS) are definitions that can revise the style of an existing tag, or define a new style that can be applied to other tags, with complete control over text format. A style sheet can be inside a web page, or it can be an external file which all the pages in a web site link to. This linking is very powerful, because it enables the web designer to revise the external style sheet and see the changes automatically reflected across the entire site.
|
|
| layers : |
a way to position content on a page Layers are boxes that can be positioned anywhere on the page, and contain anything that can be put in a normal web page. Layers can
|
|
| JavaScript |
JavaScript is a programming language that is interpreted by the browser. This language can control elements on the page, and respond interactively to the user. JavaScript is a computer programming language, and is beyond the scope of this course. Fortunately, applications like Dreamweaver can automatically write JavaScript for you. Some things that can be done with JavaScript are:
|
|
cascading style : sheets : |
|
|
| introduction : |
Cascading Style Sheets (CSS) are part of DHTML (Dynamic HTML) introduced in the 4.0 browsers. They enable the web designer to create text styles with characteristics such as font, size, and color. For example, the following text is enclosed in a new style class called "coolstyle" which has the following characteristics defined: font, size, bold, text color, background color, and underline. Some text that's inside my new coolstyle styleAnother example is on this page, which shows how the <A> tag for links has been redefined using css to have no underline. Link to Apple article on problems with CSS in Microsoft IE
|
|
| CSS features: |
Cascading Style Sheets are style definitions that can revise the style of an existing tag, or define a new style that can be applied to other tags, with complete control over text format. A style sheet can be inside a web page, or it can be an external file which all the pages in a web site link to. This linking is very powerful, because it enables the web designer to revise the external style sheet and see the changes automatically reflected across the entire site.
|
|
| CSS HTML : |
The definition in the <head> section for coolstyle is: < style type="text/css">< !-- .coolstyle { font-family: "Courier New", Courier, mono; font-size: 12px; font-style: italic; font-weight: bold; border: 1px dotted #000000; color: #FFFF00; background-color: #99CC66; } --> < /style> One method for applying the style to text is: <span class="coolstyle">text to be be styled</span>
|
|
| creating styles
in : Dreamweaver : |
|
|
| applying CSS : |
Note: CSS styles may not apply as expected to text inside of tables. You should preview in both Netscape and Explorer to verify that the text is formatting correctly. If not, you may have to apply the style to the table or the text within the table. Note also that you can convert (in most cases) a web page with style sheets to traditional, HTML 3.0 compatible format by selecting FILE>CONVERT>3.0 BROWSER COMPATIBLE, and selecting CSS STYLES TO HTML MARKUP. Dreamweaver will create a new page that is as close as possible as the original, but that uses only HTML markup. Note that some CSS formatting (such as leading) cannot be converted to standard HTML.
|
|
| creating a hover state : | Many websites now use links that display no underline, but when the user rolls over the link, the underline shows. This is achieved using the "hover" feature of CSS.
An interesting alternative to the underline is to set the hover state to have a dotted underline. To do this, don't use text decoration>underline, instead:
|
| all materials on this web site © copyright 2003, Philip van Allen |
top |