[go: up one dir, main page]

CN114428656B - Popup window display method and device - Google Patents

Popup window display method and device Download PDF

Info

Publication number
CN114428656B
CN114428656B CN202111552027.8A CN202111552027A CN114428656B CN 114428656 B CN114428656 B CN 114428656B CN 202111552027 A CN202111552027 A CN 202111552027A CN 114428656 B CN114428656 B CN 114428656B
Authority
CN
China
Prior art keywords
attribute
target
popup window
value
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111552027.8A
Other languages
Chinese (zh)
Other versions
CN114428656A (en
Inventor
刘明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111552027.8A priority Critical patent/CN114428656B/en
Publication of CN114428656A publication Critical patent/CN114428656A/en
Application granted granted Critical
Publication of CN114428656B publication Critical patent/CN114428656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a popup window display method and device, relates to the technical field of computers, and solves the problems of high labor cost and disordered display level of popup windows caused by configuration of attribute values of stacking attributes of the popup windows by engineers. The specific scheme comprises the following steps: the popup display device obtains a target popup to be displayed on a target page, obtains at least one reference popup associated with the target page, and obtains attribute values of lamination attributes of each reference popup, increases the maximum value in the attribute values of the lamination attributes of the at least one reference popup by a preset value to obtain the attribute value of the lamination attribute of the target popup, and then displays the target popup on the target page based on the attribute value of the lamination attribute of the target popup.

Description

Popup window display method and device
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a popup window display method and device.
Background
When a user browses a web page through an electronic device, the user often encounters the situation that popup popups on the web page. The popup window is displayed on the web page through the layering property of the popup window. And presetting the attribute value of the stacking attribute of the popup window to be a larger value, so that the popup window with a large attribute value of the stacking attribute covers the popup window with a small attribute value of the stacking attribute, and the popup window is always displayed at the topmost layer of the webpage.
As business progresses, new popup windows appear to be displayed at the top layer of the web page, and attribute values of the stacking attribute of the new popup window need to be configured with larger values. Because the attribute values of the laminated attributes of the popup windows are all preconfigured by engineers, the labor cost is high, the error rate is high, and the display level of the popup windows on the webpage is disordered. The problems are particularly prominent in the scene of a large number of popup windows.
Disclosure of Invention
The disclosure provides a popup window display method and device, which solve the problems of high labor cost and disordered display level of popup windows caused by configuration of attribute values of stacking attributes of popup windows by engineers.
The technical scheme of the present disclosure is as follows:
according to a first aspect of the present disclosure, there is provided a popup window display method, the method including:
acquiring a target popup window to be displayed on a target page;
acquiring at least one reference popup window associated with the target page and an attribute value of a stacking attribute of each reference popup window;
adding a preset value to the maximum value in the attribute values of the stacking attribute of the at least one reference popup window to obtain the attribute value of the stacking attribute of the target popup window;
and displaying the target popup on the target page based on the attribute value of the stacking attribute of the target popup.
Optionally, adding a preset value to a maximum value in attribute values of the stacking attribute of the at least one reference popup window to obtain an attribute value of the stacking attribute of the target popup window, including:
and if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window.
Optionally, if the target popup window meets a preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window, including:
if the attribute information of the target popup window comprises a preset attribute, or if the attribute information of the target popup window comprises the preset attribute and the attribute value of the preset attribute is a preset attribute value, the maximum value is increased by the preset value to obtain the attribute value of the stacking attribute of the target popup window.
Optionally, the popup window display method further includes:
if the target popup window does not meet the preset condition, acquiring a target value configured by an account for the stacking attribute of the target popup window;
and determining the target value as an attribute value of the stacking attribute of the target popup window.
Optionally, if the target popup window does not meet the preset condition, acquiring a target value configured by an account for a stacking attribute of the target popup window includes:
and if the attribute information of the target popup window does not comprise the preset attribute, or if the attribute information of the target popup window comprises the preset attribute, the attribute value of the preset attribute is not the preset attribute value, and the target value configured by the account for the stacking attribute of the target popup window is obtained.
Optionally, acquiring at least one reference popup associated with the target page includes:
and acquiring the at least one reference popup associated with the target page based on a preset type, wherein the preset type is a type for indicating popup elements.
Optionally, the popup window display method further includes:
and calling a hierarchical control function to determine whether the target popup meets the preset condition.
According to a second aspect of the present disclosure, there is provided a popup window display device comprising:
the acquisition module is configured to acquire a target popup window to be displayed on a target page; acquiring at least one reference popup window associated with the target page and an attribute value of a stacking attribute of each reference popup window;
a determining module configured to perform adding a preset value to a maximum value of the attribute values of the stacking attribute of the at least one reference popup window acquired by the acquiring module, so as to obtain an attribute value of the stacking attribute of the target popup window;
and the display module is configured to execute attribute values of the stacking attribute of the target popup window determined by the determination module, and display the target popup window on the target page.
Optionally, the determining module is specifically configured to perform:
and if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window.
Optionally, the determining module is specifically configured to perform:
if the attribute information of the target popup window comprises a preset attribute, or if the attribute information of the target popup window comprises the preset attribute and the attribute value of the preset attribute is a preset attribute value, the maximum value is increased by the preset value to obtain the attribute value of the stacking attribute of the target popup window.
Optionally, the acquiring module is further configured to execute, if the target popup does not meet the preset condition, acquiring a target value configured by an account for the stacking attribute of the target popup;
the determining module is further configured to perform determining the target value acquired by the acquiring module as an attribute value of a stacking attribute of the target popup window.
Optionally, the acquiring module is specifically configured to perform:
and if the attribute information of the target popup window does not comprise the preset attribute, or if the attribute information of the target popup window comprises the preset attribute, the attribute value of the preset attribute is not the preset attribute value, and the target value configured by the account for the stacking attribute of the target popup window is obtained.
Optionally, the acquiring module is specifically configured to perform:
and acquiring the at least one reference popup associated with the target page based on a preset type, wherein the preset type is a type for indicating popup elements.
Optionally, the determining module is further configured to execute a call level control function to determine whether the target popup meets the preset condition.
According to a third aspect of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement any of the above-described optional popup display methods of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having instructions stored thereon which, when executed by a processor of an electronic device, enable the electronic device to perform any one of the above-described optional popup window display methods.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the optionally popup display method as in any of the first aspects.
The technical scheme provided by the disclosure at least brings the following beneficial effects: the popup window display device obtains a target popup window to be displayed on a target page, obtains at least one reference popup window associated with the target page and attribute values of stacking attributes of each reference popup window, and increases the maximum value in the attribute values of the stacking attributes of the at least one reference popup window by a preset value to obtain the attribute value of the stacking attribute of the target popup window. And then, the popup window display device displays the target popup window on the target page based on the attribute value of the stacking attribute of the target popup window. Because the attribute value of the stacking attribute of the target popup window is higher than the maximum value in the attribute values of the stacking attribute of at least one reference popup window, the attribute value of the stacking attribute of the popup window is used for indicating the display level of the popup window, and the display level of the popup window with the larger attribute value is higher, the target popup window can be displayed at the topmost layer of the target page. The automatic management of popup window display is realized, the labor cost is saved, and the problem of disordered display level of the popup window is avoided, so that the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flow chart illustrating a pop-up window display method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another popup window display method, according to an exemplary embodiment.
Fig. 3 is a logical block diagram of a popup display device according to an exemplary embodiment.
Fig. 4 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the embodiments described in the following exemplary examples do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Layering is one basic feature of cascading style sheets (cascading style sheet, CSS). Layering is an algorithm that defines how to combine attribute values from multiple sources, which is central in CSS.
The Z-axis stacking (zndex) attribute refers to the stacking hierarchy in the current stacking context, with higher attribute values for the stacking attribute indicating higher presentation priority. When elements are stacked, elements with large attribute values of the stacked attribute will overlap elements with small attribute values of the stacked attribute, i.e. elements with high presentation priority will overlap elements with low presentation priority.
In some embodiments, a page may include multiple types of elements, such as popup, floating window, and the like. When a plurality of popups are displayed in one page, a case of overlapping between popups may occur. The stacking nature of the popup window can determine the display level of the popup window. In general, a display layer level of a popup window having a large attribute value of a lamination attribute is high.
The popup window display method provided by the embodiment of the disclosure can be applied to a scene in which a certain popup window is displayed at the topmost layer of a page. The display level of a popup is determined by the attribute value of the stack attribute of the popup. The larger the attribute value, the higher the display level.
In the related art, the attribute value of the stacking attribute of the popup window may be preconfigured by an engineer to be a larger value so that the popup window can be displayed at the topmost layer of the page. For example, an engineer may configure the stack-up attribute of the popup to have an attribute value of 999. With the development of business, new popup windows need to be displayed at the top layer of the page. In this case, the engineer needs to comb the attribute values of the stacking attributes of all the popup windows of the page, and then reconfigure the attribute values of the stacking attributes of the new popup window. This results in higher labor costs and higher error rates, thereby resulting in a staggered display level of the popup window on the page. The problems are particularly prominent in the scene of a large number of popup windows.
In order to solve the problems of high labor cost and disordered display levels of popup windows caused by configuration of attribute values of stacking attributes of the popup windows by engineers, the embodiment of the disclosure provides a popup window display method, which obtains the attribute value of the stacking attribute of a target popup window by adding a preset value to the maximum value in the attribute values of the stacking attribute of at least one reference popup window, so that the target popup window can be displayed at the topmost layer of a target page. The automatic management of popup window display is realized, the labor cost is saved, and the problem of disordered display level of the popup window is avoided, so that the user experience is improved.
Fig. 1 is a flowchart illustrating a popup window display method according to an exemplary embodiment, which may include the following steps 101-104, as shown in fig. 1.
101. The electronic equipment acquires a target popup window to be displayed on a target page.
After the electronic equipment loads the target page, control operation of a user in the target page can be detected, and a target popup window to be displayed on the target page is obtained in response to the control operation, wherein the target popup window is to be displayed on the topmost layer of the target page.
It will be appreciated that in the embodiments of the present disclosure, the target popup may be a popup that has been inserted into a document object model (document object model, DOM) tree in a target page, or may be a popup that has been dynamically inserted into a DOM tree. The DOM tree is used to represent all nodes in a page, which may include various types of elements in the page, such as popups, and the like. The DOM tree may include all existing popups associated with the target page, which refer to popups that have been configured with attribute values of the stacking attribute. The attribute value of the stacking attribute of each popup window in the existing popup window may be manually configured or may be configured by adopting the method in the embodiment of the disclosure.
In a scenario where the target popup is a popup inserted into the DOM tree in the target page, it is indicated that the attribute value of the stacking attribute of the existing target popup in the target page needs to be reset, so that the target popup can be displayed at the topmost layer of the target page.
In a scenario that a target popup is a popup dynamically inserted into a DOM tree, it is indicated that the target popup is a popup newly added in a target page, and an attribute value of a largest stacking attribute needs to be configured for the target popup, so that the target popup is displayed at the topmost layer of the target page.
102. The electronic device obtains at least one reference popup associated with the target page and an attribute value for a stacking attribute of each reference popup.
The reference popup window refers to all existing popups of the target page, that is, all popups configured with attribute values of the stacking attribute. The display layer level of the popup window with large attribute value of the lamination attribute is higher, and the display layer level of the popup window with small attribute value of the lamination attribute is higher. A popup window of a high display level would cover a popup window of a low display level.
Optionally, in an embodiment of the present disclosure, the electronic device may obtain at least one reference popup associated with the target page based on a preset type, where the preset type is a type for indicating a popup element.
It will be appreciated that the predetermined type may be a predefined class name. For example, the class name may be: class= "pop-layer". By adding uniform class names to all existing popup windows of the target page in advance, the electronic equipment obtains all popup windows of the target page through the class names.
103. And the electronic equipment increases the maximum value in the attribute values of the stacking attribute of the at least one reference popup window by a preset value to obtain the attribute value of the stacking attribute of the target popup window.
After the electronic device obtains the target popup window and obtains the attribute value of the stacking attribute of each reference popup window, the maximum value in the attribute values of the stacking attribute of at least one reference popup window can be increased by a preset value, so as to obtain the attribute value of the stacking attribute of the target popup window. The preset value is a positive number, for example, the preset value may be 1.
Optionally, in an embodiment of the present disclosure, after obtaining the attribute value of the stacking attribute of each reference popup window, the electronic device may traverse the attribute values of the stacking attribute of all the reference popup windows, obtain the maximum value of all the values, and store the maximum value in a predefined global variable. After the electronic device obtains the target popup window, a preset value can be added to the maximum value in the global variable to obtain a sum value, and the sum value is assigned to the attribute value of the stacking attribute of the target popup window.
In this way, the maximum value of the attribute values of the lamination attribute of the at least one reference popup window is increased by a preset value to obtain the attribute value of the lamination attribute of the target popup window, so that the maximum attribute value of the lamination attribute of the target popup window can be ensured, and the highest display level of the target popup window is ensured.
104. The electronic device displays the target popup on the target page based on the attribute value of the stacking attribute of the target popup.
If some popups are already displayed on the target page, then the target popup is displayed at a level above the display level of those popups that are displayed.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the popup window display device obtains a target popup window to be displayed on a target page, obtains at least one reference popup window associated with the target page and attribute values of stacking attributes of each reference popup window, and increases the maximum value in the attribute values of the stacking attributes of the at least one reference popup window by a preset value to obtain the attribute value of the stacking attribute of the target popup window. And then, the popup window display device displays the target popup window on the target page based on the attribute value of the stacking attribute of the target popup window. Because the attribute value of the stacking attribute of the target popup window is higher than the maximum value in the attribute values of the stacking attribute of at least one reference popup window, the attribute value of the stacking attribute of the popup window is used for indicating the display level of the popup window, and the display level of the popup window with the larger attribute value is higher, the target popup window can be displayed at the topmost layer of the target page. The automatic management of popup window display is realized, the labor cost is saved, and the problem of disordered display level of the popup window is avoided, so that the user experience is improved.
Optionally, based on fig. 1, as shown in fig. 2, the step 103 may specifically include the following step 105.
105. If the target popup window meets the preset condition, the electronic equipment increases the maximum value by the attribute value of the stacking attribute of the target popup window.
In some embodiments of the present disclosure, the electronic device may call a hierarchical control function, such as an automated hierarchical control function (setIndex), to determine whether the target popup meets a preset condition. If the target popup window meets the preset condition, the electronic device can increase the maximum value by a preset value to obtain an attribute value of the stacking attribute of the target popup window. If the target popup does not meet the preset condition, the electronic device can acquire a target value configured by the stacking attribute of the target popup for the account, determine the target value as an attribute value of the stacking attribute of the target popup, and display the target popup on the target page based on the attribute value.
Optionally, in the embodiment of the present disclosure, the electronic device may determine whether the target popup window meets the preset condition in a plurality of manners, and the embodiment of the present disclosure is not specifically limited herein.
In the first manner, the electronic device may obtain attribute information of the target popup. If the attribute information of the target popup includes a preset attribute, the electronic device determines that the target popup meets a preset condition. And if the attribute information of the target popup does not comprise the preset attribute, determining that the target popup does not meet the preset condition. The preset attribute may be an auto-handle attribute (auto-handle).
In a second manner, if the attribute information of the target popup includes a preset attribute, and the attribute value of the preset attribute is a preset attribute value, for example, the attribute value is true (true), the electronic device determines that the target popup meets a preset condition. If the attribute information of the target popup includes a preset attribute, but the attribute value of the preset attribute is not the preset attribute value, for example, the attribute value is false (false) or is empty, the electronic device determines that the target popup does not satisfy the preset condition.
Therefore, the judgment of whether the target popup window meets the preset condition is realized in various modes, and the diversity of automatic management is improved.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the electronic equipment only carries out automatic management on the target popup window meeting the preset condition by judging whether the target popup window meets the preset condition, so that the automatic management is more flexible, and the service requirement of a specific scene can be met. When the target popup window does not meet the preset condition, the electronic device can take the attribute value configured by the user for the target popup window as the attribute value of the stacking attribute of the target popup window, so that the popup window without automatic management can be displayed.
Fig. 3 is a logical block diagram of a popup display device according to an exemplary embodiment. Referring to fig. 3, the popup display device is applied to an electronic apparatus, and includes: an acquisition module 31, a determination module 32 and a presentation module 33.
An obtaining module 31 configured to perform obtaining a target popup to be displayed on a target page; acquiring at least one reference popup window associated with the target page and an attribute value of a stacking attribute of each reference popup window;
a determining module 32 configured to perform adding a preset value to a maximum value of the attribute values of the stacking attribute of the at least one reference popup window acquired by the acquiring module 31, so as to obtain an attribute value of the stacking attribute of the target popup window;
and a display module 33 configured to display the target popup on the target page based on the attribute value of the stacking attribute of the target popup determined by the determination module 32.
Optionally, the determining module 32 is specifically configured to perform:
and if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window.
Optionally, the determining module 32 is specifically configured to perform:
if the attribute information of the target popup window comprises a preset attribute, or if the attribute information of the target popup window comprises the preset attribute and the attribute value of the preset attribute is a preset attribute value, the maximum value is increased by the preset value to obtain the attribute value of the stacking attribute of the target popup window.
Optionally, the obtaining module 31 is further configured to obtain a target value configured by an account for the stacking attribute of the target popup if the target popup does not meet the preset condition;
the determining module 32 is further configured to perform determining the target value acquired by the acquiring module 31 as an attribute value of a stacking attribute of the target popup window.
Optionally, the obtaining module 31 is specifically configured to perform:
and if the attribute information of the target popup window does not comprise the preset attribute, or if the attribute information of the target popup window comprises the preset attribute, the attribute value of the preset attribute is not the preset attribute value, and the target value configured by the account for the stacking attribute of the target popup window is obtained.
Optionally, the obtaining module 31 is specifically configured to perform:
and acquiring the at least one reference popup associated with the target page based on a preset type, wherein the preset type is a type for indicating popup elements.
Optionally, the determining module 32 is further configured to execute a call level control function to determine whether the target popup meets the preset condition.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 4 is a block diagram illustrating a structure of an electronic device according to an exemplary embodiment, which may be a popup display device, which may be: smart phones, tablet computers, notebook computers or desktop computers.
The pop-up display device may include at least one processor 41, a communication bus 42, a memory 43, and at least one communication interface 44.
The processor 41 may be a processor (central processing units, CPU), a microprocessor unit, or one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present disclosure.
Communication bus 42 may include a pathway to transfer information between the aforementioned components.
The communication interface 44 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
The memory 43 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be stand alone and be connected to the processing unit by a bus. The memory may also be integrated with the processing unit.
Wherein the memory 43 is used for storing application program codes for executing the disclosed scheme and is controlled to be executed by the processor 41. The processor 41 is operative to execute application code stored in the memory 43 to thereby implement the functions in the methods of the present disclosure.
In a particular implementation, processor 41 may include one or more CPUs, such as CPU0 and CPU1 of FIG. 4, as an embodiment.
In a specific implementation, as an embodiment, the pop-up display device may include a plurality of processors, such as processor 41 and processor 45 in fig. 4. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor.
In a specific implementation, as an embodiment, the popup display device may further include an input device 46 and an output device 47. The input device 46 communicates with the processor 41 and may accept user input in a variety of ways. For example, the input device 46 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like. The output device 47 communicates with the processor 41 and may display information in a variety of ways. For example, the output device 47 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, or the like.
Those skilled in the art will appreciate that the structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present disclosure also provides a computer-readable storage medium including instructions stored thereon, which when executed by a processor of a computer, enable the computer to perform the popup display method provided by the above-described illustrated embodiments. For example, the computer readable storage medium may be a memory 43 comprising instructions executable by the processor 41 of the electronic device to perform the above-described method. Alternatively, the computer readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The present disclosure also provides a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the pop-up display method provided by the above-described illustrated embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A pop-up display method, comprising:
acquiring a target popup window to be displayed on a target page;
acquiring at least one reference popup window associated with the target page and an attribute value of a stacking attribute of each reference popup window;
adding a preset value to the maximum value in the attribute values of the stacking attribute of the at least one reference popup window to obtain the attribute value of the stacking attribute of the target popup window;
displaying the target popup on the target page based on the attribute value of the stacking attribute of the target popup;
the adding a preset value to the maximum value of the attribute values of the stacking attribute of the at least one reference popup window to obtain the attribute value of the stacking attribute of the target popup window includes:
if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window;
and if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window, wherein the attribute value comprises:
if the attribute information of the target popup window comprises a preset attribute, or if the attribute information of the target popup window comprises the preset attribute and the attribute value of the preset attribute is a preset attribute value, increasing the maximum value by the preset value to obtain the attribute value of the stacking attribute of the target popup window; the preset attribute is a custom attribute, and the preset attribute value is true.
2. The popup window display method of claim 1, further comprising:
if the target popup window does not meet the preset condition, acquiring a target value configured by an account for the stacking attribute of the target popup window;
and determining the target value as an attribute value of the stacking attribute of the target popup window.
3. The method for displaying a popup window according to claim 2, wherein if the target popup window does not meet the preset condition, obtaining a target value configured by an account for a stacking attribute of the target popup window includes:
and if the attribute information of the target popup window does not comprise the preset attribute, or if the attribute information of the target popup window comprises the preset attribute, the attribute value of the preset attribute is not the preset attribute value, and the target value configured by the account for the stacking attribute of the target popup window is obtained.
4. The method of claim 1, wherein the obtaining at least one reference popup associated with the target page comprises:
and acquiring the at least one reference popup associated with the target page based on a preset type, wherein the preset type is a type for indicating popup elements.
5. The popup window display method of claim 1, further comprising:
and calling a hierarchical control function to determine whether the target popup meets the preset condition.
6. A pop-up window display device, comprising:
the acquisition module is configured to acquire a target popup window to be displayed on a target page; acquiring at least one reference popup window associated with the target page and an attribute value of a stacking attribute of each reference popup window;
a determining module configured to perform adding a preset value to a maximum value of the attribute values of the stacking attribute of the at least one reference popup window acquired by the acquiring module, so as to obtain an attribute value of the stacking attribute of the target popup window;
a display module configured to execute an attribute value based on the lamination attribute of the target popup window determined by the determination module, to display the target popup window on the target page;
the determination module is specifically configured to perform:
if the target popup window meets the preset condition, increasing the maximum value by the preset value to obtain an attribute value of the stacking attribute of the target popup window;
the determination module is specifically configured to perform:
if the attribute information of the target popup window comprises a preset attribute, or if the attribute information of the target popup window comprises the preset attribute and the attribute value of the preset attribute is a preset attribute value, increasing the maximum value by the preset value to obtain the attribute value of the stacking attribute of the target popup window; the preset attribute is a custom attribute, and the preset attribute value is true.
7. The popup window display device of claim 6,
the obtaining module is further configured to obtain a target value configured by an account for the stacking attribute of the target popup if the target popup does not meet the preset condition;
the determining module is further configured to perform determining the target value acquired by the acquiring module as an attribute value of a stacking attribute of the target popup window.
8. The popup display device of claim 7, wherein the acquisition module is specifically configured to perform:
and if the attribute information of the target popup window does not comprise the preset attribute, or if the attribute information of the target popup window comprises the preset attribute, the attribute value of the preset attribute is not the preset attribute value, and the target value configured by the account for the stacking attribute of the target popup window is obtained.
9. The popup window display device of any one of claims 6, wherein the acquisition module is specifically configured to perform:
and acquiring the at least one reference popup associated with the target page based on a preset type, wherein the preset type is a type for indicating popup elements.
10. The popup window display device of claim 6,
the determination module is further configured to execute a call hierarchy control function to determine whether the target popup meets the preset condition.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the popup display method of any of claims 1-5.
12. A computer readable storage medium having instructions stored thereon, which when executed by a processor of an electronic device, cause the electronic device to perform the pop-up display method of any of claims 1-5.
13. A computer program product comprising computer instructions which, when executed by a processor, implement the popup window display method of any of claims 1 to 5.
CN202111552027.8A 2021-12-17 2021-12-17 Popup window display method and device Active CN114428656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111552027.8A CN114428656B (en) 2021-12-17 2021-12-17 Popup window display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111552027.8A CN114428656B (en) 2021-12-17 2021-12-17 Popup window display method and device

Publications (2)

Publication Number Publication Date
CN114428656A CN114428656A (en) 2022-05-03
CN114428656B true CN114428656B (en) 2024-03-12

Family

ID=81312090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111552027.8A Active CN114428656B (en) 2021-12-17 2021-12-17 Popup window display method and device

Country Status (1)

Country Link
CN (1) CN114428656B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000049535A2 (en) * 1999-02-19 2000-08-24 Interactive Video Technologies, Inc. System, method and article for applying temporal elements to the attributes of a static document object
CN109634490A (en) * 2018-12-14 2019-04-16 北京字节跳动网络技术有限公司 A kind of list display method, device, equipment and storage medium
CN109814933A (en) * 2019-01-29 2019-05-28 腾讯科技(深圳)有限公司 A kind of business data processing method and device
CN110362371A (en) * 2019-06-19 2019-10-22 北京百度网讯科技有限公司 Control method and system, the computer equipment and readable medium of view level
CN111240777A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper generation method, device, storage medium and electronic device
CN111694490A (en) * 2020-05-25 2020-09-22 维沃移动通信有限公司 Setting method and device and electronic equipment
CN112256377A (en) * 2020-10-26 2021-01-22 北京达佳互联信息技术有限公司 Popup window data processing method and device
CN112947830A (en) * 2021-03-11 2021-06-11 北京高途云集教育科技有限公司 Popup window display method and device, computer equipment and storage medium
CN113190776A (en) * 2021-05-11 2021-07-30 上海哔哩哔哩科技有限公司 Popup window display method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11281569B2 (en) * 2019-01-18 2022-03-22 Sap Se Self-curative computer process automates

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000049535A2 (en) * 1999-02-19 2000-08-24 Interactive Video Technologies, Inc. System, method and article for applying temporal elements to the attributes of a static document object
CN109634490A (en) * 2018-12-14 2019-04-16 北京字节跳动网络技术有限公司 A kind of list display method, device, equipment and storage medium
CN109814933A (en) * 2019-01-29 2019-05-28 腾讯科技(深圳)有限公司 A kind of business data processing method and device
CN110362371A (en) * 2019-06-19 2019-10-22 北京百度网讯科技有限公司 Control method and system, the computer equipment and readable medium of view level
CN111240777A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper generation method, device, storage medium and electronic device
CN111694490A (en) * 2020-05-25 2020-09-22 维沃移动通信有限公司 Setting method and device and electronic equipment
CN112256377A (en) * 2020-10-26 2021-01-22 北京达佳互联信息技术有限公司 Popup window data processing method and device
CN112947830A (en) * 2021-03-11 2021-06-11 北京高途云集教育科技有限公司 Popup window display method and device, computer equipment and storage medium
CN113190776A (en) * 2021-05-11 2021-07-30 上海哔哩哔哩科技有限公司 Popup window display method and system

Also Published As

Publication number Publication date
CN114428656A (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US10523580B2 (en) Automatic cloud provisioning based on related internet news and social network trends
US10482411B2 (en) Dashboard for dynamic display of distributed transaction data
CN108874559A (en) electronic device, distributed system service link analysis method and storage medium
CN109561134B (en) Electronic device, distributed cluster service distribution method and storage medium
CN107908442B (en) Spring-based resource loading method and device, terminal equipment and computer-readable storage medium
CN108462760A (en) Electronic device, cluster access domain name automatic generation method and storage medium
US11151314B2 (en) Extensible grid layout
CN112395535B (en) Lazy loading method and apparatus for picture, medium and electronic device
US11403132B2 (en) Managing tasks in a cloud computing environment using multiple orchestration tools
CN113656733B (en) Floor page generation method and device, electronic equipment and storage medium
CN105488125A (en) Page access method and apparatus
CN115277566A (en) Load balancing method and device for data access, computer equipment and medium
CN110764913B (en) Data calculation method based on rule calling, client and readable storage medium
CN110708197B (en) Monitoring device, method for setting monitoring policy of monitoring device, and storage medium
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
US9471389B2 (en) Dynamically tuning server placement
CN113032153A (en) Dynamic capacity expansion method, system, device and storage medium for container service resources
CN114428656B (en) Popup window display method and device
CN110597585A (en) Application page display method, device, computer equipment and storage medium
CN109194703B (en) Processing method of communication load between cloud platform hosts, electronic device and medium
CN119248492A (en) Task processing method, device, computer equipment and storage medium
CN112835490A (en) Menu display method and device, client device and storage medium
CN112541327A (en) Data reading method and device, electronic equipment and storage medium
CN116796088A (en) Picture lazy loading method and device, computer equipment and storage medium
CN112948118B (en) Edge computing method, platform, computer device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant