Summary of the invention
Fundamental purpose of the present invention is to provide a kind of method and apparatus of webpage typesetting, can make the outward appearance of the node in the easy position of noting of netpage user approach as far as possible user's hobby, thereby contribute to improve the visit capacity of webpage.
For achieving the above object, according to an aspect of the present invention, provide a kind of method of webpage typesetting.
The method of webpage typesetting of the present invention comprises: determine active user at current date the propensity value to each node in a plurality of nodes in reference to webpage, wherein, described propensity value is the linear function of default objective factor, this objective factor is the weighted sum of the objective factor that corresponds respectively to one or more dates of preliminary election, if and current date is this preliminary election date, the objective factor that current date is corresponding is got the first preset value, otherwise get the second preset value that is less than described the first preset value, Monomial coefficient in described linear function and constant term coefficient are to access and describedly the positive correlation of the access times of this node is set during with reference to webpage according to described user within the historical period of preliminary election, a plurality of nodes to current web page carry out typesetting, wherein in a plurality of nodes of current web page, color and/or size approach described with reference to the larger color of node of the described propensity value in webpage and/or the node of size, and the position of this node in current web page is near the pre-selected locations in the man-machine interface of display web page.
Alternatively, after described current web page is provided for described active user, the method also comprises: the access times of described node are revised to described Monomial coefficient and constant term coefficient when described active user accesses described current web page within the period of preliminary election.
Alternatively, described positive correlation is described access times and default stop factor sum, and this stop factor was directly proportional to the time that described user rests on described node.
Alternatively, described the first preset value is that 1, the second preset value is 0.
Alternatively, the center that described pre-selected locations is described man-machine interface.
According to a further aspect in the invention, provide a kind of webpage composing device.
Webpage composing device of the present invention comprises: determination module, for determine active user at current date the propensity value to each node in a plurality of nodes with reference to webpage, wherein, described propensity value is the linear function of default objective factor, this objective factor is the weighted sum of the objective factor that corresponds respectively to one or more dates of preliminary election, if and current date is this preliminary election date, the objective factor that current date is corresponding is got the first preset value, otherwise get the second preset value that is less than described the first preset value, Monomial coefficient in described linear function and constant term coefficient are to access and describedly the positive correlation of the access times of this node is set during with reference to webpage according to described user within the historical period of preliminary election, type-setting module, for a plurality of nodes of current web page are carried out to typesetting, wherein in a plurality of nodes of current web page, color and/or size approach described with reference to the larger color of node of the described propensity value in webpage and/or the node of size, and the position of this node in current web page is near the pre-selected locations in the man-machine interface of display web page.
Alternatively, also comprise modified module, for basis, when described active user accesses described current web page within the period of preliminary election, the access times of described node are revised to described Monomial coefficient and constant term coefficient.
Alternatively, described positive correlation is described access times and default stop factor sum, and this stop factor was directly proportional to the time that described user rests on described node.
Alternatively, described the first preset value is that 1, the second preset value is 0.
Alternatively, the center that described pre-selected locations is described man-machine interface.
According to technical scheme of the present invention, according to user's historical behavior, determine this user for the fancy grade of the web page joint of various outward appearances, then when webpage typesetting, the web page joint with the outward appearance that user likes is more placed in to the webpage destination locations of more waking up when showing, make the outward appearance of the node in position that netpage user easily notes approach as far as possible user's hobby, improve the clicking rate of user to these nodes, thereby contribute to improve the visit capacity of webpage.
Embodiment
Below in conjunction with accompanying drawing, one exemplary embodiment of the present invention is explained, comprising the various details of the embodiment of the present invention, to help understanding, they should be thought to be only exemplary.Therefore, those of ordinary skills will be appreciated that, can make various changes and modification to the embodiments described herein, and can not deviate from scope and spirit of the present invention.Equally, for clarity and conciseness, in following description, omitted the description to known function and structure.
In the technical scheme of the present embodiment, first the history access record to the webpage that comprises a plurality of reference modes of appointment according to user, determines the fancy grade of user to the reference node of various outward appearances.This fancy grade is weighed with propensity value in the present embodiment, and the reference mode of every kind of outward appearance has a propensity value.Then each in the current webpage of wanting typesetting treated to typesetting node carries out typesetting, when typesetting, the more approaching typesetting node for the treatment of of reference mode that outward appearance and propensity value are higher is placed on the destination locations of more waking up, also be that user is more prone to the position of noting, this position is determined according to the actual conditions of webpage, for example the most attractive position of some webpage is the middle part of the forms of webpage when showing for the first time, the top that is positioned at webpage having.The outward appearance of web page joint comprises two aspects: node color, node size.When considering the degree of closeness of outward appearance of two nodes, for node color and size, which is placed on prior consideration status, can determine according to the actual conditions of webpage.Because the size of browser window is different, the destination locations of waking up in webpage also can change in addition.So in webpage, can add some codes to obtain the dimension information of browser window, thus the position of dynamic knot modification, and the node that user more likes is like this located in the more awake destination locations in man-machine interface.
Below in conjunction with Fig. 1, the technical scheme of the present embodiment is elaborated.Fig. 1 is according to the basic step schematic diagram of the method for the webpage typesetting of the embodiment of the present invention.As shown in Figure 1, the method mainly comprises step S11 and step S12.
Step S11: determine active user at current date the propensity value to each node in a plurality of nodes in reference to webpage.The active user is here the current user who signs in to website.Only have user to sign in to website, just can carry out webpage typesetting for this user.As a rule, user is for the node fancy grade of certain outward appearance, and existing stable one side, is affected by objective factor also.Objective factor is a lot, mainly in the present embodiment considers the impact of date on user, such as the kinds such as date at birthday of user, festivals or holidays, special event place.And in the present embodiment, think that the date is linear on user's impact, user's propensity value can be calculated by formula (1):
L
10=K×(D1+D2+...+Dn)+B………………(1)
L wherein
10represent the propensity value of user to the reference mode 1 with reference in webpage, K and the B default coefficient for hereinafter illustrating, D1, D2 ... Dn is the objective factor on date of considering corresponding to needs, and for example D1 is corresponding to user's birthday, and D2 to D7 is corresponding to the seven-day holiday on National Day etc.Calculating L
10time, if current date is the date of need considering, the corresponding objective factor gets 1 this date, otherwise gets 0.For example current is user's birthday, but is not other dates that need to consider, D1=1, and D2 to Dn gets 0.Here also can get other numerical value, for example, with another number, replace above-mentionedly 1, with one, than this another less numerical value of number, replace above-mentioned 0.Need the date of considering to set flexibly.Can from user's log-on message, obtain the date that some need be considered, such as other Special Days of birthday or relevant user etc.
Above-mentioned K and B need to determine according to user's history performance.For with reference to webpage, user is more to certain node visit number of times wherein within a historical period, illustrates that user more likes this node, and the two is positive correlation.If it is longer that user rests on time of this node after access in addition, also mean that user has higher fancy grade to this node.So in the present embodiment, user is that actual propensity value represents with formula (2) to the actual preferences degree of node:
L
1s=C+RT………………(2)
Wherein L1s represents the actual propensity value of user to the reference mode 1 with reference in webpage; C represents the number of clicks of user to reference mode 1; T represents that user rests on the time of reference mode 1, and unit is second; R be span be (0,1/60] a random number because T in seconds time numerical value larger, so the effect of R is to reduce the 2nd weight that stops the factor in formula.If do not considered, user rests on the time of this node after access, stops mono-of factor R T and also can from formula (2), omit.
According to formula (2), just can K and the B in formula (1) be set.Get phase of history period, according to formula (2), count the L of this every day in period
1s, then calculate the L of this every day in period according to formula (1)
10(composing an initial value first to while calculating for the first time K and B), then investigates a series of L that calculate
10with a series of L
1sbetween difference.Can take the date as transverse axis, L
10and L
1sbe respectively the longitudinal axis, by a series of L
10with a series of L
1sdescribed point and fitting a straight line obtain two straight lines, then adjust K and B these two straight lines are approached as much as possible, to obtain the setting value of K and B.
From formula (1), can find out L
1sbe the linear function on date, so each in formula (1) is with reference to after deciding, can calculate the L of current date
1s, user in current date the propensity value to node 1.A plurality of joint knock types (1) with reference in webpage are calculated, can obtain content shown in table 1.Wherein various outward appearances are the shades of colour of node and the various combination of various sizes.
Table 1
Node number |
Outward appearance number |
Propensity value |
Node 1 |
Outward appearance 1 |
5 |
Node 2 |
Outward appearance 2 |
3 |
Node 3 |
Outward appearance 3 |
6 |
Node 4 |
Outward appearance 4 |
8 |
Node 5 |
Outward appearance 5 |
2 |
…… |
…… |
…… |
Node N |
Outward appearance N |
4 |
Table 1 is the fancy grade of user to the node of various outward appearances.When webpage is carried out to typesetting, if a node has or approaches the higher outward appearance of propensity value in table 1, this node is just arrived webpage comparatively awake destination locations when showing by typesetting.
Step S12: a plurality of nodes to current web page carry out typesetting.In the process of typeset of current web page, for each, treat the node of typesetting, can first from table 1, search the node approaching with this node outward appearance, propensity value according to this node in table just can roughly determine that user treats the tendency degree of the node of typesetting to this, then as mentioned above, if this tendency degree is higher, this is treated to typesetting node is put into the destination locations of comparatively waking up in default webpage.For example this position is that the ,Ze Yigai center, center of web displaying window is that initial point is dispersed distribution to each node, and the higher node of the degree of being wherein inclined to is the closer to this initial point.
Till step S12, the typesetting of current web page is accomplished.After webpage is offered to user, can add up user's new operational circumstances, the current web page that the typesetting of usining completes is as with reference to webpage, the result of use formula (2) is adjusted K and the B in formula (1), then the typesetting of webpage is adjusted, so can repeatedly carry out, that is to say K and B be can unceasing study parameter.
For the device of the webpage typesetting of the present embodiment, explain below.With reference to figure 2, Fig. 2 is according to the schematic diagram of the basic structure of the device of the webpage typesetting of the embodiment of the present invention.As shown in Figure 2, the device 20 of webpage typesetting mainly comprises determination module 21 and type-setting module 22.
Determination module 21 for determine active user at current date the propensity value to each node in a plurality of nodes with reference to webpage.Wherein, propensity value is the linear function of default objective factor, this objective factor is the weighted sum of the objective factor that corresponds respectively to one or more dates of preliminary election, if and current date is this preliminary election date, the objective factor that current date is corresponding is got the first preset value, otherwise get the second preset value that is less than the first preset value, the Monomial coefficient in this linear function and constant term coefficient are that basis is set the positive correlation of the access times of this node when within the historical period of preliminary election, active user accesses with reference to webpage.
Type-setting module 22 carries out typesetting for a plurality of nodes to current web page, wherein in a plurality of nodes of current web page, color and/or size approach with reference to the color of the larger node of the propensity value in webpage and/or the node of size, and the position of this node in current web page is near the pre-selected locations in the man-machine interface of display web page.
The device 20 of webpage typesetting can also comprise modified module (not shown), when active user accesses current web page within the period of preliminary election for basis, the access times of node is revised Monomial coefficient K and the constant term coefficient B of formulas (1).
According to the technical scheme of the embodiment of the present invention, according to user's historical behavior, determine this user for the fancy grade of the web page joint of various outward appearances, then when webpage typesetting, the web page joint with the outward appearance that user likes is more placed in to the webpage destination locations of more waking up when showing, make the outward appearance of the node in position that netpage user easily notes approach as far as possible user's hobby, improve the clicking rate of user to these nodes, thereby contribute to improve the visit capacity of webpage.
Ultimate principle of the present invention has below been described in conjunction with specific embodiments, but, it is to be noted, for those of ordinary skill in the art, can understand whole or any steps or the parts of method and apparatus of the present invention, can be in the network of any calculation element (comprising processor, storage medium etc.) or calculation element, with hardware, firmware, software or their combination, realized, this is that those of ordinary skills use their basic programming skill just can realize in the situation that having read explanation of the present invention.
Therefore, object of the present invention can also realize by move a program or batch processing on any calculation element.Described calculation element can be known fexible unit.Therefore, object of the present invention also can be only by providing the program product that comprises the program code of realizing described method or device to realize.That is to say, such program product also forms the present invention, and the storage medium that stores such program product also forms the present invention.Obviously, described storage medium can be any storage medium of developing in any known storage medium or future.
Also it is pointed out that in apparatus and method of the present invention, obviously, each parts or each step can decompose and/or reconfigure.These decomposition and/or reconfigure and should be considered as equivalents of the present invention.And, carry out the step of above-mentioned series of processes and can order naturally following the instructions carry out in chronological order, but do not need necessarily according to time sequencing, to carry out.Some step can walk abreast or carry out independently of one another.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be understood that, depend on designing requirement and other factors, various modifications, combination, sub-portfolio can occur and substitute.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection domain of the present invention.