Method for implementing dynamic change layer in page
An implementation method and dynamic change technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of not being able to dynamically change the display effect, and achieve the effect of enhancing the sense of interaction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] This embodiment uses dynamically changing the position and size of a layer as an example to describe in detail:
[0021] In the HTML file that defines the web page, add the definition layer Label, (other identifiers can also be used, such as: Tag) In this tag, the size and position attributes of the layer are defined in HTML language, and default values can be assigned to these attributes initially. In order to be able to distinguish this label from labels for other purposes, give the A tag defines a unique ID, that is, the ID can be used to locate the corresponding tag in the file.
[0022] In order to be able to operate on the attribute value of the layer defined in the file, when the layer on the captured web page is changed, locate the div> tag of the layer defined in the file according to the ID identifier, and then pass the changed attribute value to the tag corresponding attributes.
[0023] For the dynamic movement of the layer: when the page is generat...
Embodiment 2
[0033] This embodiment takes the dynamic change of layer style as an example to describe in detail:
[0034] Define the style design materials required by the middle layer of the webpage into a Cascading Style Sheets (CascadingStyle Sheets, CSS) file, and define each style into a CSS file. Multiple CSS files can be defined as needed.
[0035] In the HTML file that defines the web page, add the definition layer tag, in which the style of the layer is defined in HTML language, a default style can be specified initially, and the path and file name of the CSS file corresponding to the default style are assigned to the property. In order to be able to distinguish this label from labels for other purposes, give the A tag defines a unique ID, that is, the ID can be used to locate the corresponding tag in the file.
[0036] When generating a web page, a selection list is generated, which contains all CSS files of defined layer styles. When the user's mouse slides to a specific a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 