CN110929193B - Information circulation display method, information circulation display device and electronic equipment - Google Patents
Information circulation display method, information circulation display device and electronic equipment Download PDFInfo
- Publication number
- CN110929193B CN110929193B CN201911139767.1A CN201911139767A CN110929193B CN 110929193 B CN110929193 B CN 110929193B CN 201911139767 A CN201911139767 A CN 201911139767A CN 110929193 B CN110929193 B CN 110929193B
- Authority
- CN
- China
- Prior art keywords
- information
- displayed
- display
- display column
- information display
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides an information circulation display method, an information circulation display device and electronic equipment, wherein the information circulation display method can determine the information display quantity which can be displayed by an information display column after change by acquiring the height of the information display column and the display height of each piece of information to be displayed when the height of the information display column is detected to be changed, and simultaneously determine each piece of information to be displayed which is displayed in the information display column after change according to the position, the circulation step length and the information display quantity of the last piece of display information in the information display column before change in the information display column to be displayed. Therefore, the content of the information to be displayed can be continuously and circularly displayed, and the utilization rate of the information display space is improved.
Description
Technical Field
The present disclosure relates to the field of information display technologies, and in particular, to an information circulation display method, an information circulation display apparatus, and an electronic device.
Background
With the continuous development of internet technology, more and more information is displayed in web pages, but sometimes the amount of information to be displayed in a display bar often exceeds the display capacity of the display bar, and at this time, the information needs to be displayed in a circulating manner in the display process.
At present, most methods for information circular display are limited to display columns with fixed sizes, when the number of information displays on the display columns changes, for example, because the width of the display column in a browser decreases (for example, pop-up for other advertisements or a user clicks "pack up"), the next piece of information that should be displayed circularly cannot be displayed on the display columns, and the information that has been displayed is repeatedly displayed on the display columns, or when the width of the display columns increases (for example, a user clicks "expand"), only a small part of the information display columns still can display information, so that after the information display columns change, the information cannot be continuously circulated, and waste of display space is caused.
Disclosure of Invention
In view of this, an object of the present application is to provide an information circulation display method, an information circulation display apparatus, and an electronic device, which can detect a display height of an information display column and adjust displayed content in time according to the height of the information display column, so as to avoid a blank display column in the information display column or repeatedly display displayed information to be displayed, and help to improve a utilization rate of an information display space.
The embodiment of the application provides an information circulation display method, which comprises the following steps:
when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined;
when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs;
determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length;
comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number;
and displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Further, after the information display quantity that the information can be displayed at the same time in the information display column after the change is determined, the information circulation display method further includes:
and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display amount, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
Further, after the comparing the target bit number with the total number, the information circulation display method further includes:
and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
Further, after the information to be displayed is displayed in the information display column, from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed, the information circulation display method further includes:
acquiring a preset updating time point, detecting the position of a control in the information display bar and the position of the information to be displayed when the information is updated, and judging whether the position of the control is overlapped with the position of the information to be displayed;
and if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
Further, after the determining whether there is an overlap between the position where the control is located and the position where the information to be displayed is located, the information circulation display method further includes:
and if the position of the control is overlapped with the position of the information to be displayed, suspending updating the information to be displayed in the information display bar at the updating time point.
The embodiment of the present application further provides an information circulation display device, the information circulation display device includes:
the quantity determining module is used for acquiring the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column when the height of the information display column is detected to be changed, and determining the information display quantity capable of displaying the information at the same time in the information display column after the change;
the information display system comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for acquiring a preset circulating step length when the information display mode of the information display column is determined to be circulating display based on the total amount of information to be displayed and the information display number, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the information to be displayed is changed;
a second determining module, configured to determine, according to the first order, the second order, and the cycle step, a third order corresponding to the first piece of display information in the information display bar after the change occurs, and a target order corresponding to the last piece of display information in the information display bar;
the comparison module is used for comparing the target bit number with the total number, and if the target bit number is larger than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number;
the first display module is used for displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Further, the information circulation display device further comprises a second display module, and the second display module is used for:
and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display number, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
Further, the information circulation display device further comprises a third display module, and the third display module is configured to:
and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
Further, the information circulation display device further comprises a first updating module, and the first updating module is configured to:
acquiring a preset updating time point, detecting the position of a control in the information display bar and the position of the information to be displayed when the information is updated, and judging whether the position of the control is overlapped with the position of the information to be displayed;
and if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
Further, the information circulation display device further comprises a second updating module, and the second updating module is configured to:
and if the position of the control is overlapped with the position of the information to be displayed, suspending updating the information to be displayed in the information display bar at the updating time point.
An embodiment of the present application further provides an electronic device, including: the information circulation display method comprises a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, the processor and the memory are communicated through the bus when the electronic equipment runs, and the machine readable instructions are executed by the processor to execute the steps of the information circulation display method.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the information circulation display method are performed as described above.
According to the information circulation display method, the information circulation display device and the electronic equipment, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the information display column is changed is determined; when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs; determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length; comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number; and displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Therefore, when the height of the information display column is detected to be changed, the information display quantity which can be displayed by the changed information display column is determined by obtaining the height of the information display column and the display height of each piece of information to be displayed, and simultaneously, each piece of information to be displayed which is displayed in the information display column after being changed is determined according to the position, the cycle step length and the information display quantity of the last piece of display information in the information display column before being changed in the information to be displayed. Therefore, the content of the information to be displayed can be continuously and circularly displayed, and the utilization rate of the information display space is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of an information circulation display method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an information circulation display method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of an information circulation display device according to an embodiment of the present disclosure;
fig. 4 is a second schematic structural diagram of an information circulation display device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
First, an application scenario to which the present application is applicable will be described. The method and the device can be applied to the technical field of information display. The method comprises the steps of detecting the height of an information display column, determining the number of information displays which can be displayed by the information display column after change by acquiring the height of the information display column and the display height of each piece of information to be displayed, and determining each piece of information to be displayed which is displayed in the information display column after change according to the position, the cycle step length and the number of information displays of the last piece of display information in the information display column before change. Therefore, the information display method and the information display device avoid the situation that blank display columns appear in the information display columns or the displayed information to be displayed is repeatedly displayed, and are beneficial to improving the utilization rate of the information display space.
Research shows that most of current methods for information circular display are limited to display bars with fixed sizes, when the number of information displays in the display bars changes, for example, because the width of the display bars in a browser is reduced (for example, pop-up for other advertisements or a user clicks "pack up"), the next piece of information that should be circular displayed cannot be displayed on the display bars, and the displayed information is repeatedly displayed on the display bars, or when the width of the display bars is increased (for example, a user clicks "expand"), only a small part of the bars can still display information, so that after the information display bars change, the information cannot be continuously circular, and waste of display space is caused.
Based on this, the embodiment of the application provides an information circulation display method, by detecting the height of the information display column in the webpage in real time, the information displayed in the information display column can be adjusted when the height of the information display column changes, so that a blank display column in the information display column is avoided or displayed information to be displayed is repeatedly displayed, and the utilization rate of an information display space is improved.
Referring to fig. 1, fig. 1 is a flowchart of an information circulation display method according to an embodiment of the present disclosure. As shown in fig. 1, the information circulation display method provided in the embodiment of the present application includes:
s101, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined.
In the step, when a user browses information, the processor continuously detects whether the height of information display changes, when the height of the information display column changes, the height of the information display column after the change and the display height of each piece of information to be displayed in the information display column are obtained, and the information display quantity of the information which can be displayed at the same time in the information display column after the change is calculated according to the obtained height of the information display column after the change and the display height of each piece of information to be displayed.
Here, the height of the information display column may be determined according to an actual operation of a user (for example, clicking a control such as "expand" or "collapse"), or the information display column may be shielded when an advertisement pops up in a web page, so that the display height of the information display column is reduced, and the display height of the information display column is increased when the advertisement is collapsed. The user can change the display height of the information display column by dragging the edge of the information display column, clicking the space for controlling the expansion or the retraction of the information display column and the like.
The information display quantity is calculated by the following formula:
n=containerHeight/itemHeight;
n is the information display quantity, conteneinerheight is the height of the information display column after change, and itemHeight is the display height of each piece of information to be displayed.
S102, when the information display mode of the information display column is determined to be the cycle display mode based on the total amount of the information to be displayed and the information display number, acquiring a preset cycle step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs.
In this step, after the information display quantity of the changed information display column capable of displaying information at the same time is determined, the information display quantity is compared with the total quantity of the information to be displayed, so that the display mode of the information display column is further determined after the height of the information display column is changed, if the information display quantity is smaller than the total quantity of the information to be displayed, it is indicated that all the information to be displayed cannot be displayed in the information display column at one time, and therefore the display mode of the changed information display column is determined to be circular display.
When the changed information display column is determined to be in a circular display mode, acquiring a preset circular step length, and determining a first order of the first piece of display information in the information display column before the change in the information display column corresponding to the information to be displayed and a second order of the last piece of display information in the information display column before the change in the information display column.
For example, if 4 pieces of information can be presented before one information presentation bar is changed, it is determined that the 1 st piece of information belongs to the 1 st piece of information (assumed to be the 1 st piece) in the information to be presented and the 4 th piece of information belongs to the 4 th piece of information (assumed to be the 4 th piece) in the information to be presented.
S103, according to the first order, the second order and the circulating step length, determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column.
In the step, according to the determined first order and the cycle step length, and according to the number of information display which can be displayed on the changed information display column, a third order corresponding to the first piece of display information on the changed information display column in the information display column and a target order corresponding to the last piece of display information in the information display column are determined.
In the present application, it is assumed that there are n columns in the information display column, but the number that can be displayed at a time is determined by the number of information displays, that is, the number of information displays is "4", and only the first 4 pieces of information in the information display column can be displayed.
For the above embodiment, 4 pieces of information can be displayed before one information display column is changed, 3 pieces of information can be displayed after the change, and according to the cycle step (assumed as 1), the third order (3) corresponding to the first piece of display information on the information display column and the target order (6) corresponding to the last piece of display information in the information display column after the change are determined.
S104, comparing the target bit number with the total number, and if the target bit number is larger than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number.
In this step, based on the target rank corresponding to the last piece of display information in the information display bar after the change determined in step S103, because the corresponding information to be displayed needs to be searched for in the information to be displayed according to the target rank after the calculated corresponding target rank, the calculated target rank may be greater than the total number of the information to be displayed, when the target rank is greater than the total number of the information to be displayed, the corresponding information to be displayed cannot be found in the information to be displayed, and at this time, each piece of information to be displayed in the information display bar after the change needs to be re-determined.
Specifically, the corresponding rank can be determined in the information to be displayed according to the last piece of display information in the changed information display column, and the display information in the information display column is further adjusted by further combining the third rank and other information to be displayed.
Corresponding to the above embodiment, the number of information displays before change is 4, if the number of information displays in the information display column after change is 3, the total number of information to be displayed is 4, and the cycle step is 1, then the target bit number "6" does not have corresponding information to be displayed in the information to be displayed, the fourth bit number is 1 according to the "target bit number 6" and the "total number of 4", and the third bit number is 3 according to the first bit number (the bit number is 1 in the above embodiment), the cycle step, and the difference between the numbers of information displays before and after change.
S105, displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
In this step, based on the determined third order and the determined fourth order, the information is displayed in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Corresponding to the above embodiment, the information displayed in the information display column after the change should be the 3 rd, 4 th and 1 st information in the information to be displayed.
In addition, a special situation exists in the application, when the third order is also greater than the total number, according to the fourth order calculated according to the target order, then the fifth order corresponding to the first piece of displayed information in the changed information display column in the information to be displayed is reversely calculated, and the information to be displayed corresponding to the fifth order in the information to be displayed in the information display column is displayed from the information to be displayed corresponding to the fifth order in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Or the information is displayed in the changed information display column from the first piece of information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth time in the information to be displayed.
According to the information circulation display method provided by the embodiment of the application, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the information display column is changed is determined; when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs; determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length; comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number; and displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Therefore, when the height of the information display column is detected to be changed, the height of the information display column and the display height of each piece of information to be displayed are obtained, the number of information displays which can be displayed by the information display column after the change is determined, and meanwhile, the information to be displayed is determined after the change according to the position, the cycle step length and the information display number of the last piece of display information in the information display column before the change in the information display column. Therefore, the content of the information to be displayed can be continuously and circularly displayed, and the utilization rate of the information display space is improved.
Referring to fig. 2, fig. 2 is a flowchart of an information circulation display method according to another embodiment of the present application. As shown in fig. 2, the information circulation display method provided in the embodiment of the present application includes:
s201, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined.
S202, when the information display mode of the information display column is determined to be the cycle display based on the total amount of the information to be displayed and the information display number, acquiring a preset cycle step length, and determining a first order corresponding to a first piece of display information in the information display column in the information to be displayed and a second order corresponding to a last piece of display information in the information display column in the information to be displayed before the change occurs.
S203, determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length.
S204, comparing the target bit number with the total number, and if the target bit number is larger than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number.
S205, displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
S206, acquiring a preset updating time point, detecting the position of the control in the information display bar and the position of the information to be displayed at the updating time point, and judging whether the position of the control and the position of the information to be displayed are overlapped.
In this step, after the information display bar changes, a preset updating module is activated, a preset updating time point is obtained, the position of the control in the information display bar and the position of the information to be displayed at the updating time point are detected, and whether an overlapped part exists between the position of the control and the position of the information to be displayed at the updating time point is judged.
And S207, if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
In this step, if it is determined that there is no overlapping portion between the position of the control and the position of the information to be displayed, each piece of information to be displayed in the information display bar is updated at the update time point according to the cycle step length.
The descriptions of S201 to S205 may refer to the descriptions of S101 to S105, and the same technical effects can be achieved, which are not described in detail herein.
Further, after the determining whether there is an overlap between the position where the control is located and the position where the information to be displayed is located, the information circulation display method further includes: and if the position of the control is overlapped with the position of the information to be displayed, suspending updating of the information to be displayed in the information display bar.
In this step, if it is determined that there is an overlapping portion between the position of the control and the position of the information to be displayed, the updating of the information to be displayed in the information display bar at the update time point is suspended at the update time point.
Like this, can realize the control to the information display column through the controlling part, when the controlling part is in the information display column and stops on waiting to show the information, will no longer update the information in the information display column to the information that the user in the information display column of being convenient for looks over, and can not be at the user and not have not seen the information in the information display column of updating under the condition of waiting to show the information yet.
Further, after the comparing the target bit number with the total number, the information circulation display method further includes: and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
In this step, after comparing the target rank with the total number of the information to be displayed, if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed in an information display column, to the information to be displayed corresponding to the target rank in the information to be displayed.
Corresponding to the above embodiment, if the third order is 2, the target order is 3, the total number of the information to be displayed is 4, and the number of the changed information display bars is 2, the information displayed in the information display column is the information to be displayed from the 2 nd to the 3 rd.
Further, after the information display quantity that the information can be displayed at the same time in the information display column after the change is determined, the information circulation display method further includes: and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display number, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
In this step, if it is determined according to the total number of the information to be displayed and the information display number, after the information display bar is changed, the display mode of the information display bar is a non-cyclic display mode, that is, after the change, the information display bar can display all the information to be displayed at the same time, and at this time, all the information to be displayed can be sequentially displayed in the information display bar according to the display order of the information to be displayed.
Illustratively, the information display column before the change displays the 2 nd, the 3 rd and the 4 th information to be displayed, and the information display column after the change can display 4 information and only 4 information to be displayed, so that the 1 st, the 2 nd, the 3 rd and the 4 th information to be displayed are sequentially displayed in the information display column.
According to the information circulation display method provided by the embodiment of the application, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined; when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs; determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length; comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number; displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed; acquiring a preset updating time point, detecting the position of a control in the information display bar and the position of the information to be displayed when the information is updated, and judging whether the position of the control is overlapped with the position of the information to be displayed; and if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
Therefore, when the height of the information display column is detected to be changed, the height of the information display column and the display height of each piece of information to be displayed are obtained, the number of information displays which can be displayed by the information display column after the change is determined, and meanwhile, according to the position, the cycle step length and the number of information displays of the last piece of display information in the information display column before the change in the information display column, the information to be displayed in the information display column is determined after the change, and the information to be displayed in the information display column can be updated regularly. Therefore, the content of the information to be displayed can be continuously and circularly displayed, and the utilization rate of the information display space is improved.
Referring to fig. 3 and 4, fig. 3 is a first schematic structural diagram of an information circulation display device according to an embodiment of the present application, and fig. 4 is a second schematic structural diagram of another information circulation display device according to an embodiment of the present application. As shown in fig. 3, the information circulation presentation apparatus 300 includes:
the quantity determining module 310 is configured to, when it is detected that the height of the information display column changes, obtain the height of the information display column after the change of the information display column and the display height of each piece of information to be displayed in the information display column, and thus determine the quantity of information displayed in the information display column that can display information at the same time after the change;
a first determining module 320, configured to, when it is determined that the information display manner of the information display column is a cyclic display based on the total amount of the information to be displayed and the information display amount, obtain a preset cyclic step length, and determine a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs;
a second determining module 330, configured to determine, according to the first order, the second order, and the cycle step, a third order corresponding to the first piece of display information in the information display bar after the change occurs, and a target order corresponding to the last piece of display information in the information display bar;
a comparing module 340, configured to compare the target bit number with the total number, and if the target bit number is greater than the total number, determine, according to the target bit number and the total number, a fourth bit number corresponding to the changed last piece of display information in the information to be displayed;
the first display module 350 is configured to display in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Further, as shown in fig. 4, the information circulation display apparatus 300 further includes:
the information circulation display device 300 further comprises a second display module 360, wherein the second display module 360 is used for:
and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display number, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
The information circulation display device 300 further comprises a third display module 370, wherein the third display module 370 is configured to:
and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
The information circulation display device 300 further comprises a first update module 380, and the first update module 380 is configured to:
acquiring a preset updating time point, detecting the position of a control in the information display bar and the position of the information to be displayed when the information is updated, and judging whether the position of the control is overlapped with the position of the information to be displayed;
and if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
The information circulation display device 300 further includes a second update module 390, where the second update module 390 is configured to:
and if the position of the control is overlapped with the position of the information to be displayed, suspending updating the information to be displayed in the information display bar at the updating time point.
According to the information circulation display device provided by the embodiment of the application, when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined; when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs; determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length; comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number; and displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
Therefore, when the height of the information display column is detected to be changed, the height of the information display column and the display height of each piece of information to be displayed are obtained, the number of information displays which can be displayed by the information display column after the change is determined, and meanwhile, the information to be displayed is determined after the change according to the position, the cycle step length and the information display number of the last piece of display information in the information display column before the change in the information display column. Therefore, the content of the information to be displayed can be continuously and circularly displayed, and the utilization rate of the information display space is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
The memory 520 stores machine-readable instructions executable by the processor 510, when the electronic device 500 runs, the processor 510 communicates with the memory 520 through the bus 530, and when the machine-readable instructions are executed by the processor 510, the steps of the information loop display method in the method embodiments shown in fig. 1 and fig. 2 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the information circulation display method in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An information circulation display method is characterized by comprising the following steps:
when the height of the information display column is detected to be changed, the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column are obtained, and therefore the information display quantity of the information which can be displayed at the same time in the information display column after the change is determined;
when the information display mode of the information display column is determined to be cyclic display based on the total amount of the information to be displayed and the information display number, acquiring a preset cyclic step length, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the change occurs;
determining a third order corresponding to the first piece of display information in the information display column after the change and a target order corresponding to the last piece of display information in the information display column according to the first order, the second order and the cycle step length;
comparing the target bit number with the total number, and if the target bit number is greater than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number;
and displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
2. The information circulation display method according to claim 1, wherein after the determining the number of information displays that can display information at the same time in the information display bar after the change, the information circulation display method further comprises:
and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display number, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
3. The information circulation presentation method according to claim 1, wherein after the comparing the target bit number with the total number, the information circulation presentation method further comprises:
and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
4. The information circulation display method according to claim 1, wherein the information is displayed in the information display column from the information to be displayed corresponding to the third position in the information to be displayed to the last information to be displayed in the information to be displayed, and the first information to be displayed in the information to be displayed is displayed after the information to be displayed corresponding to the fourth position in the information to be displayed, the information circulation display method further comprising:
acquiring a preset updating time point, detecting the position of a control in the information display bar and the position of the information to be displayed when the information is updated, and judging whether the position of the control is overlapped with the position of the information to be displayed;
and if the position of the control and the position of the information to be displayed are not overlapped, updating the information to be displayed in the information display bar at the updating time point.
5. The information circulation display method according to claim 4, wherein after the determining whether there is an overlap between the position of the control and the position of the information to be displayed, the information circulation display method further comprises:
and if the position of the control is overlapped with the position of the information to be displayed, suspending updating the information to be displayed in the information display bar at the updating time point.
6. An information circulation display device, characterized in that, the information circulation display device includes:
the quantity determining module is used for acquiring the height of the information display column after the information display column is changed and the display height of each piece of information to be displayed in the information display column when the height of the information display column is detected to be changed, and determining the information display quantity capable of displaying the information at the same time in the information display column after the change;
the information display system comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for acquiring a preset circulating step length when the information display mode of the information display column is determined to be circulating display based on the total amount of information to be displayed and the information display number, and determining a first order of a first piece of display information in the information display column corresponding to the information to be displayed and a second order of a last piece of display information in the information display column corresponding to the information to be displayed before the information to be displayed is changed;
a second determining module, configured to determine, according to the first order, the second order, and the cycle step, a third order corresponding to the first piece of display information in the information display bar after the change occurs, and a target order corresponding to the last piece of display information in the information display bar;
the comparison module is used for comparing the target bit number with the total number, and if the target bit number is larger than the total number, determining a fourth bit number corresponding to the changed last piece of display information in the information to be displayed according to the target bit number and the total number;
the first display module is used for displaying in the information display column from the information to be displayed corresponding to the third order in the information to be displayed to the last information to be displayed in the information to be displayed, and from the first information to be displayed in the information to be displayed to the information to be displayed corresponding to the fourth order in the information to be displayed.
7. The information circulation presentation device of claim 6, further comprising a second presentation module, the second presentation module being configured to:
and when the information display mode of the information display column is determined to be non-cyclic display based on the total amount of the information to be displayed and the information display number, displaying all the information to be displayed in the information display column according to the display order of the information to be displayed.
8. The information circulation presentation device of claim 6, further comprising a third presentation module, wherein the third presentation module is configured to:
and if the target rank is not greater than the total number, displaying the information to be displayed corresponding to the third rank in the information to be displayed to the information to be displayed corresponding to the target rank in the information to be displayed in the information display column.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when an electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the information circulation presentation method according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the information circulation presentation method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911139767.1A CN110929193B (en) | 2019-11-20 | 2019-11-20 | Information circulation display method, information circulation display device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911139767.1A CN110929193B (en) | 2019-11-20 | 2019-11-20 | Information circulation display method, information circulation display device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110929193A CN110929193A (en) | 2020-03-27 |
CN110929193B true CN110929193B (en) | 2022-08-09 |
Family
ID=69850384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911139767.1A Active CN110929193B (en) | 2019-11-20 | 2019-11-20 | Information circulation display method, information circulation display device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110929193B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5625586B2 (en) * | 2010-07-28 | 2014-11-19 | ソニー株式会社 | Information processing apparatus, information processing method, and computer program |
CN109388446B (en) * | 2017-08-07 | 2021-07-09 | 腾讯科技(北京)有限公司 | Information processing method, device and storage medium |
CN107562465A (en) * | 2017-09-14 | 2018-01-09 | 东软集团股份有限公司 | The method, apparatus and storage medium and electronic equipment of control exposure |
CN110032402B (en) * | 2018-01-11 | 2024-07-23 | 财付通支付科技有限公司 | Refreshing method, refreshing device, refreshing equipment and storage medium |
CN110390570B (en) * | 2018-04-17 | 2024-08-23 | 北京京东尚科信息技术有限公司 | Picture display method and device, electronic equipment and storage medium |
CN109064280A (en) * | 2018-07-27 | 2018-12-21 | 北京优酷科技有限公司 | The methods of exhibiting and device of user's right |
CN109189300B (en) * | 2018-08-16 | 2022-04-22 | 腾讯科技(深圳)有限公司 | View circulation display method and device |
-
2019
- 2019-11-20 CN CN201911139767.1A patent/CN110929193B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110929193A (en) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106354873B (en) | Webpage loading method, device and system | |
CN112835499B (en) | Carousel graph display method, device, equipment and medium | |
CN107526592B (en) | Page adaptation method and device | |
CN106095917B (en) | Bookmark storage and display method and device and browser | |
CN105094622B (en) | Adjust the method and apparatus of form col width | |
CN109740041B (en) | Webpage crawling method and device, storage medium and computer equipment | |
CN111597475B (en) | Page returning method and device, electronic equipment and computer storage medium | |
CN111767002A (en) | Page display method, device, equipment and storage medium | |
CN106168959B (en) | Webpage layout method and device | |
CN103019720A (en) | Method and device for processing page in browser | |
CN105528200A (en) | Browser tab display method and device | |
CN113342451A (en) | Book prompt information display method, computing equipment and computer storage medium | |
CN114117274A (en) | Data rendering method and device, computer equipment and storage medium | |
CN106155521A (en) | A kind of method and apparatus carrying out returning operation in terminal | |
CN111143731B (en) | Display method and device for webpage interface zooming and terminal equipment | |
CN110929193B (en) | Information circulation display method, information circulation display device and electronic equipment | |
AU2016205616A1 (en) | Method of displaying content and electronic device implementing same | |
CN107092519B (en) | Function display method and device and terminal device | |
CN110020291B (en) | Webpage layout processing method and device | |
CN104267886B (en) | Method and device for displaying browser page | |
US20150154160A1 (en) | System and method for displaying image on webpage according to visible area | |
CN113297313B (en) | Table data display method and device, electronic equipment and storage medium | |
CN107316203B (en) | Method and device for detecting display information, computer readable storage medium and terminal | |
US20130262982A1 (en) | Quick access panel for displayng a web page on a mobile device | |
CN112987992B (en) | Navigation element display method and device and electronic equipment |
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 |