Implementation of the effect similar to WindowsXP in the Web

zhaozj2021-02-16  53

It is the screen turning black. This effect is found when browsing ZTBBS, feeling good cool, so I found code and looked at it. The main technical key is to master the CSS filter. There is also the basic JavaScript Document object. First, I will find out that the Document object is in the Navigator browser, and the Document document object is the core is the most important. See below: Links Anchor Form Method ProP Link Object Anchor Object Form Object Method Objects The main role of the Document object is to package these basic elements (such as links, Anchor, etc.) to provide programmers. From another perspective, the Document object is composed of attributes and methods. 1. Three main objects in Document are mainly three most important objects such as Links, Anchor, Form: (1) Anchor Anchor Object: Anchor Objects refer to Identify the object generated when there is existence in the HTML source code. It contains the ANCHORS information in the document. (2) Linking the LINKS object LINK object refers to an element that connects a hypertext or hypermedia as a specific URL using

with onchnge events (when The form content is changed when the form is changed. The first use of the form name identifies my, the second use of the form array forMs []. Its effect is consistent.

2. Attribute attribute in the document object, the Attribute property in the Document object, which is mainly used to control the format of the color and the Document title, the URL of the document title, the document original file, and the date of the document title, and the documentation update. The main mean of this part of the element is as follows: (1) Link color: ALINKCOLOR This element is mainly used, when elective link, the color of the link object itself is specified by AlinkColo R. (2) Link Color: LinkColor When the user uses after the Text String ... in the HTML document, the number of forms created in the HTML document, by length Specify. Reflect the number of forms created in this document via Document.Forms.Length. (2) Anchor property: Anchors This property contains all the statement identifiers of all the labeled Name = .... The number of all anchors is saved in Document.Anchors.Length. (3) Link Properties: The LINKS link attribute refers to the number of specified by HREF = ... in the document, and the number of links is stored in Document.Links.Length.

Third, example

Example 1: Let's explain the integrated application of document objects through an example. The output results are shown in Figure 6-2. Please enter the data: Link to the first text
link to the second text Link to the third text
First anchor point Second anchor The third anchor point