Summary of the invention
Fundamental purpose of the present invention is display packing and the device of the thermodynamic chart providing a kind of web page interlinkage region, to solve the more difficult problem of thermodynamic chart that prior art checks that link area is less.
To achieve these goals, according to an aspect of the present invention, a kind of display packing of thermodynamic chart of web page interlinkage region is provided.The display packing of the thermodynamic chart in this web page interlinkage region comprises: the size detecting Object linking in webpage; Judge whether the size of Object linking is less than pre-set dimension; If judge that the size of Object linking is less than pre-set dimension, obtain the position of Object linking in webpage; The measure-alike target area with Object linking is obtained in the position of Object linking in webpage; Obtain the click volume of target area; Detect target area and whether receive trigger pip; If detect that target area receives trigger pip, then according to the thermodynamic chart in the click volume display-object region of target area.
Further, the size of Object linking comprises the width of Object linking and the height of Object linking, pre-set dimension comprises predetermined width and preset height, judges whether the size of Object linking is less than pre-set dimension and comprises: judge whether the width of Object linking is less than predetermined width; If judge that the width of Object linking is less than predetermined width, judge whether the height of Object linking is less than preset height.
Further, after obtaining the position of Object linking in webpage, the display packing of the thermodynamic chart in this web page interlinkage region also comprises: create the object that Object linking is corresponding, wherein, object comprises the width of Object linking, the height of Object linking, the position of Object linking in webpage; Add in set by object corresponding for Object linking, wherein, set is used for storage width and is less than predetermined width, is highly less than the object of the link correspondence of preset height.
Further, trigger pip comprises following any one or more signal: the first trigger pip, and the color for trigger target region is visible color; Second trigger pip, for the thermodynamic chart in the display-object region, click volume trigger target region according to target area; 3rd trigger pip, the color for trigger target region is transparent.
Further, trigger pip comprises the first trigger pip, the second trigger pip and the 3rd trigger pip, and whether detection target area receives trigger pip comprises: detect target target area and whether receive the first trigger pip; If detect that target area receives the first trigger pip, then the color in trigger target region is visible color; If do not detect that target area receives the first trigger pip, detect target area and whether receive the second trigger pip; If detect that target area receives the second trigger pip, then trigger target region is according to the thermodynamic chart in the click volume display-object region of target area; If do not detect that target area receives the second trigger pip, detect target area and whether receive the 3rd trigger pip; If detect that target area receives the 3rd trigger pip, then the color in trigger target region is transparent.
To achieve these goals, according to a further aspect in the invention, a kind of display device of thermodynamic chart of web page interlinkage region is provided.The display device of the thermodynamic chart in this web page interlinkage region comprises: first detection module, for detecting the size of Object linking in webpage; First judge module, for judging whether the size of Object linking is less than pre-set dimension; First acquisition module, for when judging that the size of Object linking is less than pre-set dimension, obtains the position of Object linking in webpage; Second acquisition module, for the measure-alike target area at position acquisition and Object linking; 3rd acquisition module, for obtaining the click volume of target area; Whether the second detection module, receive trigger pip for detecting target area; Display module, for when detecting that target area receives trigger pip, then according to the thermodynamic chart in the click volume display-object region of target area.
Further, the size of the Object linking that first detection module detects comprises the width of Object linking and the height of Object linking, predetermined width and preset height is comprised as the pre-set dimension with reference to size in first judge module, first judge module comprises: first judges submodule, for judging whether the width of Object linking is less than predetermined width; Second judges submodule, for when judging that the width of Object linking is less than predetermined width, judges whether the height of Object linking is less than preset height.
Further, the display device of the thermodynamic chart in this web page interlinkage region also comprises: creation module, and for creating object corresponding to Object linking, wherein, object comprises the width of Object linking, the height of Object linking, the position of Object linking in webpage; Add module, for adding in set by object corresponding for Object linking, wherein, set is used for storage width and is less than predetermined width, is highly less than the object of the link correspondence of preset height.
Further, the trigger pip that the second detection module detects comprises following any one or more signal: the first trigger pip, and the color for trigger target region is visible color; Second trigger pip, for the thermodynamic chart in the display-object region, click volume trigger target region according to target area; 3rd trigger pip, the color for trigger target region is transparent.
Further, the trigger pip that the second detection module detects comprises the first trigger pip, the second trigger pip and the 3rd trigger pip, and the second detection module comprises: the first detection sub-module, whether receives the first trigger pip for detecting target area; First trigger module, for when detecting that target area receives the first trigger pip, the color in trigger target region is visible color; Second detection sub-module, for when not detecting that target area receives the first trigger pip, detecting target area and whether receiving the second trigger pip; Second trigger module, for when detecting that target area receives the second trigger pip, according to the thermodynamic chart in the display-object region, click volume trigger target region of target area; 3rd detection sub-module, for ought not detecting that target area receives the second trigger pip, detecting target area and whether receiving the 3rd trigger pip; 3rd trigger module, detect that target area receives the 3rd trigger pip for working as, the color in trigger target region is transparent.
By the present invention, adopt the size detecting Object linking in webpage; Judge whether the size of Object linking is less than pre-set dimension; If judge that the size of Object linking is less than pre-set dimension, obtain the position of Object linking in webpage; In the measure-alike target area of position acquisition and Object linking; Obtain the click volume with the measure-alike target area of Object linking; Detect and whether receive trigger pip with the measure-alike target area of Object linking; Trigger pip is received with the measure-alike target area of Object linking if detected, then according to and the click volume of the measure-alike target area of Object linking show and the thermodynamic chart of measure-alike target area of Object linking, solve the problem that thermodynamic chart that prior art checks that link area is less is more difficult.This invention is by obtaining the width being linked at position in webpage and this link and height that are less than predetermined width and preset height, create size in this position and link identical target area with this, when this target area receives trigger pip, the thermodynamic chart of this target area is shown according to the click volume of this target area, this invention does not need frame to select link area, when this target area receives trigger pip, namely can check the thermodynamic chart of this target area, and then reach the succinct effect easily of operation.
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 application's scheme 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 application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application 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 the embodiment of the application 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.
The present invention aims to provide a kind of display packing and device of thermodynamic chart of web page interlinkage region.
Fig. 1 is the process flow diagram of the display packing of the thermodynamic chart in web page interlinkage region according to the embodiment of the present invention.As shown in Figure 1, the display packing of the thermodynamic chart in this web page interlinkage region comprises following step S101 to step S107:
Step S101, detects the size of Object linking in webpage.
Object linking is any link in webpage in all-links, and the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment defines the method for the Object linking obtaining specified size.The dimensional parameters of Object linking comprises the width of Object linking and the height of Object linking.First this embodiment obtains the all-links in webpage, preferably, webpage in this embodiment is hyper text markup language (HyperText Mark-up Language, referred to as HTML) webpage, wherein, document (docuent) is to the built-in objects liking Javascript, all codes of Javascript can access document (docuent) object, the html web page that each loading is browsed can become document (docuent) object, utilize link (links) attribute of document (docuent) object can return all-links in webpage.After obtaining the all-links in webpage, obtain the size of each Object linking respectively, particularly, comprise the width obtaining each Object linking and the height obtaining each Object linking.This embodiment preferably adopts offsetWidth and offsetHeight of link (link) object to realize obtaining the width of Object linking and the height of Object linking.
Step S102, judges whether the size of Object linking is less than pre-set dimension.
Obtaining the size of Object linking, namely after the width of Object linking and height, judge whether the size of Object linking is less than pre-set dimension, wherein, pre-set dimension comprises predetermined width and preset height.Preferably, the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment judges whether the size of Object linking is less than pre-set dimension and comprises: judge whether the width of Object linking is less than predetermined width; If judge that the width of Object linking is less than predetermined width, judge whether the height of Object linking is less than preset height.Only judge that the width of Object linking is less than predetermined width, and when the height of Object linking is less than preset height, just can judge that the size of Object linking is less than pre-set dimension.The size of Object linking and pre-set dimension compare by the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment, object is to obtain the less link of link area in webpage, wherein, the less size referring to link of link area is less than pre-set dimension, and pre-set dimension can set according to concrete analysis demand.If judge that the size of Object linking is less than pre-set dimension, then obtain the position of Object linking in webpage; If judge that the size of Object linking is not less than pre-set dimension, then repeat to judge to other link in webpage successively.
Step S103, if judge that the size of Object linking is less than pre-set dimension, obtains the position of Object linking in webpage.
When judging that the width of Object linking is less than predetermined width, and the height of Object linking is when being less than preset height, the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment will obtain the position of Object linking in webpage that size is less than pre-set dimension, preferably, the position of Object linking in webpage adopts the form of coordinate to represent.Using the summit in the webpage lower left corner as true origin, webpage is below as horizontal ordinate, and the webpage left side is as ordinate, then in webpage, optional position can represent with unique coordinate.
After obtaining the position of Object linking in webpage, the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment also comprises: create the object that Object linking is corresponding, wherein, object comprises the width of Object linking, the height of Object linking, the position of Object linking in webpage; Add in set by object corresponding for Object linking, wherein, set is used for storage width and is less than predetermined width, is highly less than the object of the link correspondence of preset height.The position of Object linking in webpage represents with coordinate.After having traveled through the all-links in webpage, return this set, namely returned size and be less than the position of the Object linking of pre-set dimension and the width of Object linking and height.
Step S104, obtains the measure-alike target area with Object linking in the position of Object linking in webpage.
When Web page loading thermodynamic chart, first the method for the Object linking of the acquisition specified size defined in the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment is called, obtain the size that size is less than the Object linking of pre-set dimension, comprise the width of Object linking and the height of Object linking, and the position of Object linking in webpage.The measure-alike target area with Object linking is created in the position of Object linking in webpage, the display packing in the web page interlinkage region of this embodiment preferably adopts Picture function Rectangle to create the measure-alike target area with Object linking, and is set to transparent by the color of target area.In the position of Object linking in webpage, for the Object linking in this webpage creates the transparent target area of color, this transparent target area is equivalent to the covering layer of Object linking in webpage.Target area is preferably set to transparent by this embodiment, is conducive to the information such as title and click volume of the Object linking observing this target area intuitively.
Step S105, obtains the click volume of target area.
When the user accesses a web page, the behavioral data of this user access can be recorded in database, and wherein, the behavioral data of this user access, as the data foundation of web analytics, specifically can comprise the access duration of user, number of clicks and click location etc.Preferably, webpage is divided into the region of multiple 10*10 pixel size by the display packing of the thermodynamic chart in the web page interlinkage region of this embodiment, and the click data of optional position is all using the click data as this region top left co-ordinate point in this region.Such as, the click data at coordinate position to be the click data at (11,15) place using the coordinate position in the region as this coordinate points place be (10,10) place.The user accessing this webpage can have one, also can have multiple.The click volume of same user on this webpage comprises the click volume of this user in this webpage zones of different.Front end script in this embodiment can collect all click datas of all users, comprises the number of clicks and click location etc. of user, and will be stored in database by these click datas.The click volume obtaining target area can obtain by searching from the database storing user click data, namely first determines the position of target area in webpage, then searches in a database and adds up the click volume of all users in target area.
Step S106, detects target area and whether receives trigger pip.
Trigger pip comprises following any one or more signal: the first trigger pip, and the color for trigger target region is visible color; Second trigger pip, for the thermodynamic chart in the display-object region, click volume trigger target region according to target area; 3rd trigger pip, the color for trigger target region is transparent.Preferably, the first trigger pip in this embodiment is the signal in mouse target approach region, and the second trigger pip is the signal that mouse clicks target area, and the 3rd trigger pip is the signal that mouse leaves target area.
When trigger pip comprises the first trigger pip, the second trigger pip and the 3rd trigger pip, whether the detection target area of this embodiment receives trigger pip comprises: detect target area and whether receive the first trigger pip; If detect that target area receives the first trigger pip, then the color in trigger target region is visible color; If do not detect that target area receives the first trigger pip, detect target area and whether receive the second trigger pip; If detect that target area receives the second trigger pip, then trigger target region is according to the thermodynamic chart in the click volume display-object region of target area; If do not detect that target area receives the second trigger pip, detect target area and whether receive the 3rd trigger pip; If detect that target area receives the 3rd trigger pip, then the color in trigger target region is transparent.
Step S107, if detect that target area receives trigger pip, then according to the thermodynamic chart in the click volume display-object region of target area.
The display packing of the thermodynamic chart in the web page interlinkage region of this embodiment is when detecting that target area receives the first trigger pip, for target area is added to incoming event process function, enter in event handling function at this color of target area is set to visible color; When detecting that target area receives the second trigger pip, for click event process function is added in target area, in this click event process function, the thermodynamic chart of target area is shown, wherein the thermodynamic chart of target area determines according to the click volume of target area, the click volume of target area is higher, the color of the thermodynamic chart of this target area is darker, and the click volume of target area is lower, and the color of the thermodynamic chart of this target area is more shallow; When detecting that target area receives the 3rd trigger pip, adding for target area and leaving event handling function, leaving in event handling function at this color of target area is arranged transparent.
The display packing of the thermodynamic chart in the web page interlinkage region of this embodiment adopts the size detecting Object linking in webpage; Judge whether the size of Object linking is less than pre-set dimension; If judge that the size of Object linking is less than pre-set dimension, obtain the position of Object linking in webpage; The measure-alike target area with Object linking is obtained in the position of Object linking in webpage; Obtain the click volume with the measure-alike target area of Object linking; Detect and whether receive trigger pip with the measure-alike target area of Object linking; Trigger pip is received with the measure-alike target area of Object linking if detected, then show the thermodynamic chart with the measure-alike target area of Object linking according to the click volume of the measure-alike target area of Object linking, solve the problem that thermodynamic chart that prior art checks that link area is less is more difficult, reach the effect of the thermodynamic chart checking web page interlinkage region quickly and easily.
From above description, can find out, the display packing of the thermodynamic chart in the web page interlinkage region of the embodiment of the present invention is less than the position of the link area of predetermined width and preset height and the size of link area by adopting to obtain in webpage, size and the measure-alike target area of this link area is created in this position, and at the thermodynamic chart that this target area display web page links, solve the problem that thermodynamic chart that prior art checks that link area is less is more difficult, reach the effect of being convenient to check web page interlinkage region thermodynamic chart.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides a kind of display device of thermodynamic chart of web page interlinkage region.It should be noted that, the display device of the thermodynamic chart in this web page interlinkage region may be used for the display packing of the thermodynamic chart in the web page interlinkage region performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the display device of the thermodynamic chart in web page interlinkage region according to the embodiment of the present invention.As shown in Figure 2, the display device of the thermodynamic chart in this web page interlinkage region comprises: first detection module 10, the first judge module 20, first acquisition module 30, second acquisition module the 40, three acquisition module 50, second detection module 60 and display module 70.
First detection module 10, for detecting the size of Object linking in webpage.
Preferably, the size of Object linking that first detection module 10 detects comprises the width of Object linking and the height of Object linking.
First judge module 20, for judging whether the size of Object linking is less than pre-set dimension.
Preferably, predetermined width and preset height is comprised as the pre-set dimension with reference to size in the first judge module 20.First judge module 20 comprises: first judges submodule, for judging whether the width of Object linking is less than predetermined width; Second judges submodule, for when judging that the width of Object linking is less than predetermined width, judges whether the height of Object linking is less than preset height.
First acquisition module 30, for when judging that the size of Object linking is less than pre-set dimension, obtains the position of Object linking in webpage.
Second acquisition module 40, for obtaining the measure-alike target area with Object linking in the position of Object linking in webpage.
3rd acquisition module 50, for obtaining the click volume of target area.
Whether the second detection module 60, receive trigger pip for detecting target area.
Preferably, the trigger pip that the second detection module 60 detects comprises following any one or more signal: the first trigger pip, and the color for trigger target region is visible color; Second trigger pip, for the thermodynamic chart of trigger target region according to the click volume display-object region of target area; 3rd trigger pip, the color for trigger target region is transparent.
The trigger pip detected when the second detection module 60 comprises the first trigger pip, and when the second trigger pip and the 3rd trigger pip, the second detection module 60 comprises: the first detection sub-module, whether receives the first trigger pip for detecting target area; First trigger module, for when detecting that target area receives the first trigger pip, the color in trigger target region is visible color; Second detection sub-module, for when not detecting that target area receives the first trigger pip, detecting target area and whether receiving the second trigger pip; Second trigger module, for when detecting that target area receives the second trigger pip, trigger target region is according to the thermodynamic chart in the click volume display-object region of target area; 3rd detection sub-module, for ought not detecting that target area receives the second trigger pip, detecting target area and whether receiving the 3rd trigger pip; 3rd trigger module, detect that target area receives the 3rd trigger pip for working as, the color in trigger target region is transparent.
Display module 70, for when detecting that target area receives trigger pip, then according to the thermodynamic chart in the click volume display-object region of target area.
Preferably, the display device of the thermodynamic chart in this web page interlinkage region also comprises: creation module, and for creating object corresponding to Object linking, wherein, object comprises the width of Object linking, the height of Object linking, the position of Object linking in webpage; Add module, for adding in set by object corresponding for Object linking, wherein, set is used for storage width and is less than predetermined width, is highly less than the object of the link correspondence of preset height.
The display device of the thermodynamic chart in the web page interlinkage region of this embodiment comprises first detection module 10, the first judge module 20, first acquisition module 30, second acquisition module the 40, three acquisition module 50, second detection module 60 and display module 70.The more difficult problem of thermodynamic chart that prior art checks that link area is less is solved by the display device of the thermodynamic chart in the web page interlinkage region of this embodiment.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
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.