Summary of the invention
The main object of the present invention is to provide the method and apparatus of a kind of webpage layout, it is possible to make net
The outward appearance of the node in the position that in Ye, user easily notes as close possible to the hobby of user, from
And it is favorably improved the visit capacity of webpage.
For achieving the above object, according to an aspect of the invention, it is provided a kind of webpage layout
Method.
The method of the webpage layout of the present invention comprise determining that active user at current date to reference
The propensity value of each node in multiple nodes in webpage, wherein, described propensity value is to preset visitor
The linear function of sight factor, this objective factor is to correspond respectively to one or more dates of preliminary election
The weighted sum of the objective factor, and if current date be the date of this preliminary election, then current date
The corresponding objective factor takes the first preset value, otherwise takes pre-less than the second of described first preset value
If value, the Monomial coefficient in described linear function and constant term coefficient are according to going through in preliminary election
In the history period, described user accesses described with reference to positive correlation to the access times of this node during webpage
Relation sets;Multiple nodes of current web page are carried out typesetting, wherein multiple at current web page
In node, color and/or size are closer to the described joint bigger with reference to the described propensity value in webpage
The color of point and/or the node of size, the closer display in this node position in current web page net
Pre-selected locations in the man machine interface of page.
Alternatively, after described current web page is provided to described active user, the method is also
Including: to described when accessing described current web page according to active user described within the period of preliminary election
The access times of node revise described Monomial coefficient and constant term coefficient.
Alternatively, described positive correlation is described access times and the stop factor sum preset,
The time that this stop factor rests on described node to described user is directly proportional.
Alternatively, described first preset value is 1, and the second preset value is 0.
Alternatively, described pre-selected locations is the center of described man machine interface.
According to a further aspect in the invention, it is provided that a kind of webpage layout device.
The webpage layout device of the present invention comprises determining that module, is used for determining that active user is working as
The front date to the propensity value with reference to each node in multiple nodes in webpage, wherein, described in incline
Being to preset the linear function of objective factor to value, this objective factor is correspond respectively to preliminary election one
The weighted sum of the objective factor on individual or multiple date, and if current date be the date of this preliminary election,
The objective factor that then current date is corresponding takes the first preset value, otherwise takes and presets less than described first
Second preset value of value, the Monomial coefficient in described linear function and constant term coefficient are bases
In the historical period of preliminary election, described user accesses described with reference to secondary to the access of this node during webpage
The positive correlation of number sets;Type-setting module, for arranging multiple nodes of current web page
Version, wherein in multiple nodes of current web page, color and/or size are closer to described reference net
The color of the node that described propensity value in Ye is bigger and/or the node of size, this node is currently
Pre-selected locations in the man machine interface of the closer display in the position webpage in webpage.
Alternatively, also include modified module, for according to described current use within the period of preliminary election
When family accesses described current web page, the access times of described node are revised described Monomial coefficient and
Constant term coefficient.
Alternatively, described positive correlation is described access times and the stop factor sum preset,
The time that this stop factor rests on described node to described user is directly proportional.
Alternatively, described first preset value is 1, and the second preset value is 0.
Alternatively, described pre-selected locations is the center of described man machine interface.
According to technical scheme, according to the historical behavior of user determine this user for
The fancy grade of the web page joint of various outward appearances, then when webpage layout, will have user more
The web page joint of the outward appearance adding hobby is placed in webpage and more wakes up destination locations when display, makes webpage
The outward appearance of the node in the position that middle user easily notes, as close possible to the hobby of user, improves
User's clicking rate to these nodes, thus it is favorably improved the visit capacity of webpage.
Detailed description of the invention
Below in conjunction with accompanying drawing, the one exemplary embodiment of the present invention is explained, including this
The various details of bright embodiment are to help understanding, it should they are thought the most exemplary.
Therefore, those of ordinary skill in the art are it should be appreciated that can do the embodiments described herein
Go out various changes and modifications, without departing from scope and spirit of the present invention.Equally, in order to clearly
Chu, with simple and clear, eliminates the description to known function and structure in description below.
In the technical scheme of the present embodiment, first comprise multiple reference node according to user to specify
The history access record of the webpage of point, determines user's hobby journey to the reference mode of various outward appearances
Degree.This fancy grade is weighed with propensity value in the present embodiment, the reference mode of every kind of outward appearance
It is respectively arranged with a propensity value.Then each in the webpage currently wanting typesetting is treated that typesetting node is carried out
Typesetting, when typesetting, reference mode that outward appearance and propensity value are higher is closer treats typesetting node
It is placed on destination locations of more waking up, namely user is more prone to the position of attention, this position root
Determining according to the practical situation of webpage, the most attractive position of such as some webpage is that webpage exists
The middle part of forms during display, the top being then positioned at webpage having for the first time.Outside web page joint
Sight includes two aspects: Node color, node size.The connecing of outward appearance considering two nodes
When short range is spent, for Node color and size, which is placed on prior consideration status, Ke Yigen
Determine according to the practical situation of webpage.Size additionally, due to browser window is different, wakes up in webpage
Destination locations also can change.So webpage can add some codes to obtain browser window
Dimension information, thus dynamically adjust the position of node, the node of such user more hobby is in place
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 this
The basic step schematic diagram of the method for the webpage layout of inventive embodiments.As it is shown in figure 1, the party
Method mainly includes step S11 and step S12.
Step S11: determine that active user is each to reference in multiple nodes in webpage of current date
The propensity value of individual node.Here active user is the user being currently logged into website.Only use
Family signs in website, just can carry out webpage layout for this user.As a rule, user couple
In the node fancy grade of certain outward appearance, existing stable one side, also affected by objective factor.
Objective factor is a lot, the main consideration date impact on user in the present embodiment, such as user's
Birthday, festivals or holidays, the kind such as date at specific event place.And in the present embodiment, it is believed that
Date is linear on the impact of user, i.e. the propensity value of user can be calculated by formula (1):
L10=K × (D1+D2+ ...+Dn)+B ... ... ... (1)
Wherein L10Representing user's propensity value to the reference mode 1 in reference webpage, K and B is
The predetermined coefficient that will be explained below, D1, D2 ... Dn are corresponding to needing the day considered
The objective factor of phase, such as D1 corresponds to seven days National Day corresponding to the birthday of user, D2 to D7
Long holidays etc..Calculating L10Time, if current date is the date needing to consider, then this date pair
The objective factor answered takes 1, otherwise takes 0.It is the most currently the birthday of user, but is not that other need
Date to be considered, then D1=1, D2 to Dn takes 0.Here other numerical value can also be taken,
Such as replace above-mentioned 1 with another number, count less numerical value with one than this another and replace above-mentioned
0.The date considered is needed to set flexibly.Can obtain from the log-on message of user
Other Special Days etc. on the date that need to consider, such as birthday or relevant user.
Above-mentioned K and B then needs the history performance according to user to determine.For reference webpage,
User is the most to certain node visit number of times therein in a historical period, illustrates that user is more
Liking this node, i.e. the two is positive correlation.Additionally if the user while rest on after Fang Wening
The time of this node is the longest, also implies 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:
L1s=C+RT ... ... ... (2)
Wherein L1sRepresent that user is to the actual propensity value with reference to the reference mode 1 in webpage;C table
Show user's number of clicks to reference mode 1;T represents that user rests on the time of reference mode 1,
Unit is the second;R be span be (0,1/60] a random number because T is with the second as list
During position, numerical value is relatively big, so the effect of R is the 2nd weight stopping the factor in reduction formula.As
Do not consider that user rests on the time of this node after accessing, then stop factor R T mono-and may be used yet
Omit from formula (2).
Just K and B in formula (1) can be set according to formula (2).Take phase of history
In period, count the L of this every day in period according to formula (2)1s, when calculating this further according to formula (1)
The L of every day phase10(composing an initial value first to when calculating for the first time K and B), then investigates calculating
A series of L10With a series of L1sBetween difference.Can be with the date as transverse axis, L10And L1s
It is respectively the longitudinal axis, by a series of L10With a series of L1sDescribed point and fitting a straight line obtain two straight lines,
Adjust again K and B make these two straight lines close to, to obtain the setting value of K and B.
From formula (1) it can be seen that L1sIt is the linear function on date, so in formula (1)
After each is with reference to deciding, the L of current date can be calculated1s, i.e. user is in working as the day before yesterday
The phase propensity value to node 1.Calculate with reference to the multiple joint knock types (1) in webpage, permissible
Obtain content shown in table 1.The most various outward appearances be the shades of colour of node and various sizes not
With combination.
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 user's fancy grade to the node of various outward appearances.Webpage is being carried out typesetting
Time, if node has or close to the higher outward appearance of the propensity value in table 1, then this joint
Point is just typeset webpage and more wakes up destination locations when display.
Step S12: multiple nodes of current web page are carried out typesetting.Typesetting to current web page
Cheng Zhong, for each node treating typesetting, first can search from table 1 and connect with this node outward appearance
Near node, just can substantially determine that according to this node propensity value in table user is to this row for the treatment of
The tendency degree of the node of version, if then as it has been described above, this tendency degree is higher, then should
Treat the destination locations of more waking up that typesetting node is put in default webpage.Such as this position is webpage
The center of display window, Ze Yigai center is that initial point dissipates distribution, Qi Zhongqing to each node
To the highest node of degree the closer to this initial point.
To step S12, the typesetting to current web page is accomplished.Webpage is being supplied to
After user, the new operational circumstances of user can be added up, with typesetting complete current
Webpage, as with reference to webpage, uses the result of formula (2) to be adjusted K and B in formula (1)
Whole, the typesetting to webpage is adjusted then, so can be repeated, say, that K and B
It is can the parameter of unceasing study.
Device below for the webpage layout of the present embodiment is explained.With reference to Fig. 2, Fig. 2 it is
The schematic diagram of the basic structure of the device of webpage layout according to embodiments of the present invention.Such as Fig. 2 institute
Showing, the device 20 of webpage layout mainly includes determining module 21 and type-setting module 22.
Determine that module 21 is for determining active user's multiple nodes in current date is to reference webpage
In the propensity value of each node.Wherein, propensity value is to preset the linear function of objective factor,
This objective factor is the weighting of the objective factor on the one or more dates corresponding respectively to preliminary election
With, and if current date be the date of this preliminary election, then the objective factor that current date is corresponding takes
First preset value, otherwise takes the second preset value less than the first preset value, in this linear function
Monomial coefficient and constant term coefficient are to access ginseng according to active user in the historical period of preliminary election
When examining webpage, the positive correlation to the access times of this node sets.
Type-setting module 22 is for carrying out typesetting, wherein at current net to multiple nodes of current web page
In multiple nodes of page, color and/or size are closer to reference to the bigger joint of the propensity value in webpage
The color of point and/or the node of size, the closer display in this node position in current web page net
Pre-selected locations in the man machine interface of page.
The device 20 of webpage layout can also include modified module (not shown), for root
When accessing current web page according to active user within the period of preliminary election, the access times to node revise formula
(1) the Monomial coefficient K in and constant term coefficient B.
Technical scheme according to embodiments of the present invention, determines this use according to the historical behavior of user
Family is for the fancy grade of the web page joint of various outward appearances, then when webpage layout, will have
The web page joint of the outward appearance that user more likes is placed in webpage and more wakes up destination locations when display,
Make the outward appearance happiness as close possible to user of node in the position that netpage user easily notes
Good, improve user's clicking rate to these nodes, thus be favorably improved the visit capacity of webpage.
The ultimate principle of the present invention is described, however, it is desirable to point out above in association with specific embodiment
, for those of ordinary skill in the art, it is to be understood that the method and apparatus of the present invention
Whole or any steps or parts, can any calculating device (include processor,
Storage medium etc.) or calculate device network in, with hardware, firmware, software or they
Combination realized, this is that those of ordinary skill in the art are reading the explanation of the present invention
In the case of use their basic programming skill can be achieved with.
Therefore, the purpose of the present invention can also be by running a program on any calculating device
Or batch processing realizes.Described calculating device can be known fexible unit.Therefore,
The purpose of the present invention can also comprise the program realizing described method or device only by offer
The program product of code realizes.It is to say, such program product also constitutes the present invention,
And storing has the storage medium of such program product also to constitute the present invention.Obviously, deposit described in
Storage media can be any known storage medium or any storage medium developed in the future.
It may also be noted that in apparatus and method of the present invention, it is clear that each parts or each
Step can decompose and/or reconfigure.These decompose and/or reconfigure and should be regarded as this
Bright equivalents.Further, the step performing above-mentioned series of processes can be naturally according to explanation
Order perform in chronological order, but be not required to perform the most sequentially in time.Some
Step can perform parallel or independently of one another.
Above-mentioned detailed description of the invention, is not intended that limiting the scope of the invention.This area
Technical staff, it is to be understood that depend on that design requires and other factors, can occur various
The amendment of various kinds, combination, sub-portfolio and replacement.Any within the spirit and principles in the present invention
Amendment, equivalent and the improvement etc. made, within should be included in scope.