Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Internet technologies(1,2,3 задание в одном документе).docx
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
272 Кб
Скачать
☆

2. Dhtml version

Although the description of some objects is not defined in any standard, popular browsers implement the basic capabilities in the same way.

window is a top-level object that describes the browser window. To its members it is possible to address directly, i.e. instead of window.location, you can just location. The rest of the objects are part of the window;

navigator - an object that describes the properties of the browser;

screen - an object describing the user's screen;

history - an object that describes the history of page loads;

location - an object describing the address of the page, protocol, etc .;

document is an object describing the current HTML page. The methods getElementById (), getElementsByName (), getElementsByTagName () let you access any element of the page by its id, or find it in an array of elements with the specified name (the name attribute) or in an array of elements with the specified tag name. In other words, this object corresponds to the document w3c standard. However, it has its html extensions as an array of bookmark anchors.

event - an object describing the state of the last event (for IE compatible).

Other objects represent different page elements and are created automatically after processing the corresponding tag.

DHTML Handbook

Document object

This object is the root element and represents the current HTML page.

properties

anchors - an array of bookmarks defined on the page (ie elements <a name = "...");

forms - an array of forms defined in the document;

Images - array of all images of the document;

links - an array of links to the area and link objects embedded in the document;

location - Location;

cookie - cookies associated with the document;

title - the title of the document;

domain - the domain name of the document;

lastModified - the date of the last modification of the document;

URL - url of the document;

referrer - url of the document that uploaded this document.

methods

write (x) - prints HTML or JavaScript text into a document or stream;

writeln (x) - prints HTML or JavaScript text into the document, at the end a newline is added;

getElementById (x) - returns the first element whose id is x;

getElementsByName (x) - returns an array of elements named x;

getElementsByTagName (x) - returns an array of x elements.

These are the basic methods, in the object model for the document more properties and methods are defined.

3. Appendix a. Css properties (style properties), css parameters

The reference book is based on the current specification of CSS 2.1, respectively, the following list of css-properties is limited to the scope of the specification.

  • Basic properties

A list of basic properties that even a novice webmaster should know:

margin, padding, border, background-color, color, font-family, font-size, float

  • Background

The shortened version of the entry for the properties background-color, background-image, background-repeat, background-attachment and background-position.

background-attachment

Sets whether the background picture should be scrolled or should be fixed in the browser window.

background-color

Sets the background color for the item.

background-image

Sets the background image for the item.

background-position

Sets the initial position for the background image.

background-repeat

Controls the cyclic repetition of the background picture.

  • Frame (border, border)

Affect all four frames

border

A short version of the entry for the border-width, border-style and border-color properties. Affects all four boundaries of the element.

border-color

Sets the border color on all sides of the element.

border-width

Sets the thickness of the frame on all sides of the element.

border-style

Defines the style of the border around the element.

border-collapse

Specifies the table cells whether to have their own border or common with the neighboring cell.

border-spacing

Sets the distance between the cells of the table.

  • Upper frame

border-top

A short version of access to the properties border-top-width, border-top-style and border-top-color.

border-top-color

Sets the color of the upper border.

border-top-style

Sets the style of the upper border line.

border-top-width

Sets the width of the upper border.

  • Bottom frame

border-bottom

A short version of access to the properties border-bottom-width, border-bottom-style and border-bottom-color.

border-bottom-color

Sets the color of the lower border.

border-bottom-style

Sets the style of the bottom border line.

border-bottom-width

Sets the width of the bottom border.

  • Left frame

border-left

A short version of access to the properties border-left-width, border-left-style and border-left-color.

border-left-color

Sets the color of the left border.

border-left-style

Sets the line style of the left border.

border-left-width

Sets the width of the left border.

  • Right frame

border-right

A short version of access to the properties volume, border-right-style and border-right-color.

border-right-color

Sets the color of the right border.

border-right-style

Sets the style of the right border line.

volume

Sets the width of the right border.

  • Font

A short variant of recording the properties of font-style, font-variant, font-weight, font-size, line-height and font-family.

font-family

Defines the font (s) for displaying text.

font-size

Controls the font size.

font-style

Controls the slope of the font (italics).

font-variant

Controls the appearance of lowercase letters (lowercase as uppercase, "capital").

font-weight

Controls the thickness (saturation) of the font.