Summary of the invention
Fundamental purpose of the present invention is the generation method and apparatus providing a kind of hotspot path to mark, with the problem that the formation efficiency solving hotspot path mark in prior art is low.
To achieve these goals, according to an aspect of the embodiment of the present invention, provide the generation method of a kind of hotspot path mark.The generation method that hotspot path according to the present invention marks comprises: load the configuration file pre-set, and wherein, described configuration file is the configuration file of the configuration parameter being previously provided with hotspot path mark; Described configuration parameter is read from described configuration file; And on webpage, generate described hotspot path mark according to the configuration parameter read.
Further, on webpage, generate described hotspot path mark according to the configuration parameter read to comprise: the configuration parameter according to reading generates one or more DIV element on described webpage; And marked by hotspot path described in a DIV Element generation, or, generate described hotspot path by described multiple DIV element combinations and mark.
Further, generate described hotspot path mark by described multiple DIV element combinations to comprise: the framework described multiple DIV element being spliced into described hotspot path mark according to the configuration parameter read; And add the color and Word message that pre-set, to form described hotspot path mark in the framework to mark to described hotspot path.
Further, described configuration parameter comprises: the text color of the color of the Graphicxtras Frames Collection of described DIV element, the border color of described DIV element, the frame size of described DIV element, described hotspot path mark, the Word message of described hotspot path mark, the word size of described hotspot path mark, the character script of described hotspot path mark, described hotspot path mark.
Further, after generating described hotspot path mark according to the configuration parameter read on webpage, described generation method also comprises: the amendment parameter receiving described configuration file, and described amendment parameter is the parameter for replacing the configuration parameter in described configuration file; Described configuration parameter is replaced with described amendment parameter, regenerates described configuration file; Load the configuration file regenerated; Described amendment parameter is read from the described configuration file regenerated; And on described webpage, regenerate hotspot path mark according to the amendment parameter read.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide the generating apparatus of a kind of hotspot path mark.The generating apparatus that hotspot path according to the present invention marks comprises: loading unit, and for loading the configuration file pre-set, wherein, described configuration file is the configuration file of the configuration parameter being previously provided with hotspot path mark; Reading unit, for reading described configuration parameter from described configuration file; And first generation unit, for generating described hotspot path mark on webpage according to the configuration parameter read.
Further, described first generation unit comprises: the first generation module, for generating one or more DIV element according to the configuration parameter read on described webpage; And second generation module, for being marked by hotspot path described in a DIV Element generation, or, generate described hotspot path by described multiple DIV element combinations and mark.
Further, described second generation module comprises: splicing submodule, for described multiple DIV element to be spliced into the framework of described hotspot path mark according to the configuration parameter read; And interpolation submodule, add in the framework that marks to described hotspot path the color and Word message that pre-set, to form described hotspot path mark.
Further, described configuration parameter comprises: the text color of the color of the Graphicxtras Frames Collection of described DIV element, the border color of described DIV element, the frame size of described DIV element, described hotspot path mark, the Word message of described hotspot path mark, the word size of described hotspot path mark, the character script of described hotspot path mark, described hotspot path mark.
Further, described generating apparatus also comprises: receiving element, for after generating described hotspot path mark according to the configuration parameter read on webpage, receive the amendment parameter of described configuration file, described amendment parameter is the parameter for replacing the configuration parameter in described configuration file; Second generation unit, for described configuration parameter is replaced with described amendment parameter, regenerates described configuration file, and wherein, described loading unit is also for loading the configuration file regenerated; Described reading unit also for reading described amendment parameter from the described configuration file regenerated; Described first generation unit also for regenerating hotspot path mark on described webpage according to the amendment parameter read.
According to the embodiment of the present invention, by loading pre-configured configuration file, configuration parameter is read in order to generate focus path tag from this configuration file, hand drawn hotspot path mark is carried out without the need to designer, only need configure corresponding parameter in configuration file, solve the problem that the formation efficiency of hotspot path mark in prior art is low, reach the effect improving hotspot path mark formation efficiency.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments provide the generation method of a kind of hotspot path mark.The method can be realized by computer equipment.
Fig. 2 is the process flow diagram of the generation method marked according to the hotspot path of the embodiment of the present invention.As shown in Figure 2, to comprise step as follows for this generation method:
Step S102, loads the configuration file pre-set.Wherein, configuration file is the configuration file of the configuration parameter being previously provided with hotspot path mark.
Step S104, reads configuration parameter from configuration file.
Step S106, the configuration parameter according to reading generates focus path tag on webpage.
The configuration parameter being used for generating focus path tag is encapsulated in configuration file, before needs generate focus path tag, this configuration file can be configured according to the hotspot path mark that will generate, add the configuration parameter of hotspot path mark.When generating focus path tag, first loading the configuration file configured, then from this configuration file, reading configuration parameter, in order to generate focus path tag.Particularly, can utilize the technology of HTML on webpage, generate focus path tag according to configuration parameter.
Above-mentioned configuration parameter can comprise: the Word message of the frame size of the Graphicxtras Frames Collection of DIV element, the border color of DIV element, DIV element, the color of hotspot path mark, hotspot path mark, the word size of hotspot path mark, the character script of hotspot path mark, the text color of hotspot path mark.
Particularly, the configuration parameter defining popular path tag in configuration file comprises: a series of appearance attributes such as background colour, Word message, font, word size, text color, length, width, Graphicxtras Frames Collection, border color.Concrete form is as follows:
/ * border color */
border-color:#9bc170;
/ * Graphicxtras Frames Collection */
border-style:solid;
/ * border width */
border-width:1px;
/ * font size */
font-size:12px;
/ * font */
font-family:serif;
/ * inset spacing */
padding:0px 5px;
The capable height * of/*/
line-height:20px;
/ * font color */
color:#8db85d;
/ * background color */
background-color:#e1ecff;
/ * Word message */
Content: " naturally searching for "
Corresponding configuration parameter is searched, in order to generate focus path tag according to the form of above-mentioned parameter definition.
According to the embodiment of the present invention, by loading pre-configured configuration file, configuration parameter is read in order to generate focus path tag from this configuration file, hand drawn hotspot path mark is carried out without the need to designer, only need configure corresponding parameter in configuration file, solve the problem that the formation efficiency of hotspot path mark in prior art is low, reach the effect improving hotspot path mark formation efficiency.
Preferably, on webpage, generate focus path tag according to the configuration parameter read to comprise: the configuration parameter according to reading generates one or more DIV element on webpage; And marked by a DIV Element generation hotspot path, or, generate focus path tag by multiple DIV element combinations.
DIV element is used to as in html document, the content of bulk provides the element of structure and background.The number of DIV element is marked by the hotspot path finally generated and determines, can be one or more.When arranging configuration file, can select or add corresponding parameter.Webpage generates one or more DIV element, if a DIV element, then directly can add content on this DIV element, form hotspot path mark; If multiple DIV element, then can splice the plurality of DIV element according to configuration parameter, after forming framework, add content again, form hotspot path mark.
According to the embodiment of the present invention, by utilizing DIV element to generate hotspot path mark, improve the formation efficiency of hotspot path mark.
Further, generate focus path tag by multiple DIV element combinations to comprise: the framework described multiple DIV element being spliced into hotspot path mark according to the configuration parameter read; And in the framework of focus path tag, add the color and Word message that pre-set, to form hotspot path mark.
When adopting multiple DIV Element generation hotspot path mark, multiple DIV element being spliced into the framework of hotspot path mark, then adding content in this framework.
For 3 DIV elements (comprising rectangle A, rectangle B and rectangle C), first generate three rectangle frames, A, B, C, wherein rectangle A can wrap up rectangle B and C, and rectangle B is positioned over left side, and rectangle C is positioned over right side, as shown in Figure 3.
Word message, word size, textcolor to be inserted in rectangle B according to configuration parameter and draw border color (in drafting, a left side, lower frame, do not draw left frame), the background colour of rectangle B, as shown in Figure 4.
In rectangle C, draw a triangle, then fill this leg-of-mutton frame and background colour according to the configuration information in step one, as shown in Figure 5.Like this, browser just can demonstrate the mark in a popular path.
Preferably, after generating focus path tag according to the configuration parameter read on webpage, generation method also comprises: the amendment parameter receiving configuration file, and amendment parameter is the parameter for replacing the configuration parameter in configuration file; Configuration parameter is replaced with amendment parameter, regenerate configuration file; Load the configuration file regenerated; Amendment parameter is read from the configuration file regenerated; And on webpage, regenerate hotspot path mark according to the amendment parameter read.
After generation focus path tag, if need the mark to generating to modify, then can write amendment parameter in configuration file, in order to modify to configuration parameter.After having revised parameter, reload amended configuration file, from amended configuration file, again read parameter, generate amended hotspot path mark.
In the embodiment of the present invention, because configuration parameter hotspot path marked is added in configuration file, when carrying out the amendment of hotspot path mark, without the need to repainting the picture of hotspot path mark, only need modify to the parameter of configuration file, recycle amended parameter and generate focus path tag, substantially increase the formation efficiency of hotspot path mark, reduce production cost.
The embodiment of the present invention additionally provides the generating apparatus of a kind of hotspot path mark.This device can realize its function by computer equipment.It should be noted that, the embodiment of the present invention hotspot path mark generating apparatus may be used for perform the embodiment of the present invention provide hotspot path mark generation method, the embodiment of the present invention hotspot path mark generation method also can be provided by the embodiment of the present invention hotspot path mark generating apparatus perform.
Fig. 6 is the schematic diagram of the generating apparatus marked according to the hotspot path of the embodiment of the present invention.As shown in Figure 6, the generating apparatus of this hotspot path mark comprises: loading unit 10, reading unit 20 and the first generation unit 30.
Loading unit 10 is for loading the configuration file pre-set, and wherein, configuration file is the configuration file of the configuration parameter being previously provided with hotspot path mark.
Reading unit 20 for reading configuration parameter from configuration file.
First generation unit 30 for generating focus path tag according to the configuration parameter read on webpage.
The configuration parameter being used for generating focus path tag is encapsulated in configuration file, before needs generate focus path tag, this configuration file can be configured according to the hotspot path mark that will generate, add the configuration parameter of hotspot path mark.When generating focus path tag, first loading the configuration file configured, then from this configuration file, reading configuration parameter, in order to generate focus path tag.Particularly, can utilize the technology of HTML on webpage, generate focus path tag according to configuration parameter.
Above-mentioned configuration parameter can comprise: the Word message of the frame size of the Graphicxtras Frames Collection of DIV element, the border color of DIV element, DIV element, the color of hotspot path mark, hotspot path mark, the word size of hotspot path mark, the character script of hotspot path mark, the text color of hotspot path mark.
According to the embodiment of the present invention, by loading pre-configured configuration file, configuration parameter is read in order to generate focus path tag from this configuration file, hand drawn hotspot path mark is carried out without the need to designer, only need configure corresponding parameter in configuration file, solve the problem that the formation efficiency of hotspot path mark in prior art is low, reach the effect improving hotspot path mark formation efficiency.
Preferably, the first generation unit comprises: the first generation module, for generating one or more DIV element according to the configuration parameter read on webpage; And second generation module, for being marked by a DIV Element generation hotspot path, or, generate focus path tag by multiple DIV element combinations.
DIV element is used to as in html document, the content of bulk provides the element of structure and background.The number of DIV element is marked by the hotspot path finally generated and determines, can be one or more.When arranging configuration file, can select or add corresponding parameter.Webpage generates one or more DIV element, if a DIV element, then directly can add content on this DIV element, form hotspot path mark; If multiple DIV element, then can splice the plurality of DIV element according to configuration parameter, after forming framework, add content again, form hotspot path mark.
According to the embodiment of the present invention, by utilizing DIV element to generate hotspot path mark, improve the formation efficiency of hotspot path mark.
Preferably, the second generation module comprises: splicing submodule, for multiple DIV element to be spliced into the framework of hotspot path mark according to the configuration parameter read; And interpolation submodule, for adding the color and Word message that pre-set in the framework to focus path tag, to form hotspot path mark.
When adopting multiple DIV Element generation hotspot path mark, multiple DIV element being spliced into the framework of hotspot path mark, then adding content in this framework.
For 3 DIV elements (comprising rectangle A, rectangle B and rectangle C), first generate three rectangle frames, A, B, C, wherein rectangle A can wrap up rectangle B and C, and rectangle B is positioned over left side, and rectangle C is positioned over right side, as shown in Figure 3.
Word message, word size, textcolor to be inserted in rectangle B according to configuration parameter and draw border color (in drafting, a left side, lower frame, do not draw left frame), the background colour of rectangle B, as shown in Figure 4.
In rectangle C, draw a triangle, then fill this leg-of-mutton frame and background colour according to the configuration information in step one, as shown in Figure 5.Like this, browser just can demonstrate the mark in a popular path.
Preferably, generating apparatus also comprises: receiving element, for after generating focus path tag according to the configuration parameter read on webpage, receives the amendment parameter of configuration file, and amendment parameter is the parameter for replacing the configuration parameter in configuration file; Second generation unit, for configuration parameter is replaced with amendment parameter, regenerates configuration file, and wherein, loading unit is also for loading the configuration file regenerated; Reading unit also for reading amendment parameter from the configuration file regenerated; First generation unit also for regenerating hotspot path mark on webpage according to the amendment parameter read.
After generation focus path tag, if need the mark to generating to modify, then can write amendment parameter in configuration file, in order to modify to configuration parameter.After having revised parameter, reload amended configuration file, from amended configuration file, again read parameter, generate amended hotspot path mark.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.