CN105404669A - Method, apparatus, terminal and server for displaying webpage comment - Google Patents

Method, apparatus, terminal and server for displaying webpage comment Download PDF

Info

Publication number
CN105404669A
CN105404669A CN201510779501.9A CN201510779501A CN105404669A CN 105404669 A CN105404669 A CN 105404669A CN 201510779501 A CN201510779501 A CN 201510779501A CN 105404669 A CN105404669 A CN 105404669A
Authority
CN
China
Prior art keywords
comment
object information
web page
webpage
page address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510779501.9A
Other languages
Chinese (zh)
Other versions
CN105404669B (en
Inventor
金峙廷
李求会
张治宇
何耀宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Shenma Mobile Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shenma Mobile Information Technology Co Ltd filed Critical Guangzhou Shenma Mobile Information Technology Co Ltd
Priority to CN201510779501.9A priority Critical patent/CN105404669B/en
Publication of CN105404669A publication Critical patent/CN105404669A/en
Priority to US15/348,539 priority patent/US9946693B2/en
Priority to RU2016144330A priority patent/RU2665892C2/en
Priority to US15/933,692 priority patent/US10120846B2/en
Application granted granted Critical
Publication of CN105404669B publication Critical patent/CN105404669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a method, an apparatus, a terminal and a sever for displaying a webpage comment. The method comprises: sending a webpage browsing request to the server; receiving webpage information corresponding to a webpage address returned from the server, wherein the webpage information comprises a source code and a comment object information list, and each piece of comment object information in the comment object information list comprises location information of a webpage passage element commented by a user; and displaying a webpage passage corresponding to a webpage address according to the source code comprised by the webpage information, and rendering and displaying a webpage comment corresponding to the webpage address according to the comment object information list. In the method provided by the present invention, the comment object information in the comment object information list comprises the location information of the webpage passage element commented by the user; the webpage comment displayed by the method can embody which part of contents is commented by the user, so that the webpage comment can be understood in combination with the webpage passage element, thereby improving reference and intelligibility of the webpage comment.

Description

Method, device, terminal and server that a kind of display web page is commented on
Technical field
The present invention relates to internet arena, in particular to method, device, terminal and server that a kind of display web page is commented on.
Background technology
At present, user browses the webpage articles such as news frequently by browser client, and when user browses certain webpage, browser client need show webpage article and the webpage comment of this webpage simultaneously, browses the comment of other users to this webpage article to make user.
Current, webpage comment comprises user ID, comment time and comment text.When user needs to browse certain webpage, browser client is according to the web page address of this webpage, source code and the webpage comment of this webpage is obtained from server, play up according to the source code of this webpage and show the webpage article of this webpage, and the comment of the webpage of acquisition is presented in the comment district of this webpage.
The webpage comment of above-mentioned display only comprises user ID, comment time and comment text, the comment of this webpage cannot embody to be commented on which partial content in webpage article, cause user cannot comment on to understand this webpage in conjunction with by the webpage article content commented on, reduce referential and the intelligibility of webpage comment.
Summary of the invention
In view of this, the object of the embodiment of the present invention is the method, device, terminal and the server that provide a kind of display web page to comment on, according to the comment of comment object information list display web page, the positional information of the webpage article element of user comment is comprised in the comment object information that the list of comment object information comprises, so can realize usually understanding webpage comment in conjunction with webpage article unit, improve referential and the intelligibility of webpage comment.
First aspect, embodiments provide the method for a kind of display web page comment, described method comprises:
Send web page browsing request to server, described web page browsing request comprises web page address;
Receive the info web that described web page address that described server returns is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Play up according to the source code that described info web comprises and show webpage article corresponding to described web page address, and showing webpage comment corresponding to described web page address according to the list of described comment object information.
In conjunction with first aspect, embodiments provide the first possible implementation of above-mentioned first aspect, wherein, described according to the list of described comment object information show described web page address corresponding webpage comment, comprising:
From each comment object information of described comment object information list, obtain the positional information that each comment object information comprises respectively;
According to the positional information that described each comment object information comprises, add up the comment number of times that each positional information is corresponding;
The comment number of times corresponding according to described each positional information, the multiple comment object information list of described comment object information comprised according to default comment temperature order are presented in the comment district of webpage corresponding to described web page address.
In conjunction with first aspect, embodiments provide the implementation that the second of above-mentioned first aspect is possible, wherein, each comment object information in the list of described comment object information also comprises the comment time; Described according to the list of described comment object information show described web page address corresponding webpage comment, comprising:
Respectively from each comment object information the list of described comment object information, obtain the comment time that each comment object information comprises;
According to the comment time that described each comment object information comprises, the multiple comment object information list of described comment object information comprised according to Preset Time order are presented in the comment district of described webpage.
In conjunction with first aspect, embodiments provide the third possible implementation of above-mentioned first aspect, wherein, described according to the list of described comment object information show described web page address corresponding webpage comment after, also comprise:
Receive the lastest imformation that described server sends, described lastest imformation comprises the new comment object information list of described webpage or new comment object information;
If described lastest imformation comprises described comment object information list newly, then according to described comment object information list update newly, comment on all comment object information of district's display;
If described lastest imformation comprises described comment object information newly, then according to Preset Time order or according to default comment temperature order, described comment object information is newly presented in described comment district.
In conjunction with first aspect, embodiments provide the 4th kind of possible implementation of above-mentioned first aspect, wherein, described according to the list of described comment object information show described web page address corresponding webpage comment after, also comprise:
Monitor in described comment district the review title of each comment object information shown, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of the described comment object information of display is corresponding;
When monitor return key trigger return event time, be back to display described comment district in described comment object information.
In conjunction with first aspect, embodiments provide the 5th kind of possible implementation of above-mentioned first aspect, wherein, described info web also comprises comment ordered series of numbers table, and described comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in described webpage article; Described method also comprises:
The positional information of the webpage article element comprised according to described comment ordered series of numbers table and comment number of times, from the reference position of described webpage article, according to presetting the hotspot's distribution bar that described in painted strategy generating, webpage article is corresponding;
Described hotspot's distribution bar is embedded in the scroll bar of described webpage article, obtain the temperature scroll bar that described webpage article is corresponding.
In conjunction with the 5th kind of possible implementation of first aspect, embodiments provide the 6th kind of possible implementation of above-mentioned first aspect, wherein, described method also comprises:
Receive the comment number sorted lists that described server generates and sends according to preset order, or, generate described comment number sorted lists according to described comment ordered series of numbers table according to described preset order;
According to described comment number sorted lists, the rolling operation event that scroll control on described temperature scroll bar is corresponding is set.
Second aspect, embodiments provide the method for a kind of display web page comment, described method comprises:
Receive the web page browsing request that browser client sends, described web page browsing request comprises web page address;
According to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Send described info web to described browser client, show webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
In conjunction with second aspect, embodiments provide the first possible implementation of above-mentioned second aspect, wherein, described method also comprises:
According to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, described comment ordered series of numbers table is added in described info web;
According to described comment ordered series of numbers table, generate comment number sorted lists corresponding to described web page address according to preset order, described comment number sorted lists is sent to described browser client.
In conjunction with second aspect, embodiments provide the implementation that the second of above-mentioned second aspect is possible, wherein, described method also comprises:
Receive web page address and the comment object information of browser client transmission;
According to described comment object information, generate the lastest imformation that described web page address is corresponding;
According to described web page address, determine current browser client of just accessing described web page address;
Described lastest imformation is sent to the described browser client determined, upgrade webpage comment corresponding to the described web page address of display to make the described browser client determined according to described lastest imformation.
In conjunction with the implementation that the second of second aspect is possible, embodiments provide the third possible implementation of above-mentioned second aspect, wherein, described method also comprises:
According to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, according to the positional information that described comment object information comprises, comment number of times corresponding for positional information described in described comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or,
According to described web page address, obtain the source code of webpage corresponding to described web page address, according to the positional information that described comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information described in described source code is added one, generates new comment ordered series of numbers table according to the described source code after adding an operation.
The third aspect, embodiments provide the device of a kind of display web page comment, described device comprises:
Sending module, for sending web page browsing request to server, described web page browsing request comprises web page address;
Receiver module, for receiving info web corresponding to described web page address that described server returns, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Display module, the source code for comprising according to described info web is played up and is shown webpage article corresponding to described web page address, and shows webpage comment corresponding to described web page address according to the list of described comment object information.
In conjunction with the third aspect, embodiments provide the first possible implementation of the above-mentioned third aspect, wherein, described display module comprises:
First acquiring unit, for from each comment object information of described comment object information list, obtains the positional information that each comment object information comprises respectively;
Statistic unit, for the positional information comprised according to described each comment object information, adds up the comment number of times that each positional information is corresponding;
First display unit, for the comment number of times corresponding according to described each positional information, the multiple comment object information list of described comment object information comprised according to default comment temperature order are presented in the comment district of webpage corresponding to described web page address.
In conjunction with the third aspect, embodiments provide the implementation that the second of the above-mentioned third aspect is possible, wherein, each comment object information in the list of described comment object information also comprises the comment time; Described display module comprises:
Second acquisition unit, for respectively from each comment object information the list of described comment object information, obtains the comment time that each comment object information comprises;
Second display unit, for the comment time comprised according to described each comment object information, the multiple comment object information list of described comment object information comprised according to Preset Time order are presented in the comment district of described webpage.
In conjunction with the third aspect, embodiments provide the third possible implementation of the above-mentioned third aspect, wherein, described device also comprises:
Update module, for receiving the lastest imformation that described server sends, described lastest imformation comprises the new comment object information list of described webpage or new comment object information; If described lastest imformation comprises described comment object information list newly, then according to described comment object information list update newly, comment on all comment object information of district's display; If described lastest imformation comprises described comment object information newly, then according to Preset Time order or according to default comment temperature order, described comment object information is newly presented in described comment district.
In conjunction with the third aspect, embodiments provide the 4th kind of possible implementation of the above-mentioned third aspect, wherein, described device also comprises:
Redirect module, for monitoring in described comment district the review title of each comment object information shown, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of the described comment object information of display is corresponding;
Return display module, for when monitor return key trigger return event time, be back to display described comment district in described comment object information.
In conjunction with the third aspect, embodiments provide the 5th kind of possible implementation of the above-mentioned third aspect, wherein, described info web also comprises comment ordered series of numbers table, and described comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in described webpage article; Described device also comprises:
Generation module, for the positional information of webpage article element that comprises according to described comment ordered series of numbers table and comment number of times, from the reference position of described webpage article, according to presetting the hotspot's distribution bar that described in painted strategy generating, webpage article is corresponding; Described hotspot's distribution bar is embedded in the scroll bar of described webpage article, obtain the temperature scroll bar that described webpage article is corresponding.
In conjunction with the 5th kind of possible implementation of the third aspect, embodiments provide the 6th kind of possible implementation of the above-mentioned third aspect, wherein, described device also comprises:
Module is set, for receiving the comment number sorted lists that described server generates and sends according to preset order, or, generate described comment number sorted lists according to described comment ordered series of numbers table according to described preset order; According to described comment number sorted lists, the rolling operation event that scroll control on described temperature scroll bar is corresponding is set.
Fourth aspect, embodiments provide the device of a kind of display web page comment, described device comprises:
Receiver module, for receiving the web page browsing request that browser client sends, described web page browsing request comprises web page address;
Acquisition module, for according to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Sending module, for sending described info web to described browser client, shows webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
In conjunction with fourth aspect, embodiments provide the first possible implementation of above-mentioned fourth aspect, wherein, described device also comprises:
Add module, for according to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, described comment ordered series of numbers table is added in described info web;
Described sending module, also for according to described comment ordered series of numbers table, generates comment number sorted lists corresponding to described web page address according to preset order, described comment number sorted lists is sent to described browser client.
In conjunction with fourth aspect, embodiments provide the implementation that the second of above-mentioned fourth aspect is possible, wherein, described device also comprises:
Lastest imformation generation module, for receiving web page address and the comment object information of browser client transmission; According to described comment object information, generate the lastest imformation that described web page address is corresponding; According to described web page address, determine current browser client of just accessing described web page address; Described lastest imformation is sent to the described browser client determined, upgrade webpage comment corresponding to the described web page address of display to make the described browser client determined according to described lastest imformation.
In conjunction with the implementation that the second of fourth aspect is possible, embodiments provide the third possible implementation of above-mentioned fourth aspect, wherein, described device also comprises:
Comment number of times modified module, for according to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, according to the positional information that described comment object information comprises, comment number of times corresponding for positional information described in described comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or, according to described web page address, obtain the source code of webpage corresponding to described web page address, according to the positional information that described comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information described in described source code is added one, generates new comment ordered series of numbers table according to the described source code after adding an operation.
5th aspect, embodiments provides a kind of terminal, and described terminal comprises:
Transmitter, for sending web page browsing request to server, described web page browsing request comprises web page address;
Receiver, for receiving info web corresponding to described web page address that described server returns, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Processor, the source code for comprising according to described info web plays up webpage article corresponding to described web page address, and plays up webpage comment corresponding to described web page address according to the list of described comment object information;
Display, for showing webpage article corresponding to described web page address and the comment of described webpage.
6th aspect, embodiments provides a kind of server, and described server comprises:
Receiver, for receiving the web page browsing request that browser client sends, described web page browsing request comprises web page address;
Processor, for according to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Transmitter, for sending described info web to described browser client, shows webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
In method, device, terminal and server that the embodiment of the present invention provides, each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment; The webpage comment that also display web page address is corresponding is played up according to the list of comment object information.User can be embodied by the webpage comment so shown to comment on any partial content, can realize usually understanding webpage comment in conjunction with webpage article unit, improve referential and the intelligibility of webpage comment.
For making above-mentioned purpose of the present invention, feature and advantage become apparent, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, be described in detail below.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, be to be understood that, the following drawings illustrate only some embodiment of the present invention, therefore the restriction to scope should be counted as, for those of ordinary skill in the art, under the prerequisite not paying creative work, other relevant accompanying drawings can also be obtained according to these accompanying drawings.
Figure 1A shows the Signalling exchange figure of a kind of display web page comment that the embodiment of the present invention 1 provides;
Figure 1B shows the schematic diagram of a kind of webpage that the embodiment of the present invention 1 provides;
Fig. 1 C shows the schematic diagram of the another kind of webpage that the embodiment of the present invention 1 provides;
Fig. 1 D shows a kind of Signalling exchange figure upgrading the comment district of display web page that the embodiment of the present invention 1 provides;
Fig. 2 shows the apparatus structure schematic diagram of a kind of webpage comment that the embodiment of the present invention 2 provides;
Fig. 3 shows the apparatus structure schematic diagram of the another kind of webpage comment that the embodiment of the present invention 3 provides;
Fig. 4 shows the structural representation of a kind of terminal that the embodiment of the present invention 4 provides;
Fig. 5 shows the structural representation of a kind of server that the embodiment of the present invention 5 provides.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.The assembly of the embodiment of the present invention describing and illustrate in usual accompanying drawing herein can be arranged with various different configuration and design.Therefore, below to the detailed description of the embodiments of the invention provided in the accompanying drawings and the claimed scope of the present invention of not intended to be limiting, but selected embodiment of the present invention is only represented.Based on embodiments of the invention, the every other embodiment that those skilled in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
When conceiving the scheme of webpage of the present invention comment, consider that the webpage comment shown in correlation technique only comprises user ID, comment time and comment text, the comment of this webpage cannot embody to be commented on which partial content in webpage article, cause user cannot comment on to understand this webpage in conjunction with by the webpage article content commented on, reduce referential and the intelligibility of webpage comment.Based on this, embodiments provide the method for a kind of display web page comment, device, terminal and server.Be described below by embodiment.
Embodiment 1
As shown in Figure 1A, embodiments provide the method for a kind of display web page comment, the method specifically comprises the steps:
S1: browser client sends web page browsing request to server, and this web page browsing request comprises web page address.
When user needs to browse a webpage, user clicks hyperlink corresponding to this webpage.During the browsing instructions that this hyperlink that detects browser client triggers, obtain the web page address of this webpage, send web page browsing request to server, and in this web page browsing request, carry the web page address of this webpage.
S2: server receives the web page browsing request that browser client sends, and according to the web page address that this web page browsing request comprises, obtains the info web that this web page address is corresponding.
Above-mentioned info web comprises source code and the list of comment object information of webpage.The list of comment object information comprises the existing multiple comment object information of this webpage, the comment object information that namely all users commented on the webpage article of this webpage produce before current time.In embodiments of the present invention, comment on object information and comprise the positional information of the webpage article element of user comment, the review information of user comment, user ID, review title and comment time.The review information of user comment can be the comment text of user's input, picture or facial expression image etc.
In embodiments of the present invention, server stores has the web page address of each webpage and source code and comments on the corresponding relation of object information list.Server receives the web page browsing request that browser client sends, according to the web page address that this web page browsing request comprises, from web page address and source code with comment on the corresponding relation of object information list, obtain corresponding source code and the list of comment object information, according to the source code obtained and the list of comment object information, generate the info web that this web page address is corresponding.In embodiments of the present invention, directly the source code of acquisition and the list of comment object information can be formed info web corresponding to this web page address.
S3: this info web is sent to browser client by server.
S4: the info web that this web page address that browser client reception server returns is corresponding, according to the source code that this info web comprises, plays up and shows webpage article corresponding to this web page address.
S5: browser client is played up according to the list of comment object information and shown webpage comment corresponding to this web page address.
In the webpage that web page address is corresponding except comprising webpage article, also comprise comment district.Above-mentioned webpage comment is just presented in the comment district of webpage corresponding to this web page address.
In embodiments of the present invention, can show the webpage comment in comment district when the comment district of display web page according to different display strategies, webpage comment is the comment object information that the list of comment object information comprises in embodiments of the present invention.The embodiment of the present invention can show comment object information according to time sequencing, or shows comment object information according to comment temperature order.Comment temperature can represent with comment number of times, and comment temperature order is the size order to the comment number of times that webpage article element is commented on.
Browser client is played up and the operation in the comment district of display web page according to comment temperature order, specifically comprises:
Browser client, from each comment object information of comment object information list, obtains the positional information that each comment object information comprises respectively; According to the positional information that each comment object information comprises, add up the comment number of times that each positional information is corresponding; The comment number of times corresponding according to each positional information, using comment number of times corresponding for each positional information as comment temperature corresponding to each positional information, according to default comment temperature order, multiple comment object information that the list of comment object information comprises are presented in the comment district of webpage.
Commenting on comment object information corresponding to the identical diverse location information of number of times in embodiments of the present invention when showing, showing according to the sequencing of comment time.
Preset comment temperature order for sorting from high to low according to comment temperature, or to sort according to comment temperature order from low to high.Preferably in embodiments of the present invention to sort according to comment temperature order from high in the end, because elements such as the focus paragraph of webpage article element corresponding to the high comment object information of comment temperature often in webpage article or pictures, user also more wishes the comment object information first seeing that comment temperature is high, therefore carry out sorting according to comment temperature order from high in the end and more meet the reading requirement of user, improve user experience.
For the ease of understanding the operation showing comment district according to comment temperature order, citing is below described.Such as, in webpage as shown in Figure 1B, comment object information 1,3 and 4 is all comments of paragraph 3 correspondence, comment object information 2 is comments of paragraph 1 correspondence, when then showing comment district according to comment temperature order, comment object information 1,3 and 4 is presented at before comment object information 2, and comment object information 1,3 and 4 is shown as comment object information 3,1 and 4 successively according to the sequencing of comment time.
And browser client is played up according to time sequencing and the operation in the comment district of display web page, specifically comprises:
Browser client from each comment object information the list of comment object information, obtains the comment time that each comment object information comprises respectively; According to the comment time that each comment object information comprises, according to Preset Time order, multiple comment object information that the list of comment object information comprises are presented in the comment district of webpage.
For multiple difference comment object information that the comment time is identical, preset heat comment order is adopted to show when the display of this multiple difference comment object information.
Preset Time order is relevant to the size order of the mistiming between the comment time that comment object information comprises and current time, namely Preset Time order can be sort according to the mistiming order from big to small between comment time and current time, or sorts according to the mistiming order from small to large between comment time and current time.In embodiments of the present invention preferred according to comment the time and current time between mistiming order from small to large sort, namely be presented at before comment district from the comment object information close to current time, be presented at after comment district from the comment object information away from current time.Because user more pays close attention to the comment object information that other users current comment on this webpage article, so sort according to the mistiming order from small to large between comment time and current time, more meet the reading habit of user, improve Consumer's Experience.
For the ease of understanding the operation showing comment district according to Preset Time order, citing is below described.Such as, in webpage as shown in Figure 1 C, suppose that current time is 9:00 on October 1, suppose that Preset Time order is according to the mistiming order from small to large between comment time and current time, suppose to comment on comment time of object information 1,2,3 and 4 be followed successively by 8:00 on October 1, September 30 12:00, September 30 10:00 and September 30 20:00, then show successively in comment district according to Preset Time order and comments on object information 2,3,1 and 4.
In embodiments of the present invention, server also records comment number of times corresponding to each webpage article element of webpage, webpage article element can be paragraph, picture or form etc. in webpage article, and the positional information of each webpage article element and comment number of times are formed comment ordered series of numbers table corresponding to this webpage by server.The position of positional information presentation web page article element in this webpage article of webpage article element, the positional information of webpage article element can be represented by the unique identification of webpage article element in this webpage article.Server is by the web page address of this webpage and comment on ordered series of numbers table corresponding stored in the corresponding relation of web page address with comment ordered series of numbers table.
After server receives the browse request of browser client transmission in step s 2, server is also according to the web page address that this browse request comprises, obtain corresponding comment ordered series of numbers table from the web page address stored with the corresponding relation of comment ordered series of numbers table, the comment ordered series of numbers table of acquisition is sent to this browser client.
The comment ordered series of numbers table that browser client reception server sends, the temperature scroll bar corresponding according to this comment ordered series of numbers table generating web page article.The operation generating temperature scroll bar specifically comprises:
The positional information of the webpage article element that browser client comprises according to comment ordered series of numbers table and comment number of times, from the reference position of webpage article, according to presetting hotspot's distribution bar corresponding to painted strategy generating webpage article; By in the scroll bar of hotspot's distribution bar embedded web page, obtain the temperature scroll bar that webpage article is corresponding.
Preset painted strategy and define the color generating hotspot's distribution bar and use, and the colourity change strategy of this color of position corresponding to different temperature, can specify to use redness as preset painted strategy, the colourity of the position redness that temperature is higher is higher, and the colourity of the position redness that temperature is lower is lower.
Color in temperature scroll bar is for pointing out the focus situation of user's webpage article element, this color belongs to a kind of information, the embodiment of the present invention does not limit for pointing out the information of focus situation to be color, and this information can also be the form such as word or image.
In embodiments of the present invention, the sequencing of the list item that comment ordered series of numbers table comprises, preferably arranges according to the positional information of webpage article element order from front to back in webpage article.Browser client is according to positional information order from front to back, positional information and the comment number of times of webpage article element is obtained from comment ordered series of numbers table, using comment number of times as temperature corresponding to webpage article element, from the reference position of webpage article, carry out painted according to the position of presetting painted strategy corresponding to the positional information of webpage article element in hotspot's distribution bar, the temperature that webpage article element is corresponding is higher, the position color that in hotspot's distribution bar, the positional information of this webpage article element is corresponding is darker, the temperature that webpage article element is corresponding is lower, the position color that in hotspot's distribution bar, the positional information of this webpage article element is corresponding is more shallow, the hotspot's distribution bar that this webpage article of generation like this is corresponding, by in the scroll bar of this hotspot's distribution bar embedded web page, obtain the temperature scroll bar that this webpage article is corresponding.
The focus situation of each webpage article element in user's webpage article can be pointed out, intuitively and clearly have expressed the hotspot's distribution of webpage article by temperature scroll bar.
In order to understand the temperature scroll bar of generation more intuitively, be described below in conjunction with accompanying drawing.Webpage as shown in figures 1 b and 1 c, suppose that presetting painted tactful regulation grey in various degree identifies temperature, then in the webpage article of webpage, the comment number of times of paragraph 3 is 3 times, the comment number of times of paragraph 1 is 1 time, the comment number of times of paragraph 2 is 0 time, so the temperature of paragraph 3 is the highest, position on the temperature scroll bar of paragraph 3 correspondence is black, the temperature of paragraph 1 is secondary high, position on the temperature scroll bar of paragraph 1 correspondence is grey, and the temperature of paragraph 2 is minimum, and the position on the temperature scroll bar of paragraph 2 correspondence is white.
In embodiments of the present invention, server also according to the comment ordered series of numbers list sorting of preset order to acquisition, obtains the comment number sorted lists that this web page address is corresponding, this comment number sorted lists is sent to browser client.
Preset order for sorting according to comment number of times order from high to low, or can sort according to comment number of times order from low to high.Preferably in embodiments of the present invention to sort according to comment number of times order from high to low.
In addition, server also can not generate and issue comment number sorted lists, but by browser client after the comment ordered series of numbers table receiving server transmission, sorts voluntarily according to preset order to this comment ordered series of numbers table, obtains comment number sorted lists.
The temperature scroll bar that browser client generating web page article is corresponding, and the comment number sorted lists that reception server generates and sends according to preset order, or, after browser client generates comment number sorted lists according to comment ordered series of numbers table voluntarily according to preset order, also according to comment number sorted lists, the rolling operation event that scroll control on temperature scroll bar is corresponding is set.
Rolling operation event can be the operation that the trigger event of scroll control on temperature scroll bar is corresponding, as according to comment number sorted lists, the roll display that is operating as that the first time arranging scroll control triggering double-clicks event corresponding comments on the maximum webpage article element of number of times, the roll display that is operating as that the second time that scroll control triggers double-clicks event corresponding comments on secondary webpage article element large for several times, by that analogy, can to being 1 according to comment number of times order number consecutively from big to small in comment number sorted lists, 2, n, scroll control is then set and double-clicks the equal webpage article element of number of times that event corresponds to roll display numbering and double-click at every turn.
In embodiments of the present invention, number of hops threshold value can also be set, when user exceedes this number of hops threshold value by the number of times double-clicked scroll control and carry out redirect, empty the redirect state of scroll control, and control the maximum webpage article element of scroll control redirect display comment number of times.Comment number threshold value can also be set, when user is less than this comment number threshold value by the comment number of times that the webpage article element of double-click scroll control redirect display is corresponding, empty the redirect state of scroll control, and control the maximum webpage article element of scroll control redirect display comment number of times.The redirect state of scroll control is the number of hops of scroll control.
The length that can arrange scroll control is in addition got back to the beginning of webpage article by corresponding being operating as of event or jumps to the paragraph that in webpage article, temperature is the highest, and long by the redirect state emptying scroll control during event in generation.
In embodiments of the present invention, the temperature scroll bar that generating web page article is corresponding, and after being provided with the rolling operation event of scroll control, browser client carries out Real-Time Monitoring to the scroll control on temperature scroll bar, when monitoring the rolling operation event that scroll control triggers, perform the rolling operation that the rolling operation event of setting is corresponding.
Such as, webpage as shown in figures 1 b and 1 c, if user double-clicks scroll control, then roll display paragraph 3 first time, if user's second time double-clicks scroll control, then roll display paragraph 1, if user double-clicks scroll control, then roll display paragraph 2 third time.
In embodiments of the present invention, after the webpage article of browser client display web page and webpage are commented on, user can browse the webpage article of this webpage, user is when browsing the webpage article of this webpage, may comment on certain webpage article element, now browser client generates new comment object information according to the comment of user, and upgrades the webpage comment of this webpage of display according to this new comment object information.
In embodiments of the present invention, the comment object information of above-mentioned generation can first be presented in the comment district of local this webpage shown by browser client, this comment object information is sent to server simultaneously.After server receives this comment object information, determine current other browser clients except this browser client showing this webpage, this comment object information is sent to other browser clients determined by server, the renewal of this comment object information is presented in the comment district of this webpage to make other browser clients.
When user comment like this produces comment object information, be presented in the comment district of this webpage local immediately, local display non-time delay, improves Consumer's Experience.In addition, this browser client above-mentioned and other browser clients are when upgrading this comment object information of display, according to Preset Time order or preset comment temperature order and show, the concrete display mode adopted is identical with the display mode adopted when showing the comment district of this webpage in step S5.
The content not meeting relevant laws and regulations may be comprised in comment object information due to generation when user comments on sometimes, so need first to audit comment object information, and then upgrade this comment object information of display, with the harmful effect avoiding illegal speech to cause.So in embodiments of the present invention, the comment object information of generation can not also be presented in the comment district of this webpage local by browser client immediately, but first this comment object information is sent to server.Server receives this comment object information, undertaken auditing by rear by auditor, or automatically carry out semantic analysis by server and audit by rear, server determines the current all browser clients just showing this webpage, this comment object information is sent to each browser client determined, the comment object information that the current each browser client reception server just showing this webpage sends, is presented at this comment object information in the comment district of self current webpage just shown.
In embodiments of the present invention, comment object information is produced when user carries out comment, and when the renewal of this comment object information being shown to other users by server, as shown in figure ip, the operation of A1-A4 realizes the renewal display of this comment object information as follows.
A1: server receives web page address and the comment object information of browser client transmission, according to this comment object information, generates the lastest imformation that this web page address is corresponding.
This comment object information is added in comment object information list corresponding to this web page address by server, obtains new comment object information list, using this new comment object information list as lastest imformation corresponding to this web page address; Or the comment object information of reception is directly defined as lastest imformation corresponding to this web page address by server.
A2: server, according to this web page address, determines current browser client of just accessing this web page address.
When browser client request access one web page address, the mark of self is also sent to server by browser client, the corresponding relation of the mark of this web page address of server record and this browser client.
Server is according to this web page address, from web page address and the mark obtaining corresponding browser client the corresponding relation of the mark of browser client, the browser client of the mark correspondence of acquisition is defined as current browser client of just accessing this web page address.
A3: the lastest imformation of generation is sent to the browser client determined by server.
A4: the lastest imformation that browser client reception server sends, upgrades the comment district of the webpage of current display according to this lastest imformation.
The lastest imformation that browser client reception server sends, this lastest imformation comprises the new comment object information list of webpage or new comment object information; If lastest imformation comprises new comment object information list, then according to all comment object information of new comment object information list update comment district's display; If lastest imformation only comprises new comment object information, then according to Preset Time order or according to default comment temperature order, new comment object information is presented in comment district.Specifically according to Preset Time order still according to default comment temperature sequentially, the sequence consensus that the comment Qu Shisuo showing this webpage with browser client in step S5 takes is needed.
In embodiments of the present invention, when user carries out comment generation comment object information, the comment ordered series of numbers table that webpage is corresponding and comment number sorted lists all can change, so the focus paragraph in the webpage article shown in browser client may change, so the temperature scroll bar of this webpage and rolling operation event corresponding to scroll control in the browser client that needs to upgrade in time.
Therefore server is when receiving web page address and the comment object information of browser client transmission, also according to web page address, obtain the comment ordered series of numbers table that this web page address is corresponding, according to the positional information that this comment object information comprises, comment number of times corresponding for this positional information in this comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table.
Or server, according to this web page address, obtains the source code of webpage corresponding to this web page address, according to the positional information that commentary opinion object information comprises, the comment number attribute value of webpage article element corresponding for this positional information in source code is added one.Then server generates new comment ordered series of numbers table according to the source code after adding an operation.This new comment ordered series of numbers table is sent to browser client by server.The comment ordered series of numbers table that browser client is new according to this regenerates the temperature scroll bar of this webpage article.
In addition, server also according to above-mentioned comment ordered series of numbers table newly, is resequenced to new comment ordered series of numbers table according to preset order, generates new comment number sorted lists, and new comment number sorted lists is sent to browser client.The rolling operation event that browser client is corresponding according to the scroll control that the comment number sorted lists of this exquisiteness resets on temperature scroll bar.
In embodiments of the present invention, server also can generate new comment number sorted lists not in accordance with aforesaid way, now after browser client receives new comment ordered series of numbers table, browser client also generates new comment number sorted lists according to this new comment ordered series of numbers table according to preset order, and according to this new comment number sorted lists generated, reset the rolling operation event that scroll control on temperature scroll bar is corresponding.
After resetting rolling operation event corresponding to scroll control, browser client carries out Real-Time Monitoring to the scroll control on temperature scroll bar, when monitoring the rolling operation event that scroll control triggers, the rolling operation that the rolling operation event that execution resets is corresponding.
In embodiments of the present invention, webpage article element corresponding to this comment object information can be read easily when browsing the comment object information in comment district to make user, this comment object information is usually better understood in conjunction with this webpage article unit, the embodiment of the present invention additionally provides the scheme that conveniently can switch between the webpage article element that the comment object information in comment district is corresponding with this comment object information, specifically comprises:
The review title of each comment object information shown in browser client monitoring comment district, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of this comment object information of display is corresponding; When monitor return key trigger return event time, be back to display comment district in this comment object information.
In embodiments of the present invention, the list of comment object information comprises multiple comment object information, and comment object information comprises the positional information of the webpage article element of user comment; The webpage comment that also display web page address is corresponding is played up according to the list of comment object information.User can be embodied by the webpage comment so shown to comment on any partial content, can realize usually understanding webpage comment in conjunction with webpage article unit, improve referential and the intelligibility of webpage comment.
Embodiment 2
See Fig. 2, embodiments provide the device of a kind of webpage comment, the method for webpage comment of this device for performing above-described embodiment 1 and providing.This device specifically comprises:
Sending module 201, for sending web page browsing request to server, web page browsing request comprises web page address;
Receiver module 202, the info web that the web page address returned for reception server is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment;
Display module 203, the source code for comprising according to info web plays up the webpage article that also display web page address is corresponding, and the webpage comment corresponding according to comment object information list display web page address.
Above-mentioned display module 203 can carry out the webpage comment of display web page according to default comment temperature order, display module 203 specifically comprises:
First acquiring unit, in each comment object information from the list of comment object information, obtains the positional information that each comment object information comprises respectively; Statistic unit, for the positional information comprised according to each comment object information, adds up the comment number of times that each positional information is corresponding; Multiple comment object information that the list of comment object information comprises, for the comment number of times corresponding according to each positional information, are presented in the comment district of webpage corresponding to web page address according to default comment temperature order by the first display unit.
In embodiments of the present invention, each comment object information in the list of above-mentioned comment object information also comprises the comment time; Can also come the comment district of display web page according to Preset Time order, display module 203 comprises:
Second acquisition unit, for respectively from each comment object information the list of comment object information, obtains the comment time that each comment object information comprises; Multiple comment object information that the list of comment object information comprises, for the comment time comprised according to each comment object information, are presented in the comment district of webpage according to Preset Time order by the second display unit.
In embodiments of the present invention, when other users carry out comment generation comment object information to this webpage, need the webpage comment being upgraded this webpage of browser client display by following update module.
Update module, for the lastest imformation that reception server sends, lastest imformation comprises the new comment object information list of webpage or new comment object information; If lastest imformation comprises new comment object information list, then according to all comment object information of new comment object information list update comment district's display; If lastest imformation comprises new comment object information, then according to Preset Time order or according to default comment temperature order, new comment object information is presented in comment district.
In embodiments of the present invention, webpage article element corresponding to this comment object information can be read easily when browsing the comment object information in comment district to make user, usually better understand this comment object information in conjunction with this webpage article unit, the embodiment of the present invention is also by redirect module with return Display Realization and can conveniently between the comment object information webpage article element corresponding with this comment object information in comment district switch.
Redirect module, for monitoring the review title of each comment object information shown in comment district, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of display comment object information is corresponding; Return display, for when monitor return key trigger return event time, be back to display comment district in comment object information.
In embodiments of the present invention, info web also comprises comment ordered series of numbers table, and above-mentioned comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in webpage article; This device also comprises:
Generation module, for according to positional information and the comment number of times of commenting on the webpage article element that ordered series of numbers table comprises, from the reference position of webpage article, according to presetting hotspot's distribution bar corresponding to painted strategy generating webpage article; By in the scroll bar of hotspot's distribution bar embedded web page article, obtain the temperature scroll bar that webpage article is corresponding.
In embodiments of the present invention, this device also comprises:
Module is set, for the comment number sorted lists that reception server generates and sends according to preset order, or, generate comment number sorted lists according to comment ordered series of numbers table according to preset order; According to comment number sorted lists, the rolling operation event that scroll control on temperature scroll bar is corresponding is set.
In embodiments of the present invention, each comment object information commented in object information list comprises the positional information of the webpage article element of user comment; The webpage comment that also display web page address is corresponding is played up according to the list of comment object information.User can be embodied by the webpage comment so shown to comment on any partial content, can realize usually understanding webpage comment in conjunction with webpage article unit, improve referential and the intelligibility of webpage comment.
Embodiment 3
See Fig. 3, embodiments provide the device of a kind of webpage comment, the method for webpage comment of this device for performing above-described embodiment 1 and providing.This device specifically comprises:
Receiver module 301, for receiving the web page browsing request that browser client sends, web page browsing request comprises web page address;
Acquisition module 302, for according to web page address, obtain the info web that web page address is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment;
Sending module 303, for sending info web to browser client, with the webpage comment making browser client corresponding according to comment object information list display web page address.
In embodiments of the present invention, comment ordered series of numbers table is also added in info web corresponding to this web page address by following module of adding by this device.
Add module, for according to web page address, obtain the comment ordered series of numbers table that web page address is corresponding, comment ordered series of numbers table is added in info web;
Sending module 303, also for according to comment ordered series of numbers table, according to the comment number sorted lists that preset order generating web page address is corresponding, sends to browser client by comment number sorted lists.
In embodiments of the present invention, when user comments on the webpage article element in this webpage, when generating new comment object information, this device also generates lastest imformation by following lastest imformation generation module.
Lastest imformation generation module, for receiving web page address and the comment object information of browser client transmission; According to comment object information, the lastest imformation that generating web page address is corresponding; According to web page address, determine the browser client of current positive accessed web page address; Lastest imformation is sent to the browser client determined, upgrade webpage comment corresponding to display web page address to make the browser client determined according to lastest imformation.
When producing new comment object information, this device also revises comment number of times corresponding to corresponding webpage article element by comment number of times modified module, and generates new comment ordered series of numbers table.
Comment number of times modified module, for according to web page address, obtains the comment ordered series of numbers table that web page address is corresponding, according to the positional information that comment object information comprises, comment number of times corresponding for positional information in comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or, according to web page address, obtain the source code of webpage corresponding to web page address, according to the positional information that comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information in source code is added one, generates new comment ordered series of numbers table according to the source code after adding an operation.
In embodiments of the present invention, according to web page address, obtain the info web that web page address is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment; Send info web to browser client, with the webpage comment making browser client corresponding according to comment object information list display web page address.The list of comment object information is sent to browser client by the present invention, the positional information of the webpage article element of user comment is comprised in the comment object information that this comment object information list comprises, browser client carrys out display web page comment according to this comment object information list, any user can be embodied comment on partial content, realization usually understands webpage comment in conjunction with webpage article unit, improves referential and the intelligibility of webpage comment.
Embodiment 4
See Fig. 4, embodiments provide a kind of terminal, the method for display web page comment of this terminal for performing above-described embodiment 1 and providing, this terminal comprises:
Transmitter 401, for sending web page browsing request to server, web page browsing request comprises web page address;
Receiver 402, the info web that the web page address returned for reception server is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment;
Processor 403, the source code for comprising according to info web plays up webpage article corresponding to web page address, and plays up webpage comment corresponding to web page address according to the list of comment object information;
Display 404, the webpage article corresponding for display web page address and webpage comment.
In the embodiment of the present invention, can play up according to preset heat order the webpage comment that also display web page address is corresponding.
Above-mentioned processor 403, in each comment object information from the list of comment object information, obtains the positional information that each comment object information comprises respectively; According to the positional information that each comment object information comprises, add up the comment number of times that each positional information is corresponding;
Multiple comment object information that the list of comment object information comprises, for the comment number of times corresponding according to each positional information, are presented in the comment district of webpage corresponding to web page address according to default comment temperature order by aforementioned display device 404.
In the embodiment of the present invention, each comment object information in the list of comment object information also comprises the comment time; The webpage comment that also display web page address is corresponding can also be played up according to Preset Time order.
Processor 403, for respectively from each comment object information the list of comment object information, obtains the comment time that each comment object information comprises;
Multiple comment object information that the list of comment object information comprises, for the comment time comprised according to each comment object information, are presented in the comment district of webpage according to Preset Time order by display 404.
Receiver 402, also for the lastest imformation that reception server sends, lastest imformation comprises the new comment object information list of webpage or new comment object information;
Display 404, time also for comprising new comment object information list when lastest imformation, according to all comment object information of new comment object information list update comment district's display; When lastest imformation comprises new comment object information, according to Preset Time order or according to default comment temperature order, new comment object information is presented in comment district.
Processor 403, also for monitoring the review title of each comment object information shown in comment district, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of display comment object information is corresponding; When monitor return key trigger return event time, be back to display comment district in comment object information.
In embodiments of the present invention, info web also comprises comment ordered series of numbers table, and above-mentioned comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in webpage article;
Processor 403, for according to positional information and the comment number of times of commenting on the webpage article element that ordered series of numbers table comprises, from the reference position of webpage article, according to presetting hotspot's distribution bar corresponding to painted strategy generating webpage article; By in the scroll bar of hotspot's distribution bar embedded web page article, obtain the temperature scroll bar that webpage article is corresponding.
In embodiments of the present invention, receiver 402, also for comment number sorted lists that reception server generates and sends according to preset order; Or processor 403, also for generating comment number sorted lists according to comment ordered series of numbers table according to preset order; According to comment number sorted lists, the rolling operation event that scroll control on temperature scroll bar is corresponding is set.
In embodiments of the present invention, each comment object information commented in object information list comprises the positional information of the webpage article element of user comment; The webpage comment that also display web page address is corresponding is played up according to the list of comment object information.User can be embodied by the webpage comment so shown to comment on any partial content, can realize usually understanding webpage comment in conjunction with webpage article unit, improve referential and the intelligibility of webpage comment.
Embodiment 5
See Fig. 5, embodiments provide a kind of server, the method for display web page comment of this server for performing above-described embodiment 1 and providing, this server comprises:
Receiver 501, for receiving the web page browsing request that browser client sends, web page browsing request comprises web page address;
Processor 502, for according to web page address, obtain the info web that web page address is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment;
Transmitter 503, for sending info web to browser client, with the webpage comment making browser client corresponding according to comment object information list display web page address.
Processor 502, also for according to web page address, obtains the comment ordered series of numbers table that web page address is corresponding, adds in info web by comment ordered series of numbers table; According to comment ordered series of numbers table, according to the comment number sorted lists that preset order generating web page address is corresponding;
Transmitter 503, also for comment number sorted lists is sent to browser client.
Receiver 501, also for receiving web page address and the comment object information of browser client transmission;
Processor 502, also for according to comment object information, the lastest imformation that generating web page address is corresponding; According to web page address, determine the browser client of current positive accessed web page address;
Transmitter 503, also for lastest imformation being sent to the browser client determined, upgrades webpage comment corresponding to display web page address to make the browser client determined according to lastest imformation.
Processor 502, also for according to web page address, obtains the comment ordered series of numbers table that web page address is corresponding, according to the positional information that comment object information comprises, comment number of times corresponding for positional information in comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or, according to web page address, obtain the source code of webpage corresponding to web page address, according to the positional information that comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information in source code is added one, generates new comment ordered series of numbers table according to the source code after adding an operation.
In embodiments of the present invention, according to web page address, obtain the info web that web page address is corresponding, info web comprises source code and the list of comment object information, and each comment object information in the list of comment object information comprises the positional information of the webpage article element of user comment; Send info web to browser client, with the webpage comment making browser client corresponding according to comment object information list display web page address.The list of comment object information is sent to browser client by the present invention, the positional information of the webpage article element of user comment is comprised in the comment object information that this comment object information list comprises, browser client carrys out display web page comment according to this comment object information list, any user can be embodied comment on partial content, realization usually understands webpage comment in conjunction with webpage article unit, improves referential and the intelligibility of webpage comment.
The device of the webpage comment that the embodiment of the present invention provides can be the specific hardware on equipment or the software be installed on equipment or firmware etc.Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the module of aforementioned description, device and unit, all can with reference to the corresponding process in said method embodiment.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, again 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 communication interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery 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.
If described function 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 of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (24)

1. a method for display web page comment, it is characterized in that, described method comprises:
Send web page browsing request to server, described web page browsing request comprises web page address;
Receive the info web that described web page address that described server returns is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Play up according to the source code that described info web comprises and show webpage article corresponding to described web page address, and showing webpage comment corresponding to described web page address according to the list of described comment object information.
2. method according to claim 1, is characterized in that, described according to the list of described comment object information show described web page address corresponding webpage comment, comprising:
From each comment object information of described comment object information list, obtain the positional information that each comment object information comprises respectively;
According to the positional information that described each comment object information comprises, add up the comment number of times that each positional information is corresponding;
The comment number of times corresponding according to described each positional information, the multiple comment object information list of described comment object information comprised according to default comment temperature order are presented in the comment district of webpage corresponding to described web page address.
3. method according to claim 1, is characterized in that, each comment object information in the list of described comment object information also comprises the comment time; Described according to the list of described comment object information show described web page address corresponding webpage comment, comprising:
Respectively from each comment object information the list of described comment object information, obtain the comment time that each comment object information comprises;
According to the comment time that described each comment object information comprises, the multiple comment object information list of described comment object information comprised according to Preset Time order are presented in the comment district of described webpage.
4. according to the method in claim 2 or 3, it is characterized in that, described according to the list of described comment object information show described web page address corresponding webpage comment after, also comprise:
Receive the lastest imformation that described server sends, described lastest imformation comprises the new comment object information list of described webpage or new comment object information;
If described lastest imformation comprises described comment object information list newly, then according to described comment object information list update newly, comment on all comment object information of district's display;
If described lastest imformation comprises described comment object information newly, then according to Preset Time order or according to default comment temperature order, described comment object information is newly presented in described comment district.
5. according to the method in claim 2 or 3, it is characterized in that, described according to the list of described comment object information show described web page address corresponding webpage comment after, also comprise:
Monitor in described comment district the review title of each comment object information shown, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of the described comment object information of display is corresponding;
When monitor return key trigger return event time, be back to display described comment district in described comment object information.
6. method according to claim 1, is characterized in that, described info web also comprises comment ordered series of numbers table, and described comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in described webpage article; Described method also comprises:
The positional information of the webpage article element comprised according to described comment ordered series of numbers table and comment number of times, from the reference position of described webpage article, according to presetting the hotspot's distribution bar that described in painted strategy generating, webpage article is corresponding;
Described hotspot's distribution bar is embedded in the scroll bar of described webpage article, obtain the temperature scroll bar that described webpage article is corresponding.
7. method according to claim 6, is characterized in that, described method also comprises:
Receive the comment number sorted lists that described server generates and sends according to preset order, or, generate described comment number sorted lists according to described comment ordered series of numbers table according to described preset order;
According to described comment number sorted lists, the rolling operation event that scroll control on described temperature scroll bar is corresponding is set.
8. a method for display web page comment, it is characterized in that, described method comprises:
Receive the web page browsing request that browser client sends, described web page browsing request comprises web page address;
According to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Send described info web to described browser client, show webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
9. method according to claim 8, is characterized in that, described method also comprises:
According to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, described comment ordered series of numbers table is added in described info web;
According to described comment ordered series of numbers table, generate comment number sorted lists corresponding to described web page address according to preset order, described comment number sorted lists is sent to described browser client.
10. method according to claim 8, is characterized in that, described method also comprises:
Receive web page address and the comment object information of browser client transmission;
According to described comment object information, generate the lastest imformation that described web page address is corresponding;
According to described web page address, determine current browser client of just accessing described web page address;
Described lastest imformation is sent to the described browser client determined, upgrade webpage comment corresponding to the described web page address of display to make the described browser client determined according to described lastest imformation.
11. methods according to claim 10, is characterized in that, described method also comprises:
According to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, according to the positional information that described comment object information comprises, comment number of times corresponding for positional information described in described comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or,
According to described web page address, obtain the source code of webpage corresponding to described web page address, according to the positional information that described comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information described in described source code is added one, generates new comment ordered series of numbers table according to the described source code after adding an operation.
The device of 12. 1 kinds of display web page comments, it is characterized in that, described device comprises:
Sending module, for sending web page browsing request to server, described web page browsing request comprises web page address;
Receiver module, for receiving info web corresponding to described web page address that described server returns, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Display module, the source code for comprising according to described info web is played up and is shown webpage article corresponding to described web page address, and shows webpage comment corresponding to described web page address according to the list of described comment object information.
13. devices according to claim 12, is characterized in that, described display module comprises:
First acquiring unit, for from each comment object information of described comment object information list, obtains the positional information that each comment object information comprises respectively;
Statistic unit, for the positional information comprised according to described each comment object information, adds up the comment number of times that each positional information is corresponding;
First display unit, for the comment number of times corresponding according to described each positional information, the multiple comment object information list of described comment object information comprised according to default comment temperature order are presented in the comment district of webpage corresponding to described web page address.
14. devices according to claim 12, is characterized in that, each comment object information in the list of described comment object information also comprises the comment time; Described display module comprises:
Second acquisition unit, for respectively from each comment object information the list of described comment object information, obtains the comment time that each comment object information comprises;
Second display unit, for the comment time comprised according to described each comment object information, the multiple comment object information list of described comment object information comprised according to Preset Time order are presented in the comment district of described webpage.
15. devices according to claim 13 or 14, it is characterized in that, described device also comprises:
Update module, for receiving the lastest imformation that described server sends, described lastest imformation comprises the new comment object information list of described webpage or new comment object information; If described lastest imformation comprises described comment object information list newly, then according to described comment object information list update newly, comment on all comment object information of district's display; If described lastest imformation comprises described comment object information newly, then according to Preset Time order or according to default comment temperature order, described comment object information is newly presented in described comment district.
16. devices according to claim 13 or 14, it is characterized in that, described device also comprises:
Redirect module, for monitoring in described comment district the review title of each comment object information shown, when the review title monitoring certain comment object information triggers redirect event, jump to the webpage article element that the positional information that comprises of the described comment object information of display is corresponding;
Return display module, for when monitor return key trigger return event time, be back to display described comment district in described comment object information.
17. devices according to claim 12, is characterized in that, described info web also comprises comment ordered series of numbers table, and described comment ordered series of numbers table comprises positional information and the comment number of times of the webpage article element in described webpage article; Described device also comprises:
Generation module, for the positional information of webpage article element that comprises according to described comment ordered series of numbers table and comment number of times, from the reference position of described webpage article, according to presetting the hotspot's distribution bar that described in painted strategy generating, webpage article is corresponding; Described hotspot's distribution bar is embedded in the scroll bar of described webpage article, obtain the temperature scroll bar that described webpage article is corresponding.
18. devices according to claim 17, is characterized in that, described device also comprises:
Module is set, for receiving the comment number sorted lists that described server generates and sends according to preset order, or, generate described comment number sorted lists according to described comment ordered series of numbers table according to described preset order; According to described comment number sorted lists, the rolling operation event that scroll control on described temperature scroll bar is corresponding is set.
The device of 19. 1 kinds of display web page comments, it is characterized in that, described device comprises:
Receiver module, for receiving the web page browsing request that browser client sends, described web page browsing request comprises web page address;
Acquisition module, for according to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Sending module, for sending described info web to described browser client, shows webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
20. devices according to claim 19, is characterized in that, described device also comprises:
Add module, for according to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, described comment ordered series of numbers table is added in described info web;
Described sending module, also for according to described comment ordered series of numbers table, generates comment number sorted lists corresponding to described web page address according to preset order, described comment number sorted lists is sent to described browser client.
21. devices according to claim 19, is characterized in that, described device also comprises:
Lastest imformation generation module, for receiving web page address and the comment object information of browser client transmission; According to described comment object information, generate the lastest imformation that described web page address is corresponding; According to described web page address, determine current browser client of just accessing described web page address; Described lastest imformation is sent to the described browser client determined, upgrade webpage comment corresponding to the described web page address of display to make the described browser client determined according to described lastest imformation.
22. devices according to claim 21, is characterized in that, described device also comprises:
Comment number of times modified module, for according to described web page address, obtain the comment ordered series of numbers table that described web page address is corresponding, according to the positional information that described comment object information comprises, comment number of times corresponding for positional information described in described comment ordered series of numbers table is added one and obtains new comment ordered series of numbers table; Or, according to described web page address, obtain the source code of webpage corresponding to described web page address, according to the positional information that described comment object information comprises, the comment number attribute value of webpage article element corresponding for positional information described in described source code is added one, generates new comment ordered series of numbers table according to the described source code after adding an operation.
23. 1 kinds of terminals, is characterized in that, described terminal comprises:
Transmitter, for sending web page browsing request to server, described web page browsing request comprises web page address;
Receiver, for receiving info web corresponding to described web page address that described server returns, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Processor, the source code for comprising according to described info web plays up webpage article corresponding to described web page address, and plays up webpage comment corresponding to described web page address according to the list of described comment object information;
Display, for showing webpage article corresponding to described web page address and the comment of described webpage.
24. 1 kinds of servers, is characterized in that, described server comprises:
Receiver, for receiving the web page browsing request that browser client sends, described web page browsing request comprises web page address;
Processor, for according to described web page address, obtain the info web that described web page address is corresponding, described info web comprises source code and the list of comment object information, and each comment object information in the list of described comment object information comprises the positional information of the webpage article element of user comment;
Transmitter, for sending described info web to described browser client, shows webpage comment corresponding to described web page address to make described browser client according to the list of described comment object information.
CN201510779501.9A 2015-11-12 2015-11-12 A kind of method, apparatus, terminal and the server of the comment of display webpage Active CN105404669B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201510779501.9A CN105404669B (en) 2015-11-12 2015-11-12 A kind of method, apparatus, terminal and the server of the comment of display webpage
US15/348,539 US9946693B2 (en) 2015-11-12 2016-11-10 Displaying of webpage comments in an order according to the number of webpage comments
RU2016144330A RU2665892C2 (en) 2015-11-12 2016-11-11 System and method for displaying online comments
US15/933,692 US10120846B2 (en) 2015-11-12 2018-03-23 System and method for displaying online comments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510779501.9A CN105404669B (en) 2015-11-12 2015-11-12 A kind of method, apparatus, terminal and the server of the comment of display webpage

Publications (2)

Publication Number Publication Date
CN105404669A true CN105404669A (en) 2016-03-16
CN105404669B CN105404669B (en) 2018-08-10

Family

ID=55470158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510779501.9A Active CN105404669B (en) 2015-11-12 2015-11-12 A kind of method, apparatus, terminal and the server of the comment of display webpage

Country Status (1)

Country Link
CN (1) CN105404669B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955593A (en) * 2016-05-03 2016-09-21 网易(杭州)网络有限公司 Method and device for presenting discussion information
CN108460069A (en) * 2017-11-22 2018-08-28 钱慧敏 For the method for web page article independence point of addition comment
CN109800019A (en) * 2018-12-17 2019-05-24 北京达佳互联信息技术有限公司 Code administration method, system, electronic equipment and computer readable storage medium
CN109903126A (en) * 2019-02-01 2019-06-18 北京字节跳动网络技术有限公司 Comment on processing method, device and its relevant device that list is commented in region
CN111898336A (en) * 2020-09-30 2020-11-06 拼说说(深圳)网络科技有限公司 Bullet screen display method and device, computer equipment and storage medium
CN113407277A (en) * 2021-06-18 2021-09-17 咪咕动漫有限公司 Display element color setting method, device, equipment and computer program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048046A1 (en) * 2004-08-24 2006-03-02 Joshi Mukul M Marking and annotating electronic documents
CN103853761A (en) * 2012-12-03 2014-06-11 腾讯科技(深圳)有限公司 Method and device for displaying and adding comments of webpage content
CN104239356A (en) * 2013-06-21 2014-12-24 腾讯科技(深圳)有限公司 Webpage commenting method and system and browser
CN104487936A (en) * 2011-05-24 2015-04-01 因杜·M·阿南德 A method and system for computer-aided consumption of information from application data files
CN104899236A (en) * 2014-11-13 2015-09-09 深圳市腾讯计算机系统有限公司 Comment information display method, comment information display device and comment information display system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048046A1 (en) * 2004-08-24 2006-03-02 Joshi Mukul M Marking and annotating electronic documents
CN104487936A (en) * 2011-05-24 2015-04-01 因杜·M·阿南德 A method and system for computer-aided consumption of information from application data files
CN103853761A (en) * 2012-12-03 2014-06-11 腾讯科技(深圳)有限公司 Method and device for displaying and adding comments of webpage content
CN104239356A (en) * 2013-06-21 2014-12-24 腾讯科技(深圳)有限公司 Webpage commenting method and system and browser
CN104899236A (en) * 2014-11-13 2015-09-09 深圳市腾讯计算机系统有限公司 Comment information display method, comment information display device and comment information display system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955593A (en) * 2016-05-03 2016-09-21 网易(杭州)网络有限公司 Method and device for presenting discussion information
CN105955593B (en) * 2016-05-03 2020-06-09 网易(杭州)网络有限公司 Method and device for presenting discussion information
CN108460069A (en) * 2017-11-22 2018-08-28 钱慧敏 For the method for web page article independence point of addition comment
CN109800019A (en) * 2018-12-17 2019-05-24 北京达佳互联信息技术有限公司 Code administration method, system, electronic equipment and computer readable storage medium
CN109903126A (en) * 2019-02-01 2019-06-18 北京字节跳动网络技术有限公司 Comment on processing method, device and its relevant device that list is commented in region
CN109903126B (en) * 2019-02-01 2021-07-30 北京字节跳动网络技术有限公司 Processing method and device for comment list in comment area and related equipment thereof
CN111898336A (en) * 2020-09-30 2020-11-06 拼说说(深圳)网络科技有限公司 Bullet screen display method and device, computer equipment and storage medium
CN113407277A (en) * 2021-06-18 2021-09-17 咪咕动漫有限公司 Display element color setting method, device, equipment and computer program

Also Published As

Publication number Publication date
CN105404669B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN105404669A (en) Method, apparatus, terminal and server for displaying webpage comment
US20150278359A1 (en) Method and apparatus for generating a recommendation page
WO2015172490A1 (en) Method and apparatus for providing extended search item
CN105574176A (en) Hot word recommending method and device with combination of multiple data sources
EP3873065B1 (en) Content recommendation method, mobile terminal, and server
CN105095480A (en) Providing link to portion of media object in real time in social networking update
CN102368262A (en) Method and equipment for providing searching suggestions corresponding to query sequence
CN105072465A (en) Video play control method and electronic equipment
CN105677815B (en) A kind of Web page bookmark adding method and terminal
CN104516892A (en) Distribution method, system and terminal of user generated content associated with rich media information
CN104699704A (en) Content pushing and receiving method, device and system
CN104426925A (en) Webpage resource obtaining method and apparatus
CN105095374A (en) Method and device for browsing mobile terminal news
CN105095426A (en) Processing method and device for search results
CN112035752A (en) Resource searching method and device, electronic equipment and readable storage medium
CN105183853A (en) Method and device used for presenting label page
CN104270647B (en) A kind of media content recommendations method and apparatus
CN105824949A (en) Method and device for adding comments
CN108028839B (en) System and method for dynamically restricting rendering of unauthorized content included in information resources
CN105389369A (en) Web page commenting method and apparatus, terminal and server
US10120846B2 (en) System and method for displaying online comments
CN104954824A (en) Method, device and system for setting video
CN104581224A (en) Play content switching method and device and terminal
CN103686308A (en) Method and system for setting video shuffle playing
CN103179207A (en) Data transmission method and system as well as device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200608

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 12 layer self unit 01

Patentee before: GUANGZHOU SHENMA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right