Method and system for switching page popup window of mobile terminal
A mobile terminal and switching system technology, applied in the field of a mobile terminal page pop-up window switching method and system field, can solve the problems of imperfect fixed positioning compatibility of Apple mobile phone safari browser, inability to adapt to pop-up windows, display dislocation, etc. The effect of good experience, reduced workload, and reduced performance pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] Embodiment 1 of the present invention provides a method for switching a mobile terminal page pop-up window, comprising the following steps:
[0028] S11. Define data-main and create-tan respectively, and both data-main and create-tan are at the same level of dom nodes; specifically, make data-main and create-tan two dom nodes at the same level in the html node, data-Main is the main display content of the page, and create-tan is the content of the pop-up window that needs to be operated;
[0029] S12. In the JS file, create an object show-data, make the value of the object show-data data-main or create-tan, create hidden instructions for data-main and create-tan respectively, and the hidden instructions are used to control data-main And the display or hiding of create-tan; preferably, in the absence of specific requirements, the default value of the object show-data is data-main;
[0030] S13. Define a function fn_1, and set a line parameter of the function fn_1. The f...
Embodiment 2
[0034] In order to improve the user's operating experience and the beauty of the page pop-up window, this embodiment adds animation effects on the basis of Embodiment 1, that is, this embodiment provides a method for switching a mobile terminal page pop-up window, including the following steps:
[0035] S21. Define data-main and create-tan respectively, and both data-main and create-tan are at the same level of dom nodes;
[0036]S22. In the JS file, create an object show-data, make the value of the object show-data data-main or create-tan, create hidden instructions for data-main and create-tan respectively, and the hidden instructions are used to control data-main And the display or hiding of create-tan; preferably, in the absence of specific requirements, the default value of the object show-data is data-main;
[0037] S23, define the function fn_1, set the line parameters of the function fn_1, the formal parameters are used to control the value of the object show-data, so ...
Embodiment 3
[0040] Embodiment 3 of the present invention provides a mobile terminal page pop-up window switching system, including:
[0041] The dom creation module is used to create data-main and create-tan, so that both data-main and create-tan are at the same level of dom nodes; in the dom creation module, in the html language environment, define data-main and create-tan tan, while data-main and create-tan belong to the same level of dom nodes;
[0042] The control module is used to control the display or hiding of data-main and create-tan in the page;
[0043] The parameter module is used to set the parameter button btn1 and button btn2 of the function fn_1, the button btn1 is used to control data-main, and the button btn2 is used to control create-tan. In the parameter module, it is first necessary to set the line parameters of the function fn_1, specifically: the line parameters include buttons btn1 and buttons btn2, the button btn1 is used to control data-main, and the button btn2...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com