Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for displaying a text according to an embodiment of the present invention is shown. The text display method may be used in a server, and the text display method may include:
102, receiving a text display request sent by a terminal;
step 104, determining a text to be displayed corresponding to the request;
the text to be displayed is a text set on the server side, for example, a text publishing user can log in a server page and input a text requesting to be published, and the server stores the text input by the text publishing user as the text to be displayed.
And 106, returning a text display response to the terminal according to the determined text to be displayed, wherein the text display response is used for indicating the terminal to display the text to be displayed according to the specified dynamic effect.
In summary, in the text display method provided in the embodiments of the present invention, after receiving a text display request sent by a terminal, a text to be displayed corresponding to the request is determined, and a response for instructing the terminal to display the text to be displayed according to a specified dynamic effect is returned to the terminal, so that a terminal side can display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternately display a plurality of texts with a small number of words, thereby expanding the amount of text information that can be released in the limited display area, solving the problem in the prior art that a fixed display area can contain a limited text and has a single text content due to the text content being displayed in a static text form, and achieving an effect of improving information release efficiency.
Referring to fig. 2, a flowchart of a text display method according to another embodiment of the invention is shown. The text display method may be used to preprocess a text to be displayed in a server so that the text to be displayed may be displayed by a terminal according to a specified dynamic effect, and the text display method may include:
step 202, receiving a text display request sent by a terminal;
the terminal may be a terminal installed with a network application or having a network browsing function, such as a personal computer, a smart phone, or a tablet computer. After the terminal opens the web application or the web page, a request for displaying the text content at a certain specified position is sent to the server, for example, when the web application client or the web page contains text, a text display request for displaying the text is sent to the server.
Step 204, determining a text to be displayed corresponding to the text display request;
the text display request comprises display attribute information, wherein the display attribute information can comprise display time and/or display position; the server may determine the text to be displayed according to the display attribute information and a pre-stored correspondence between the display attribute information and the text to be displayed.
Specifically, the server may be a server of a text publishing platform, a text publishing user may log in the platform and publish text information through the platform, and when publishing text information, the text publishing user may specify attribute information such as a display position and a display time of a published text, for example, after the text publishing user logs in the text publishing platform, a position for displaying a text is selected, for example, the user selects "XX application client bottom area 1" as a display position for displaying text information published by the user, and then inputs one or more texts to be displayed that are requested to be published in the text publishing platform, taking publishing two texts as an example, the text publishing user inputs: "XX accurate orientation, help you find potential customer! "and" where XX is, where gold is! ", and selects a display time of the text information, such as" 2014-03-03 to 2014-03-04, 7:00-24:00 ". And the server of the text publishing platform stores the position and the display time of the text to be displayed, which is input by the text publishing user and corresponds to the text selected by the user. When a terminal receives a user instruction to start an XX application client, determining that a bottom area 1 of the client is a text display position, sending a text display request to a server of a text publishing platform, wherein the text display request comprises current time and a display position of text content, and assuming that the current time is 2014-03-03 and 9:00, the server inquires corresponding relations between pre-stored texts to be displayed and the display positions and the display time according to the current time and the display position, determines that the texts to be displayed corresponding to the request are in an XX accurate orientation, and helps you find a potential client! "and" where XX is, where gold is! ".
Step 206, determining one dynamic effect from the N dynamic effects as the specified dynamic effect, wherein N is more than or equal to 2;
the server may be provided with N dynamic effects, and the server may determine a dynamic effect specified by the server among the N preset dynamic effects as the specified dynamic effect; alternatively, the server may randomly determine one dynamic effect as the specified dynamic effect from the preset N dynamic effects.
The server may preset a plurality of dynamic effects, such as rolling from right to left, rolling from left to right, pausing-enlarging-disappearing, rolling from bottom to top, rolling from top to bottom, fading and the like. The appointed dynamic effect can be selected and appointed in the text publishing platform by the server according to a text publishing user, and can also be automatically appointed by the server according to the attribute information of the text to be displayed; for example, the text publishing platform may display a dynamic effect specifying interface, the text publishing user may select one dynamic effect in the dynamic effect specifying interface, and the server of the text publishing platform specifies the dynamic effect selected by the user as a specified dynamic effect of the text to be displayed; or the server of the text publishing platform pre-designates the dynamic effect corresponding to a certain display position in the XX application client to be circularly rolling from right to left.
Or, the server may also randomly select one dynamic effect as the specified dynamic effect, for example, when the server receives a text display request and determines a corresponding text to be displayed, one dynamic effect may be randomly selected from a plurality of preset dynamic effects as the specified dynamic effect of the text to be displayed this time.
Step 208, generating the designated display code according to the text to be displayed and the designated dynamic effect;
wherein the specified display code is for execution by the terminal to display the text to be displayed in accordance with the specified dynamic effect.
In addition, the server can also generate N candidate display codes respectively corresponding to the N dynamic effects according to the text to be displayed and the preset N dynamic effects, wherein the candidate display codes are used for being executed by the terminal to display the text to be displayed according to the dynamic effects corresponding to the candidate display codes; the server randomly determines a display code from the N candidate display codes as the designated display code.
When the server randomly selects a dynamic effect as the designated dynamic effect of the text to be displayed, the server can firstly generate display codes corresponding to each dynamic effect for the text to be displayed besides randomly selecting the designated dynamic effect and generating designated display codes after receiving a text display request, and when the server receives the text display request sent by the terminal and determines the corresponding text to be displayed, the server can randomly determine one display code from the display codes corresponding to the text to be displayed as the designated display code.
Step 210, a text display response containing the designated display code is returned to the terminal.
The server sends the text display response containing the appointed display code to the terminal, and the terminal can directly execute the appointed display code and display the text to be displayed at the corresponding display position according to the appointed dynamic effect. For example, the XX application client receives the response containing the designated display code and executes the designated display code directly, so as to display the "XX precise orientation in the dynamic effect of scrolling circularly from right to left in the bottom area 1 of the client, which helps you find the potential client! "and" where XX is, where gold is! ".
When the server randomly selects one dynamic effect as the designated dynamic effect, the designated dynamic effect corresponding to each text display request is randomly determined, so that the designated dynamic effects displayed by the terminals corresponding to different users at the same time may be different, and the designated dynamic effects displayed by the terminals corresponding to the same user at different times may also be different. For example, the user king and the user lie open the respective XX application clients at the same time, and the client corresponding to the user king may display "XX precise orientation in the bottom area 1 with a left-to-right scrolling effect to help you find a potential customer! "and" where XX is, where gold is! "and the clients corresponding to the user duels may display the same contents in turn in the bottom area 1 with the effect of pausing and then gradually zooming out. After the user king subsequently reopens the corresponding client, the client may scroll the above-mentioned content in a right-to-left loop in the bottom area 1.
In addition, the server can also return a response containing a text to be displayed to the terminal, wherein the text to be displayed is used for instructing the terminal to generate a specified display code according to the text to be displayed and a specified dynamic effect arranged in the terminal, and the specified display code is used for being executed by the terminal to display the text to be displayed according to the specified dynamic effect.
The step of specifying the dynamic effect according to the text to be displayed may also be performed on the terminal side, for example, after the server receives the text display request and determines the corresponding text to be displayed, the server directly carries the text to be displayed in a response returned to the terminal, and the terminal generates a specified display code according to the text to be displayed and the specified dynamic effect preset in the corresponding display position and executes the specified display code, so as to display the text to be displayed according to the specified dynamic effect. For example, the bottom area 1 of the XX application client presets a designated dynamic effect as fading in and fading out, after the XX application is opened in the terminal by the queen of the user, the terminal requests the server to display the text content of the bottom area 1 of the client, and the server precisely orients the text "XX" to be displayed, so as to help you find a potential client! "and" where XX is, where gold is! And returning the text to the terminal after carrying the text in the request response, and generating a display code by the terminal according to the text to be displayed and the appointed fade-in and fade-out effect and executing the display code.
In addition, the server of the text publishing platform may generate an animation file of the text to be displayed, such as a GIF (graphics interchange Format) file, according to the size of the display position and the specified dynamic effect, and return a response including the animation file to the terminal, and after receiving the response, the terminal directly displays the animation file at the display position, so as to achieve the effect of displaying the text to be displayed according to the specified dynamic effect.
According to the text display method provided by the embodiment of the invention, a text publishing user can publish a plurality of texts to be displayed at the same display position and circularly display the texts at the display position according to the specified dynamic effect, and more information can be displayed in a limited display area, so that the text content published by the user is richer, and the information publishing efficiency is improved.
In summary, in the text display method provided in the embodiments of the present invention, after receiving a text display request sent by a terminal, a text to be displayed corresponding to the request is determined, and a response for instructing the terminal to display the text to be displayed according to a specified dynamic effect is returned to the terminal, so that a terminal side can display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternately display a plurality of texts with a small number of words, thereby expanding the amount of text information that can be released in the limited display area, solving the problem in the prior art that a fixed display area can contain a limited text and has a single text content due to the text content being displayed in a static text form, and achieving an effect of improving information release efficiency.
Referring to fig. 3, a flowchart of a method for displaying a text according to an embodiment of the present invention is shown. The text display method can be used for displaying the text to be displayed through a specified dynamic effect in the terminal, and the text display method can comprise the following steps:
step 302, sending a text display request to a server;
step 304, receiving a text display response returned by the server, wherein the text display response is a response returned by the server according to the text to be displayed corresponding to the text display request determined by the server;
the text to be displayed is a text set on the server side, for example, a text publishing user can log in a server page and input a text requesting to be published, and the server stores the text input by the text publishing user as the text to be displayed.
And step 306, displaying the text to be displayed according to the specified dynamic effect.
In summary, in the text display method provided in the embodiments of the present invention, by sending the text display request to the server, receiving the response returned by the server after determining the text to be displayed corresponding to the text display request, and displaying the text to be displayed according to the specified dynamic effect, the terminal side may display a large amount of content in the limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, so as to expand the amount of text information that can be issued in the limited display area, solve the problem in the prior art that a fixed display area can accommodate a limited text and has a single text content due to the text content being displayed in a static text form, and achieve the effect of improving the information issuing efficiency.
Referring to fig. 4, a flowchart of a text display method according to another embodiment of the invention is shown. The text display method can be used for displaying the text to be displayed through the specified dynamic effect in the terminal, and the text display method can comprise the following steps:
step 402, sending a text display request to a server;
the terminal may be a terminal installed with a network application or having a network browsing function, such as a personal computer, a smart phone, or a tablet computer. After the terminal opens the web application or the web page, a request for displaying the text content at a certain specified position is sent to the server, for example, when the web application client or the web page contains text, a text display request for displaying the text is sent to the server.
Step 404, receiving a text display response returned by the server;
the response is a response returned according to the text to be displayed, wherein the response is the text to be displayed corresponding to the text display request determined by the server; the terminal may transmit a text display request including display attribute information, which may include a display time and/or a display location, to the server. The server may determine the text to be displayed according to the display attribute information and a pre-stored correspondence between the display attribute information and the text to be displayed. Please refer to the content instep 204 of the method shown in fig. 2, which is not described herein again.
Step 406, when the response includes a designated display code and the designated display code includes the text to be displayed, executing the designated display code to display the text to be displayed according to the designated dynamic effect;
the specific method of the specific method is shown instep 206 and step 208 in the corresponding embodiment of fig. 2, and details are not repeated here.
Step 408, when the response includes the text to be displayed, generating a designated display code according to the text to be displayed and a designated dynamic effect set in the terminal, and executing the designated display code to display the text to be displayed according to the designated dynamic effect.
The step of specifying the dynamic effect according to the text to be displayed may also be performed on the terminal side, for example, after the server receives the text display request and determines the corresponding text to be displayed, the text to be displayed is directly carried in a response returned to the terminal, and the terminal generates a specified display code according to the text to be displayed and the specified dynamic effect preset in the terminal at the corresponding display position in advance and executes the specified display code, so as to display the text to be displayed according to the specified dynamic effect.
In addition, the server of the text publishing platform can generate a code corresponding to the text to be displayed, and also can generate an animation file, such as a GIF file, of the text to be displayed according to the size of the display position and the specified dynamic effect, and return a response containing the animation file to the terminal, and after receiving the response, the terminal directly displays the animation file at the display position, so that the effect of displaying the text to be displayed according to the specified dynamic effect is achieved.
In summary, in the text display method provided in the embodiments of the present invention, by sending the text display request to the server, receiving the response returned by the server after determining the text to be displayed corresponding to the text display request, and displaying the text to be displayed according to the specified dynamic effect, the terminal side may display a large amount of content in the limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, so as to expand the amount of text information that can be issued in the limited display area, solve the problem in the prior art that a fixed display area can accommodate a limited text and has a single text content due to the text content being displayed in a static text form, and achieve the effect of improving the information issuing efficiency.
Referring to fig. 5, a flowchart of a method for displaying a text according to an embodiment of the present invention is shown. The text display method can be used for preprocessing a text to be displayed in a system comprising a terminal and a server so that the text to be displayed can be displayed by the terminal according to a specified dynamic effect, and the text display method can comprise the following steps:
step 502, the terminal sends a text display request to a server;
the terminal may be a terminal installed with a network application or having a network browsing function, such as a personal computer, a smart phone, or a tablet computer. After the terminal opens the web application or the web page, a request for displaying the text content at a certain specified position is sent to the server, for example, when the web application client or the web page contains text, a text display request for displaying the text is sent to the server.
Step 504, the server determines a text to be displayed corresponding to the text display request;
the text display request comprises display attribute information, wherein the display attribute information can comprise display time and/or display position; the server may determine the text to be displayed according to the display attribute information and a pre-stored correspondence between the display attribute information and the text to be displayed.
Specifically, the server may be a server of a text publishing platform, a text publishing user may log in the platform and publish text information through the platform, and when publishing text information, the text publishing user may specify attribute information such as a display position and a display time of a published text, for example, after the text publishing user logs in the text publishing platform, a position for displaying a text is selected, for example, the user selects "XX application client bottom area 1" as a display position for displaying text information published by the user, and then inputs one or more texts to be displayed that are requested to be published in the text publishing platform, taking publishing two texts as an example, the text publishing user inputs: "XX accurate orientation, help you find potential customer! "and" where XX is, where gold is! ", and selects a display time of the text information, such as" 2014-03-03 to 2014-03-04, 7:00-24:00 ". And the server of the text publishing platform stores the position and the display time of the text to be displayed, which is input by the text publishing user and corresponds to the text selected by the user. When a terminal receives a user instruction to start an XX application client, determining that a bottom area 1 of the client is a text display position, sending a text display request to a server of a text publishing platform, wherein the text display request comprises current time and a display position of text content, and assuming that the current time is 2014-03-03 and 9:00, the server inquires corresponding relations between pre-stored texts to be displayed and the display positions and the display time according to the current time and the display position, determines that the texts to be displayed corresponding to the request are in an XX accurate orientation, and helps you find a potential client! "and" where XX is, where gold is! ".
Step 506, the server determines one dynamic effect from the N dynamic effects as the specified dynamic effect, wherein N is more than or equal to 2;
the server may be provided with N dynamic effects, and the server may determine a dynamic effect specified by the server among the N preset dynamic effects as the specified dynamic effect; alternatively, the server may randomly determine one dynamic effect as the specified dynamic effect from the preset N dynamic effects.
The server may preset a plurality of dynamic effects, such as rolling from right to left, rolling from left to right, pausing-enlarging-disappearing, rolling from bottom to top, rolling from top to bottom, fading and the like. The appointed dynamic effect can be selected and appointed in the text publishing platform by the server according to a text publishing user, and can also be automatically appointed by the server according to the attribute information of the text to be displayed; for example, the text publishing platform may display a dynamic effect specifying interface, the text publishing user may select one dynamic effect in the dynamic effect specifying interface, and the server of the text publishing platform specifies the dynamic effect selected by the user as a specified dynamic effect of the text to be displayed; or the server of the text publishing platform pre-designates the dynamic effect corresponding to a certain display position in the XX application client to be circularly rolling from right to left.
Or, the server may also randomly select one dynamic effect as the specified dynamic effect, for example, when the server receives a text display request and determines a corresponding text to be displayed, one dynamic effect may be randomly selected from a plurality of preset dynamic effects as the specified dynamic effect of the text to be displayed this time.
Step 508, the server generates the appointed display code according to the text to be displayed and the appointed dynamic effect;
wherein the specified display code is for execution by the terminal to display the text to be displayed in accordance with the specified dynamic effect.
In addition, the server can also generate N candidate display codes respectively corresponding to the N dynamic effects according to the text to be displayed and the preset N dynamic effects, wherein the candidate display codes are used for being executed by the terminal to display the text to be displayed according to the dynamic effects corresponding to the candidate display codes; the server randomly determines a display code from the N candidate display codes as the designated display code.
When the server randomly selects a dynamic effect as the designated dynamic effect of the text to be displayed, the server can firstly generate display codes corresponding to each dynamic effect for the text to be displayed besides randomly selecting the designated dynamic effect and generating designated display codes after receiving a text display request, and when the server receives the text display request sent by the terminal and determines the corresponding text to be displayed, the server can randomly determine one display code from the display codes corresponding to the text to be displayed as the designated display code.
Step 510, the server returns a text display response containing the appointed display code to the terminal;
and step 512, the terminal executes the specified display code to display the text to be displayed according to the specified dynamic effect.
The terminal can directly execute the specified display code, and display the text to be displayed at the corresponding display position by the specified dynamic effect. For example, the XX application client receives the response containing the designated display code and executes the designated display code directly, so as to display the "XX precise orientation in the dynamic effect of scrolling circularly from right to left in the bottom area 1 of the client, which helps you find the potential client! "and" where XX is, where gold is! ".
When the server randomly selects one dynamic effect as the designated dynamic effect, the designated dynamic effect corresponding to each text display request is randomly determined, so that the designated dynamic effects displayed by the terminals corresponding to different users at the same time may be different, and the designated dynamic effects displayed by the terminals corresponding to the same user at different times may also be different. For example, the user king and the user lie open the respective XX application clients at the same time, and the client corresponding to the user king may display "XX precise orientation in the bottom area 1 with a left-to-right scrolling effect to help you find a potential customer! "and" where XX is, where gold is! "and the clients corresponding to the user duels may display the same contents in turn in the bottom area 1 with the effect of pausing and then gradually zooming out. After the user king subsequently reopens the corresponding client, the client may scroll the above-mentioned content in a right-to-left loop in the bottom area 1.
Or when the response contains the text to be displayed, the terminal generates a specified display code according to the text to be displayed and the specified dynamic effect, and executes the specified display code to display the text to be displayed according to the specified dynamic effect.
The step of specifying the dynamic effect according to the text to be displayed may also be performed on the terminal side, for example, after the server receives the text display request and determines the corresponding text to be displayed, the server directly carries the text to be displayed in a response returned to the terminal, and the terminal generates a specified display code according to the text to be displayed and the specified dynamic effect preset in the corresponding display position and executes the specified display code, so as to display the text to be displayed according to the specified dynamic effect. For example, the bottom area 1 of the XX application client presets a designated dynamic effect as fading in and fading out, after the XX application is opened in the terminal by the queen of the user, the terminal requests the server to display the text content of the bottom area 1 of the client, and the server precisely orients the text "XX" to be displayed, so as to help you find a potential client! "and" where XX is, where gold is! And returning the text to the terminal after carrying the text in the request response, and generating a display code by the terminal according to the text to be displayed and the appointed fade-in and fade-out effect and executing the display code.
In addition, the server of the text publishing platform can generate a code corresponding to the text to be displayed, and also can generate an animation file, such as a GIF file, of the text to be displayed according to the size of the display position and the specified dynamic effect, and return a response containing the animation file to the terminal, and after receiving the response, the terminal directly displays the animation file at the display position, so that the effect of displaying the text to be displayed according to the specified dynamic effect is achieved.
According to the text display method provided by the embodiment of the invention, a text publishing user can publish a plurality of texts to be displayed at the same display position and circularly display the texts at the display position according to the specified dynamic effect, and more information can be displayed in a limited display area, so that the text content published by the user is richer, and the information publishing efficiency is improved.
As shown in fig. 6, a workflow diagram of a text publishing platform is shown. The text publishing platform comprises a customer relationship management system, a text management foreground page, a text material preprocessing system and a text management system. When a text publishing user needs to publish a text, requesting to log in a text publishing platform through a customer relationship management system, and after the customer relationship management system reads authority information input by the publishing user during logging in and successfully verifies the authority information, displaying a text management foreground page to the text publishing user; the text publishing user uploads or inputs text materials and edits text attribute information in a text management foreground page, wherein the text material comprises an edited text display position and display time, and optionally, the text publishing user can also select a dynamic effect used by the text material; the text material preprocessing system carries out dynamism on the text material input by a text publishing user, namely generates a display code for dynamically displaying the text material according to a specified dynamic effect or randomly selects the dynamic effect, and correspondingly stores the generated display code and the text attribute information edited by the text publishing user; when a terminal requests to display a text, a text management system receives a request sent by the terminal, the request can include a corresponding text display position, the text management system compares the text display position and the current time with the text display position and the display time in the text attribute information, if the text display position and the current time are matched with the text display position and the display time, the dynamic advertisement content containing the display code is sent to the terminal, and the terminal executes the display code to dynamically display characters in the text material at the corresponding display position.
In summary, in the text display method provided in the embodiments of the present invention, after receiving a text display request sent by a terminal, a server determines a text to be displayed corresponding to the request, and returns a response to the terminal for instructing the terminal to display the text to be displayed according to a specified dynamic effect, and a terminal side may display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternately display a plurality of texts with a small number of words, so as to expand the amount of text information that can be released in the limited display area, solve the problem in the prior art that a fixed display area can contain a limited text and has a single text content due to the text content being displayed in a form of a static text, and achieve an effect of improving information release efficiency.
Referring to fig. 7, a device configuration diagram of a server according to an embodiment of the present invention is shown. The server may be configured to perform the text display method as shown in fig. 1 or fig. 2, and the server may include:
arequest receiving module 601, configured to receive a text display request sent by a terminal;
atext determining module 602, configured to determine a text to be displayed corresponding to the request;
the text to be displayed is a text set on the server side, for example, a text publishing user can log in a server page and input a text requesting to be published, and the server stores the text input by the text publishing user as the text to be displayed.
Aresponse module 603, configured to return a text display response to the terminal according to the determined text to be displayed, where the text display response is used to instruct the terminal to display the text to be displayed according to a specified dynamic effect.
In summary, the server provided in the embodiment of the present invention, after receiving a text display request sent by a terminal, determines a text to be displayed corresponding to the request, and returns a response to the terminal for instructing the terminal to display the text to be displayed according to a specified dynamic effect, so that the terminal side can display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, thereby expanding the amount of text information that can be issued in the limited display area, solving the problem in the prior art that a fixed display area can contain a limited text and has a single text content due to the text content being displayed in a static text form, and achieving an effect of improving information issuing efficiency.
Referring to fig. 8, a device configuration diagram of a server according to another embodiment of the present invention is shown. The server may be configured to execute the text display method shown in fig. 1 or fig. 2, and preprocess a text to be displayed so that the text to be displayed may be displayed by a terminal according to a specified dynamic effect, where the server may include:
arequest receiving module 701, configured to receive a text display request sent by a terminal;
atext determining module 702, configured to determine a text to be displayed corresponding to the request;
aresponse module 703, configured to return a text display response to the terminal according to the determined text to be displayed, where the text display response is used to instruct the terminal to display the text to be displayed according to a specified dynamic effect.
Theresponse module 703 includes:
a first response unit 7031, configured to return a response including a specified display code to the terminal, where the specified display code includes the text to be displayed, and the specified display code is used for being executed by the terminal to display the text to be displayed according to the specified dynamic effect.
Theresponse module 703 includes:
a dynamic effect determining unit 7032, configured to determine, before the first responding unit 7031 returns a response including a specified display code to the terminal, one dynamic effect from N dynamic effects as the specified dynamic effect, where N is greater than or equal to 2;
a first generating unit 7033, configured to generate the specified display code according to the text to be displayed and the specified dynamic effect;
wherein the server is provided with the N dynamic effects.
The dynamic effect determination unit 7032 includes:
a first determiningsubunit 7032a, configured to determine, as the specified dynamic effect, a dynamic effect specified by the server among the N dynamic effects;
a second determining subunit 7032b, configured to randomly determine one dynamic effect from the N dynamic effects as the specified dynamic effect.
Theresponse module 703 further includes:
a second generating unit 7034, configured to generate, before the first responding unit 7031 returns a response including a specified display code to the terminal, N candidate display codes respectively corresponding to the N dynamic effects according to the text to be displayed and the N dynamic effects, where the candidate display codes are used to be executed by the terminal to display the text to be displayed according to the dynamic effects corresponding to the candidate display codes;
a display code determination unit 7035 configured to randomly determine one display code from the N candidate display codes as the designated display code;
wherein the server is provided with the N dynamic effects.
Theresponse module 703 includes:
a second responding unit 7036, configured to return a response including the to-be-displayed text to the terminal, where the to-be-displayed text is used to instruct the terminal to generate a specified display code according to the to-be-displayed text and the specified dynamic effect set in the terminal, and the specified display code is used to be executed by the terminal to display the to-be-displayed text according to the specified dynamic effect.
Thetext determining module 702 is configured to determine the text to be displayed according to the display attribute information and a correspondence between the pre-stored display attribute information and the text to be displayed;
the text display request comprises display attribute information, and the display attribute information comprises display time and/or display position.
In summary, the server provided in the embodiment of the present invention, after receiving a text display request sent by a terminal, determines a text to be displayed corresponding to the request, and returns a response to the terminal for instructing the terminal to display the text to be displayed according to a specified dynamic effect, so that the terminal side can display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, thereby expanding the amount of text information that can be issued in the limited display area, solving the problem in the prior art that a fixed display area can contain a limited text and has a single text content due to the text content being displayed in a static text form, and achieving an effect of improving information issuing efficiency.
Referring to fig. 9, there is shown an apparatus configuration diagram of a terminal according to an embodiment of the present invention. The terminal may be configured to perform the text display method as shown in fig. 3 or 4, and the terminal may include:
arequest sending module 801, configured to send a text display request to a server;
aresponse receiving module 802, configured to receive a text display response returned by the server, where the text display response is a response returned by the server according to a text to be displayed corresponding to the text display request determined by the server;
and thedisplay module 803 is configured to display the text to be displayed according to the specified dynamic effect.
In summary, the terminal provided in the embodiment of the present invention sends the text display request to the server, receives the response returned by the server after determining the text to be displayed corresponding to the text display request, and displays the text to be displayed according to the specified dynamic effect, and the terminal side can display a large amount of content in the limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, so as to expand the amount of text information that can be released in the limited display area, solve the problem in the prior art that a fixed display area can accommodate a limited text and has a single text content due to the text content being displayed in a form of a static text, and achieve the effect of improving the information release efficiency.
Referring to fig. 10, there is shown an apparatus configuration diagram of a terminal according to another embodiment of the present invention. The terminal may be configured to perform a text display method as shown in fig. 3 or fig. 4 to display a text to be displayed with a specified dynamic effect, and may include:
arequest sending module 901, configured to send a text display request to a server;
aresponse receiving module 902, configured to receive a text display response returned by the server, where the text display response is a response returned by the server according to a text to be displayed corresponding to the text display request determined by the server;
and thedisplay module 903 is used for displaying the text to be displayed according to the specified dynamic effect.
Thedisplay module 903 includes:
a first execution unit 9031, configured to, when the text display response includes a designated display code and the designated display code includes the text to be displayed, execute the designated display code to display the text to be displayed according to the designated dynamic effect.
Thedisplay module 903 includes:
a third generating unit 9032, configured to generate, when the text display response includes the text to be displayed, an appointed display code according to the text to be displayed and the appointed dynamic effect set in the terminal;
asecond execution unit 9033, configured to execute the specified display code to display the text to be displayed according to the specified dynamic effect.
Therequest sending module 901 is configured to send the text display request including display attribute information to the server, where the display attribute information includes display time and/or display position.
In summary, the terminal provided in the embodiment of the present invention sends the text display request to the server, receives the response returned by the server after determining the text to be displayed corresponding to the text display request, and displays the text to be displayed according to the specified dynamic effect, and the terminal side can display a large amount of content in the limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternatively display a plurality of texts with a small number of words, so as to expand the amount of text information that can be released in the limited display area, solve the problem in the prior art that a fixed display area can accommodate a limited text and has a single text content due to the text content being displayed in a form of a static text, and achieve the effect of improving the information release efficiency.
Referring to fig. 11, a system configuration diagram of a text display system according to an embodiment of the present invention is shown. The text display system may be configured to execute the text display method shown in fig. 5, and preprocess the text to be displayed, so that the text to be displayed may be displayed by the terminal according to the specified dynamic effect. The text display system may include:
such as theserver 200 shown in fig. 7 or 8 and the terminal 400 shown in fig. 9 or 10. Theserver 200 and the terminal 400 are connected to each other via a network.
In summary, in the system provided in the embodiment of the present invention, after receiving a text display request sent by a terminal, a server determines a text to be displayed corresponding to the request, and returns a response to the terminal for instructing the terminal to display the text to be displayed according to a specified dynamic effect, and a terminal side can display a large amount of content in a limited display area, for example, scroll-display a text with a large number of words in a long and narrow display area, or alternately display a plurality of texts with a small number of words, so as to expand the amount of text information that can be released in the limited display area, solve the problem in the prior art that a fixed display area can contain a limited number of texts and has a single text content due to the text content being displayed in a static text form, and achieve an effect of improving information release efficiency.
It should be noted that: in the server and the terminal provided in the above embodiments, when displaying a text to be displayed, only the division of the above functional modules is used for illustration, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the server and the terminal provided by the above embodiments belong to the same concept as the text display method embodiment, and the specific implementation process thereof is described in the method embodiment and is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.