WO2016155299A1 - 用于显示网页标记信息的方法与装置 - Google Patents

用于显示网页标记信息的方法与装置 Download PDF

Info

Publication number
WO2016155299A1
WO2016155299A1 PCT/CN2015/092960 CN2015092960W WO2016155299A1 WO 2016155299 A1 WO2016155299 A1 WO 2016155299A1 CN 2015092960 W CN2015092960 W CN 2015092960W WO 2016155299 A1 WO2016155299 A1 WO 2016155299A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
markup
information
original
user
Prior art date
Application number
PCT/CN2015/092960
Other languages
English (en)
French (fr)
Inventor
覃健
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2016155299A1 publication Critical patent/WO2016155299A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of computer equipment, and in particular, to a method and apparatus for displaying webpage markup information.
  • the method for implementing a note based on a webpage is generally configured to store a webpage content and a note content in a network device after taking a note for the webpage, and when the user needs to view the note content, the remote device needs to log in to the network device and is in the network device. Find the notes you need in the collection of notes.
  • the main problems existing in the prior art are: 1) the presentation of the webpage notes is separated from the webpage browsing behavior, that is, the browsing of the webpage notes cannot be synchronized with the browsing of the webpage by the user, and the user is required to perform additional operations so that the webpage notes are presented in a separate scene. 2) When the user needs to operate the webpage under the guidance of the webpage note, for example, the registration information is filled out based on the webpage note, etc., since the webpage note presentation and the currently browsed webpage to be operated are separated from each other, the existing scheme cannot be achieve.
  • a method for displaying a webpage mark in a first user equipment A method of recording information, wherein the method comprises:
  • a method for assisting in displaying webpage tag information in a network device includes:
  • a method for assisting in displaying webpage tag information in a second user device comprises:
  • an apparatus for displaying webpage tag information in a first user device comprising:
  • Means for displaying the first webpage tag information Means for displaying the first webpage tag information.
  • an apparatus for assisting in displaying webpage tag information in a network device comprising:
  • an auxiliary device for use in a second user equipment.
  • a device for displaying webpage mark information wherein the device comprises:
  • Means for transmitting the first web page tag information to a network device Means for transmitting the first web page tag information to a network device.
  • the present invention has the following advantages: the network device provides the first webpage markup information to the first user equipment in real time based on the webpage markup query request, and realizes real-time presentation of the webpage markup information in the process of the user browsing the webpage, and the user Browsing webpage tag information is synchronized with browsing webpages, without performing additional operations for presenting webpage tag information, reducing user operation steps, reducing operation complexity, and improving user browsing experience; further, for users to mark information on webpages Providing the possibility of operating the webpage under the guidance, for example, enabling the user to fill in the registration information based on the webpage tag information.
  • FIG. 1 is a schematic flow chart of a method for displaying webpage markup information according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for displaying webpage markup information according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a first user equipment for displaying webpage markup information and a network device for displaying webpage markup information according to the present invention
  • FIG. 4 is a schematic diagram showing the structure of a second user equipment for displaying webpage markup information and a network device for displaying webpage markup information according to a preferred embodiment of the present invention.
  • Computer device also referred to as “computer” in the context, is meant an intelligent electronic device that can perform predetermined processing, such as numerical calculations and/or logical calculations, by running a predetermined program or instruction, which can include a processor and The memory is executed by the processor to execute a predetermined process pre-stored in the memory to execute a predetermined process, or is executed by hardware such as an ASIC, an FPGA, a DSP, or the like, or a combination of the two.
  • Computer devices include, but are not limited to, servers, personal computers, notebook computers, tablets, smart phones, and the like.
  • the computer device includes a user device and a network device.
  • the user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.
  • the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud computing based computer Or a cloud composed of a network server, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network.
  • the network in which the computer device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
  • the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future possible computer equipment or networks, such as those applicable to the present invention, are also included in the scope of the present invention. It is included here by reference.
  • the methods discussed below can be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof.
  • the serial code or code segments can be stored in a machine or computer readable medium such as a storage medium.
  • the processor(s) can perform the necessary tasks.
  • FIG. 1 is a schematic flowchart diagram of a method for displaying webpage markup information according to an embodiment of the present invention.
  • step S1110 the first user equipment sends a webpage markup query request of the current first webpage to the network device; in step S1210, the network device receives the webpage markup query request from the first user equipment; in step S1220, according to the webpage markup Querying the request, finding and determining the first webpage markup information corresponding to the webpage markup query request; in step S1230, transmitting the first webpage markup information to the first user equipment; in step S1120, the first user equipment receiving the network device returning The first webpage markup information corresponding to the webpage markup query request; in step S1120, the first webpage markup information is displayed.
  • the network device provides the first webpage markup information to the first user equipment in real time based on the webpage markup query request, so that the webpage markup information is displayed in real time during the process of the user browsing the webpage, and the user browses the webpage markup information and browses the webpage.
  • step S1110 the first user equipment sends a webpage markup query request of the current first webpage to the network device.
  • the current first webpage is a webpage that the user browses now on the screen of the first user equipment, and when the user wants to view the first webpage marking information corresponding to the current first webpage, the triggering operation, such as clicking the webpage marking, Querying a button or the like to generate a webpage markup query request of the current first webpage; wherein the current webpage markup query request of the first webpage includes a first webpage identifier, such as a URL of the current first webpage, and a first user identifier, such as the first User's user ID.
  • step S1210 the network device receives the webpage markup query request from the first user equipment; wherein the current webpage markup query request of the first webpage includes the first webpage identifier and the first user identifier.
  • step S1220 the network device searches for and determines the first webpage markup information corresponding to the webpage markup query request according to the webpage markup query request;
  • the webpage mark record stores the webpage markup information of the plurality of webpages, and stores the correspondence between the user identifier, the webpage identifier, and the webpage markup information; for example, the webpage markup record is in the form of a list, and the user's network is recorded in the list.
  • the method further comprises: determining social rights information associated with the first user identifier; searching and determining, in the webpage mark record, the first webpage that matches the first user identity and the social rights information according to the first webpage identifier Mark information.
  • the social rights information includes the permission information of the first webpage markup information corresponding to the other users that the first user has the permission to obtain. That is, in addition to the first webpage markup information corresponding to the first user, the first friend of the first webpage may be stored in the webpage mark record. Web page tag information.
  • the second user After the marking operation of the first webpage pointed by the corresponding URL of the first webpage identifier is performed, the second user generates the first webpage marking information, and the first webpage marking information, the first webpage identifier, and the second user identifier are stored in association.
  • the webpage mark record the first user and the second user are recorded as a friend relationship in the social rights information; and the second user identifier is determined in the social rights information according to the first user identifier, and then based on The URL of the first webpage and the user ID of the second user find and determine the first webpage tag information matching the webpage tag record.
  • the user may query the webpage tag information of other users who are in a friend relationship with each other, and when the user or the friend of the user accesses the webpage at any time after generating the webpage tag information, the history may be automatically
  • the webpage tag information and the webpage tag information webpage generated in real time are combined to realize the effect of one-person tagging and multi-person viewing; further, different users can realize collaborative processing of tag information by means of tag information sharing.
  • step S1230 the network device sends the first webpage tag information to the first user setting. Ready.
  • the network device sends only the first webpage markup information to the first user equipment; or sends the first webpage markup information corresponding to the webpage markup query request and the original first webpage to the first user equipment; or
  • the merged merged webpage is sent to the first user equipment, as follows:
  • the first webpage markup information is generated based on the original first webpage, and step S1230 includes step S1231 (not shown) and step S1232 (not shown); in step S1231, the network The device determines the original first webpage according to the first webpage identifier; in step S1232, the original first webpage is merged with the first webpage marking information, and the merged webpage is sent to the first user equipment.
  • the current first webpage and the original first webpage correspond to the first webpage markup information.
  • the first webpage identifier includes a URL of the current first webpage; and the current first webpage is the same as the URL corresponding to the original first webpage.
  • a webpage pointed to by a URL is the original first webpage when the first webpage markup information is generated, and is the current first webpage when the first webpage markup information is requested, and if the webpage content is not modified, the original first webpage and the current The first webpage is the same; if the webpage content is modified after the first webpage marking information is generated, the original first webpage is different from the current first webpage.
  • the first webpage markup information includes, but is not limited to, a markup content and a mark location; and/or a markup layer;
  • the network device determines the original first webpage in the webpage repository according to the URL; subsequently, the HTML file of the original first webpage is merged with the marked content based on the marked location, and then the marked layer is superimposed to generate the merged webpage.
  • the webpage tag information includes at least two modes:
  • HTML type tag information including tag content and tag location
  • tag information is tag data implemented based on HTML CSS styles. That is, in addition to marking the content, such as text, highlighting color, etc., the mark information needs to record the location of the mark content, and the position can be determined by recording the CSS tag where the mark content is located.
  • the way the tag content and tag location are recorded is as follows:
  • markup layer such as canvas layer data
  • This type of tag information is background transparent layer data, that is, an editable canvas canvas is attached to the upper layer of the webpage, and the user can mark the canvas on the canvas, and then the canvas is saved as a picture.
  • the way the marker layer is recorded is as follows:
  • the size is recorded in the case of recording the canvas image in the case of a web page presentation ratio.
  • the specific manner of combining the first webpage with the first webpage marking information is:
  • This type of tag information is tag data implemented based on HTML CSS styles and needs to be merged with the HTML and CSS code of the first web page to form HTML and CSS code for the merged web page.
  • the specific manner is: according to the specific location of the CSS tag in the HTML file in each piece of mark content, by positioning the CSS tag, each piece of mark content is added to the corresponding position of the HTML file of the first web page.
  • This type of tag information is used to store any picture mark, such as custom curves, handwriting, and the like.
  • the marker layer is a layer image with a transparent background color.
  • the layer image of the markup layer is directly superimposed on the webpage, and the layer image is aligned with the coordinates of the upper left corner of the webpage; meanwhile, according to the current zoom ratio of the webpage and the zoom ratio of the webpage when the layer image is generated, Scale the layer image to achieve the layering effect of the markup layer and the first page.
  • the order in which the two types of tag information are merged is to load the HTML type tag information preferentially, and then load the canvas tag layer.
  • step S1120 the first user equipment receives the first webpage markup information corresponding to the webpage markup query request returned by the network device. That is, the first user equipment receives the first webpage tag information returned by the network device corresponding to the first webpage identifier and the first user identifier information.
  • the first user equipment only receives the first webpage markup information corresponding to the webpage markup query request; or receives the first webpage markup information corresponding to the webpage markup query request and the original first webpage; or after receiving the merge process Merged page.
  • step S1130 the first user equipment displays the first webpage markup information.
  • the display manner includes three scenarios:
  • the display mode is that the network device sends the first webpage markup information only to the first user equipment, and the display manner is specifically that the user equipment uses the first webpage markup information After performing the merge process with the current first web page, the display is performed.
  • the first user equipment receives the first webpage markup information and the original first webpage corresponding to the webpage markup query request returned by the network device, where the first webpage markup information is generated based on the original first webpage;
  • the first webpage markup information is merged with the original first webpage, and the merged webpage is displayed.
  • the first user equipment receives the merged webpage that has been merged between the first webpage markup information and the original first webpage returned by the network device; the display manner is specifically to directly display the merged webpage.
  • FIG. 2 is a schematic flow chart of a method for displaying webpage markup information according to another embodiment of the present invention.
  • step S2310 the second user equipment receives the marking operation input by the first user for the original first webpage; in step S2320, the first webpage marking information of the original first webpage is generated according to the marking operation; in step S2330, a webpage tag information is sent to the network device; in step S2240, the network device receives the first webpage tag information sent by the second user device for the original first webpage; in step S2250, the webpage tag is updated based on the first webpage tag information. recording.
  • step S2310 the second user equipment receives the marking operation input by the first user for the original first webpage.
  • step S2320 the first webpage markup information of the original first webpage is generated according to the marking operation.
  • the generation method includes the following two types:
  • the one-page mark information is HTML type mark information, and the specific generation manner has been detailed in the embodiment shown in FIG. 1;
  • step S2330 the first webpage markup information is sent to the network device; in step S2240, the network device receives the first webpage markup information sent by the second user equipment for the original first webpage.
  • step S2250 the network device updates the webpage mark record based on the first webpage markup information.
  • the network device writes a data record in the webpage mark record, including the first webpage markup information, and records the first webpage markup information and the first webpage identifier associated with the first user identifier in the webpage mark record. .
  • the user may select the HTML-type markup information mode or the markup layer mode for editing, and send the generated markup information to the network device for storage for the user and its Friends will check back later.
  • FIG. 3 is a schematic diagram showing the structure of a first user equipment for displaying webpage markup information and a network device for displaying webpage markup information according to the present invention.
  • the first user equipment according to the present invention includes: means for transmitting a webpage markup query request of the current first webpage to the network device (hereinafter referred to as “requesting transmitting device 3110"); and receiving a webpage markup query request returned by the network device Corresponding first web page tag information
  • the device hereinafter referred to as "first mark receiving device 3120”
  • means for displaying the first web page mark information hereinafter referred to as "display device 3130").
  • the network device includes: means for receiving a webpage markup query request from the first user equipment (hereinafter referred to as “request receiving means 3210"); for finding and determining a query request with the webpage markup according to the webpage markup query request
  • the corresponding first web page mark information device hereinafter referred to as “mark determination device 3220”
  • means for transmitting the first web page mark information to the first user device hereinafter referred to as “first mark transmitting device 3230").
  • the request transmitting device 3110 transmits a webpage markup query request of the current first webpage to the network device; the request receiving device 3210 receives the webpage markup query request from the first user device; the mark determining means 3220 searches for the query according to the webpage markup query Determining first webpage markup information corresponding to the webpage markup query request; the first mark sending means 3230 transmits the first webpage markup information to the first user equipment; the first mark receiving means 3120 receives the webpage markup query returned by the network device The corresponding first webpage tag information is requested; the display device 3130 displays the first webpage tag information.
  • the network device provides the first webpage markup information to the first user equipment in real time based on the webpage markup query request, so that the webpage markup information is displayed in real time during the process of the user browsing the webpage, and the user browses the webpage markup information and browses the webpage.
  • the request transmitting device 3110 transmits a webpage mark query request of the current first webpage to the network device.
  • the current first webpage is a webpage that the user browses now on the screen of the first user equipment, and when the user wants to view the first webpage marking information corresponding to the current first webpage, the triggering operation, such as clicking the webpage marking, Querying a button or the like to generate a webpage markup query request of the current first webpage; wherein the current webpage markup query request of the first webpage includes a first webpage identifier, such as a URL of the current first webpage, and a first user identifier, such as the first User's user ID.
  • the request receiving device 3210 of the network device receives the webpage markup query request from the first user device; wherein the current webpage markup query request of the first webpage includes the first webpage identifier and the first user identifier.
  • the tag determining means 3220 searches for and determines the first webpage markup information corresponding to the webpage markup query request according to the webpage markup query request;
  • the webpage mark record stores the webpage markup information of the plurality of webpages, and stores the correspondence between the user identifier, the webpage identifier, and the webpage markup information; for example, the webpage markup record is in the form of a list, and the user's network is recorded in the list.
  • the method further comprises: determining social rights information associated with the first user identifier; searching and determining, in the webpage mark record, the first webpage that matches the first user identity and the social rights information according to the first webpage identifier Mark information.
  • the social rights information includes the permission information of the first webpage markup information corresponding to the other users that the first user has the permission to obtain. That is, in addition to the first webpage markup information corresponding to the first user, the first friend of the first webpage may be stored in the webpage mark record. Web page tag information.
  • the second user After the marking operation of the first webpage pointed by the corresponding URL of the first webpage identifier is performed, the second user generates the first webpage marking information, and the first webpage marking information, the first webpage identifier, and the second user identifier are stored in association.
  • the webpage mark record the first user and the second user are recorded as a friend relationship in the social rights information; and the second user identifier is determined in the social rights information according to the first user identifier, and then based on The URL of the first webpage and the user ID of the second user find and determine the first webpage tag information matching the webpage tag record.
  • the user may query the webpage tag information of other users who are in a mutual friend relationship, and the user or the user's friend may arbitrarily generate the webpage tag information.
  • the historical webpage markup information and the real-time generated webpage markup information webpage can be automatically combined to realize one-person mark and multi-person view effect; further, different users can share information through markup The way to achieve collaborative processing of tag information.
  • the first tag transmitting device 3230 transmits the first web page tag information to the first user device.
  • the network device sends only the first webpage markup information to the first user equipment; or sends the first webpage markup information corresponding to the webpage markup query request and the original first webpage to the first user equipment; or
  • the merged merged webpage is sent to the first user equipment, as follows:
  • the first webpage markup information is generated based on the original first webpage
  • the first mark sending means 3230 includes: means for determining the original first webpage according to the first webpage identifier (hereinafter referred to as "original webpage” a determining device”); means for combining the original first web page with the first web page mark information and transmitting the merged web page to the first user device (hereinafter referred to as “merging transmitting device”).
  • the original webpage determining apparatus determines the original first webpage according to the first webpage identifier; then, the merge sending apparatus merges the original first webpage with the first webpage markup information, and sends the merged webpage to the first user equipment.
  • the current first webpage and the original first webpage correspond to the first webpage markup information.
  • the first webpage identifier includes a URL of the current first webpage; and the current first webpage is the same as the URL corresponding to the original first webpage.
  • a webpage pointed to by a URL is the original first webpage when the first webpage markup information is generated, and is the current first webpage when the first webpage markup information is requested, and if the webpage content is not modified, the original first webpage and the current The first webpage is the same; if the webpage content is modified after the first webpage marking information is generated, the original first webpage is different from the current first webpage.
  • the first webpage markup information includes, but is not limited to, a markup content and a mark location; and/or a markup layer;
  • the network device determines the original first webpage in the webpage repository according to the URL; subsequently, the HTML file of the original first webpage is merged with the marked content based on the marked location, and then the marked layer is superimposed to generate the merged webpage.
  • the webpage tag information includes at least two modes:
  • HTML type tag information including tag content and tag location
  • tag information is tag data implemented based on HTML CSS styles. That is, in addition to marking the content, such as text, highlighting color, etc., the mark information needs to record the location of the mark content, and the position can be determined by recording the CSS tag where the mark content is located.
  • the way the tag content and tag location are recorded is as follows:
  • markup layer such as canvas layer data
  • This type of tag information is background transparent layer data, that is, an editable canvas canvas is attached to the upper layer of the webpage, and the user can mark the canvas on the canvas, and then the canvas is saved as a picture.
  • the way the marker layer is recorded is as follows:
  • the size is recorded in the case of recording the canvas image in the case of a web page presentation ratio.
  • the specific manner of combining the first webpage with the first webpage marking information is:
  • This type of tag information is tag data implemented based on HTML CSS styles and needs to be merged with the HTML and CSS code of the first web page to form HTML and CSS code for the merged web page.
  • the specific manner is: according to the specific location of the CSS tag in the HTML file in each piece of mark content, by positioning the CSS tag, each piece of mark content is added to the corresponding position of the HTML file of the first web page.
  • This type of tag information is used to store any picture mark, such as custom curves, handwriting, and the like.
  • the marker layer is a layer image with a transparent background color.
  • the layer image of the markup layer is directly superimposed on the webpage, and the layer image is aligned with the coordinates of the upper left corner of the webpage; meanwhile, according to the current zoom ratio of the webpage and the zoom ratio of the webpage when the layer image is generated, Scale the layer image to achieve the layering effect of the markup layer and the first page.
  • the order in which the two types of tag information are merged is to load the HTML type tag information preferentially, and then load the canvas tag layer.
  • the first tag receiving device 3120 receives the first webpage tag information corresponding to the webpage tag query request returned by the network device. That is, the first user equipment receives the first webpage tag information returned by the network device corresponding to the first webpage identifier and the first user identifier information.
  • the first user equipment only receives the first webpage markup information corresponding to the webpage markup query request; or receives the first webpage markup information corresponding to the webpage markup query request and the original first webpage; or after receiving the merge process Merged page.
  • the display device 3130 displays the first web page mark information.
  • the display manner includes three scenarios:
  • the display mode is that the network device sends the first webpage markup information only to the first user equipment, and the display manner is specifically that the user equipment uses the first webpage markup information After performing the merge process with the current first web page, the display is performed.
  • the first user equipment receives the first webpage markup information and the original first webpage corresponding to the webpage markup query request returned by the network device, where the first webpage markup information is generated based on the original first webpage;
  • the first webpage markup information is merged with the original first webpage, and the merged webpage is displayed.
  • the first user equipment receives the merged webpage that has been merged between the first webpage markup information and the original first webpage returned by the network device; the display manner is specifically to directly display the merged webpage.
  • the second user equipment includes: means for receiving a marking operation input by the first user for the original first webpage (hereinafter referred to as "operation receiving means 4310"); for generating an original first webpage according to the marking operation A device for marking information of the first web page (hereinafter referred to as “mark generating device 4320”); a device for transmitting the first web page mark information to the network device (hereinafter referred to as "second mark transmitting device 4330");
  • the network device according to the present invention further includes: means for receiving first webpage markup information for the original first webpage sent by the second user equipment (hereinafter referred to as “second mark receiving means 4240”); The device that marks the information and updates the web page mark record (hereinafter referred to as "update device 4250").
  • the operation receiving means 4310 of the second user device receives the marking operation input by the first user for the original first web page.
  • the tag generating means 4320 generates first web page tag information of the original first web page based on the tag operation.
  • the generation method includes the following two types:
  • the one-page mark information is HTML type mark information, and the specific generation manner has been detailed in the embodiment shown in FIG. 1;
  • the second tag sending device 4330 transmits the first webpage tag information to the network device; the second tag receiving device 4240 of the network device receives the first webpage tag information sent by the second user device for the original first webpage.
  • the update device 4250 updates the web page mark record based on the first web page mark information.
  • the network device writes a data record in the webpage mark record, including the first webpage markup information, and records the first webpage markup information and the first webpage identifier associated with the first user identifier in the webpage mark record. .
  • the user may select the HTML-type markup information mode or the markup layer mode for editing, and send the generated markup information to the network device for storage for the user and its Friends will check back later.
  • the present invention can be implemented in software and/or a combination of software and hardware.
  • the various devices of the present invention can be implemented using an application specific integrated circuit (ASIC) or any other similar hardware device.
  • the software program of the present invention may be executed by a processor to implement the steps or functions described above.
  • the software program (including related data structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like.
  • some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

Landscapes

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

Abstract

本发明的目的是提供一种用于显示网页标记信息的方法与装置。其中,第一用户设备向网络设备发送当前第一网页的网页标记查询请求;网络设备接收来自第一用户设备的网页标记查询请求;随后,根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息;接着,将第一网页标记信息发送至第一用户设备;第一用户设备接收网络设备返回的与网页标记查询请求相应的第一网页标记信息;随后,显示第一网页标记信息。本方案的实施例,实现了在用户浏览网页的过程中实时呈现网页标记信息,用户浏览网页标记信息与浏览网页同步进行,而无需为了呈现网页标记信息执行额外的操作,减少用户操作步骤,降低操作复杂度,提升用户浏览使用体验。

Description

用于显示网页标记信息的方法与装置
相关申请的交叉引用
本申请要求2015年4月1日提交的专利申请号为201510151742.9、名称为“用于显示网页标记信息的方法与装置”的中国专利申请的优先权,该中国专利申请的内容以引用方式并入本文本中。
技术领域
本发明涉及计算机设备领域,尤其涉及一种用于显示网页标记信息的方法与装置。
背景技术
互联网用户在浏览网页的过程中,时常会出现需要实时记录浏览到的网页内容的情况,例如,图书的阅读笔记、随想评论,技术指南的操作指导步骤等。现有技术中,实现基于网页做笔记的方法通常为针对网页做笔记后,将网页内容和笔记内容存储于网络设备中,当用户需要查看笔记内容时,需要远程登陆网络设备,并在网络设备的笔记集合中查找其所需的笔记内容。
现有技术存在的主要问题在于:1)网页笔记的呈现和网页浏览行为相脱离,即网页笔记的浏览无法与用户浏览网页同步进行,需用户执行额外的操作使得网页笔记在独立的场景下呈现;2)当用户需要在网页笔记的指导下对网页进行操作时,例如,基于网页笔记进行注册信息的填写等,由于网页笔记呈现和当前浏览待操作的网页是相互脱离的,现有方案无法实现。
发明内容
本发明的目的是提供一种用于显示网页标记信息方法与装置。
根据本发明的一个方面,一种在第一用户设备中用于显示网页标 记信息的方法,其中,该方法包括:
向网络设备发送当前第一网页的网页标记查询请求;
接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息;
显示所述第一网页标记信息。
根据本发明的另一个方面,还提供了一种在网络设备中辅助用于显示网页标记信息的方法,其中,该方法包括:
接收来自第一用户设备的网页标记查询请求;
根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息;
将所述第一网页标记信息发送至所述第一用户设备。
根据本发明的另一个方面,还提供了一种在第二用户设备中辅助用于显示网页标记信息的方法,其中,该方法包括:
接收第一用户针对原始第一网页输入的标记操作;
根据所述标记操作,生成所述原始第一网页的第一网页标记信息;
将所述第一网页标记信息发送至网络设备。
根据本发明的另一个方面,还提供了一种在第一用户设备中用于显示网页标记信息的装置,其中,该装置包括:
用于向网络设备发送当前第一网页的网页标记查询请求的装置;
用于接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息的装置;
用于显示所述第一网页标记信息的装置。
根据本发明的另一个方面,还提供了一种在网络设备中辅助用于显示网页标记信息的装置,其中,该装置包括:
用于接收来自第一用户设备的网页标记查询请求的装置;
用于根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息的装置;
用于将所述第一网页标记信息发送至所述第一用户设备的装置。
根据本发明的另一个方面,还提供了一种在第二用户设备中辅助用 于显示网页标记信息的装置,其中,该装置包括:
用于接收第一用户针对原始第一网页输入的标记操作的装置;
用于根据所述标记操作,生成所述原始第一网页的第一网页标记信息的装置;
用于将所述第一网页标记信息发送至网络设备的装置。
与现有技术相比,本发明具有以下优点:网络设备基于网页标记查询请求实时地向第一用户设备提供第一网页标记信息,实现了在用户浏览网页的过程中实时呈现网页标记信息,用户浏览网页标记信息与浏览网页同步进行,而无需为了呈现网页标记信息执行额外的操作,减少用户操作步骤,降低操作复杂度,提升用户浏览使用体验;进一步地,也为用户需要在网页标记信息的指导下对网页进行操作提供可能性,例如,可实现用户基于网页标记信息进行注册信息的填写等。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1为本发明一个实施例的用于显示网页标记信息的方法的流程示意图;
图2为本发明另一个实施例的用于显示网页标记信息的方法的流程示意图;
图3示意出了根据本发明的一种用于显示网页标记信息的第一用户设备以及一种用于显示网页标记信息的网络设备的结构示意图;
图4示意出了根据本发明优选实施例的一种用于显示网页标记信息的第二用户设备以及一种用于显示网页标记信息的网络设备的结构示意图。
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
下面结合附图对本发明作进一步详细描述。
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。
在上下文中所称“计算机设备”,也称为“电脑”,是指可以通过运行预定程序或指令来执行数值计算和/或逻辑计算等预定处理过程的智能电子设备,其可以包括处理器与存储器,由处理器执行在存储器中预存的存续指令来执行预定处理过程,或是由ASIC、FPGA、DSP等硬件执行预定处理过程,或是由上述二者组合来实现。计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能手机等。
所述计算机设备包括用户设备与网络设备。其中,所述用户设备包括但不限于电脑、智能手机、PDA等;所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量计算机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。其中,所述计算机设备可单独运行来实现本发明,也可接入网络并通过与网络中的其他计算机设备的交互操作来实现本发明。其中,所述计算机设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。
需要说明的是,所述用户设备、网络设备和网络等仅为举例,其他现有的或今后可能出现的计算机设备或网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。
后面所讨论的方法(其中一些通过流程图示出)可以通过硬件、软件、固件、中间件、微代码、硬件描述语言或者其任意组合来实施。当用软件、固件、中间件或微代码来实施时,用以实施必要任务的程 序代码或代码段可以被存储在机器或计算机可读介质(比如存储介质)中。(一个或多个)处理器可以实施必要的任务。
这里所公开的具体结构和功能细节仅仅是代表性的,并且是用于描述本发明的示例性实施例的目的。但是本发明可以通过许多替换形式来具体实现,并且不应当被解释成仅仅受限于这里所阐述的实施例。
应当理解的是,虽然在这里可能使用了术语“第一”、“第二”等等来描述各个单元,但是这些单元不应当受这些术语限制。使用这些术语仅仅是为了将一个单元与另一个单元进行区分。举例来说,在不背离示例性实施例的范围的情况下,第一单元可以被称为第二单元,并且类似地第二单元可以被称为第一单元。这里所使用的术语“和/或”包括其中一个或更多所列出的相关联项目的任意和所有组合。
应当理解的是,当一个单元被称为“连接”或“耦合”到另一单元时,其可以直接连接或耦合到所述另一单元,或者可以存在中间单元。与此相对,当一个单元被称为“直接连接”或“直接耦合”到另一单元时,则不存在中间单元。应当按照类似的方式来解释被用于描述单元之间的关系的其他词语(例如“处于...之间”相比于“直接处于...之间”,“与...邻近”相比于“与...直接邻近”等等)。
这里所使用的术语仅仅是为了描述具体实施例而不意图限制示例性实施例。除非上下文明确地另有所指,否则这里所使用的单数形式“一个”、“一项”还意图包括复数。还应当理解的是,这里所使用的术语“包括”和/或“包含”规定所陈述的特征、整数、步骤、操作、单元和/或组件的存在,而不排除存在或添加一个或更多其他特征、整数、步骤、操作、单元、组件和/或其组合。
还应当提到的是,在一些替换实现方式中,所提到的功能/动作可以按照不同于附图中标示的顺序发生。举例来说,取决于所涉及的功能/动作,相继示出的两幅图实际上可以基本上同时执行或者有时可以按照相反的顺序来执行。
下面结合附图对本发明作进一步详细描述。
图1为本发明一个实施例的用于显示网页标记信息的方法的流程示意图。
在步骤S1110中,第一用户设备向网络设备发送当前第一网页的网页标记查询请求;在步骤S1210中,网络设备接收来自第一用户设备的网页标记查询请求;在步骤S1220中,根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息;在步骤S1230中,将第一网页标记信息发送至第一用户设备;在步骤S1120中,第一用户设备接收网络设备返回的与网页标记查询请求相应的第一网页标记信息;在步骤S1120中,显示第一网页标记信息。
本方案的实施例,网络设备基于网页标记查询请求实时地向第一用户设备提供第一网页标记信息,实现了在用户浏览网页的过程中实时呈现网页标记信息,用户浏览网页标记信息与浏览网页同步进行,而无需为了呈现网页标记信息执行额外的操作,减少用户操作步骤,降低操作复杂度,提升用户浏览使用体验;进一步地,也为用户需要在网页标记信息的指导下对网页进行操作提供可能性,例如,可实现用户基于网页标记信息进行注册信息的填写等。
在步骤S1110中,第一用户设备向网络设备发送当前第一网页的网页标记查询请求。
具体地,当前第一网页为用户在第一用户设备的屏幕上现在浏览的网页,当用户希望查看与该当前第一网页相对应的第一网页标记信息时,通过触发操作,如点击网页标记查询按键等,来生成当前第一网页的网页标记查询请求;其中,当前第一网页的网页标记查询请求包括第一网页标识,如当前第一网页的URL,以及第一用户标识,如第一用户的用户ID。
在步骤S1210中,网络设备接收来自第一用户设备的网页标记查询请求;其中,当前第一网页的网页标记查询请求包括第一网页标识及第一用户标识。
在步骤S1220中,网络设备根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息;
具体地,提取网页标记查询请求中的第一网页标识和第一用户标识,并基于第一网页标识和第一用户标识,在网页标记记录中查找并确定相匹配的第一网页标记信息;其中,网页标记记录中存储有多个网页的网页标记信息,并存储有用户标识、网页标识及网页标记信息之间的对应关系;例如,网页标记记录为列表形式,该列表中记录有用户的网络ID、网页URL及网页标记信息的对应关系。
优选地,该方法还包括:确定与第一用户标识相关联的社交权限信息;根据第一网页标识,在网页标记记录中查找并确定与第一用户标识及社交权限信息相匹配的第一网页标记信息。其中,社交权限信息包括预设的第一用户有权限能够获取到的与其他用户对应的第一网页标记信息的权限信息。即除了可以获取与第一用户相应的第一网页标记信息外,还可以基于社交权限信息去查询第一用户有权限阅读的好友是否也在网页标记记录中存储有第一网页标识对应的第一网页标记信息。
例如,第二用户在对第一网页标识对应URL指向的第一网页进行标记操作后,生成第一网页标记信息,且第一网页标记信息、第一网页标识及第二用户标识相关联地存储在网页标记记录中;社交权限信息中记录第一用户与第二用户互为好友关系;则根据第一用户标识,在社交权限信息中确定与其互为好友关系的第二用户标识,接着,基于第一网页的URL和第二用户的用户ID,在网页标记记录中查找并确定与之相匹配的第一网页标记信息。
本实施例的方案中,用户可以查询与其互为好友关系的其他用户的网页标记信息,当用户或用户的好友,在生成网页标记信息之后的任意时间访问该网页时,都可以自动将历史的网页标记信息和实时生成的网页标记信息网页进行合并处理,即可实现一人标记,多人查看的效果;更进一步地,不同用户可以通过标记信息共享的方式,实现标记信息的协同处理。
在步骤S1230中,网络设备将第一网页标记信息发送至第一用户设 备。
具体地,网络设备仅将第一网页标记信息发送至第一用户设备;或将与网页标记查询请求相应的第一网页标记信息及原始第一网页一并发送至第一用户设备;或将进行合并处理后的合并网页发送至第一用户设备,具体如下:
优选地,参照图1,第一网页标记信息是基于原始第一网页生成的,步骤S1230包括步骤S1231(图中未示出)和步骤S1232(图中未示出);在步骤S1231中,网络设备根据第一网页标识,确定原始第一网页;在步骤S1232中,将原始第一网页与第一网页标记信息进行合并处理,并将合并网页发送至第一用户设备。
其中,当前第一网页与原始第一网页均对应第一网页标记信息。具体地,第一网页标识包括当前第一网页的URL;且当前第一网页与原始第一网页对应的URL相同。例如,一条URL指向的网页在生成第一网页标记信息时为原始第一网页,在请求获取第一网页标记信息时为当前第一网页,若网页内容未经过修改,则原始第一网页与当前第一网页相同;若在生成第一网页标记信息后网页内容经过修改,则原始第一网页与当前第一网页不相同。
其中,第一网页标记信息包括但不限于:标记内容和标记位置;和/或标记图层;
具体地,网络设备根据URL,在网页存储库中确定原始第一网页;随后,先将原始第一网页的HTML文件与标记内容基于标记位置进行合并,再叠加标记图层,来生成合并网页。
本方案的实施例中,网页标记信息包括至少两种模式:
1)HTML型标记信息,包括标记内容和标记位置;
此种类型的标记信息为基于HTML CSS样式实现的标记数据。即标记信息除了标记内容,如文字,标亮颜色等,还需要记录标记内容所在的位置,位置可通过记录标记内容所在的CSS标签来确定。标记内容和标记位置的记录方式如下所示:
Figure PCTCN2015092960-appb-000001
2)标记图层,如canvas图层数据;
此种类型的标记信息为背景透明的图层数据,即在网页上层附加一层可以编辑的canvas画板,用户可在此画板上进行标记,随后画板保存后为一张图片。标记图层的记录方式如下所示:
{
“size”:100,
“pic”:”canvas.png”
}
其中,size为记录此canvas图片是在网页呈现种比例的情况下下画出的。
其中,将第一网页与第一网页标记信息进行合并处理的具体方式为:
1)HTML型标记信息
此种类型的标记信息为基于HTML CSS样式实现的标记数据,需要与第一网页的HTML和CSS代码进行合并,形成合并网页的HTML和CSS代码。具体方式为:根据每段标记内容在HTML文件中处于CSS标签的具体位置,通过定位CSS标签,将每段标记内容添加至第一网页的HTML文件的相应位置处。
2)canvas标记图层
此种类型的标记信息用于存储任意图画标记,如自定义曲线、手写字等。标记图层为一张背景色为透明的图层图片。在合并时,直接将标记图层的图层图片叠加在网页上,保持图层图片与网页的左上角坐标对齐;同时,根据网页当前的缩放比例及图层图片生成时网页的缩放比例,同比缩放图层图片,以实现标记图层与第一网页的蒙层效果。
优选地,两种标记信息的合并顺序为优先加载HTML型标记信息,再加载canvas标记图层。
在步骤S1120中,第一用户设备接收网络设备返回的与网页标记查询请求相应的第一网页标记信息。即第一用户设备接收网络设备返回的与第一网页标识及第一用户标识信息相应的第一网页标记信息。
具体地,第一用户设备仅接收到与网页标记查询请求相应的第一网页标记信息;或接收到与网页标记查询请求相应的第一网页标记信息及原始第一网页;或接收到合并处理后的合并网页。
在步骤S1130中,第一用户设备显示第一网页标记信息。
具体地,显示方式包括三种情形:
1)将第一网页标记信息与当前第一网页相关联地显示;该显示方式为网络设备仅向第一用户设备发送第一网页标记信息,则显示方式具体为用户设备将第一网页标记信息和当前第一网页执行合并处理后,再进行显示。
2)第一用户设备接收网络设备返回的与网页标记查询请求相应的第一网页标记信息及原始第一网页,其中,第一网页标记信息是基于原始第一网页生成的;则显示方式具体为将第一网页标记信息与原始第一网页进行合并处理,再将合并后的网页进行显示。
3)第一用户设备接收网络设备返回的已将第一网页标记信息及原始第一网页合并后的合并网页;则显示方式具体为直接将合并网页进行显示。
图2为本发明另一个实施例的用于显示网页标记信息的方法的流程示意图。
在步骤S2310中,第二用户设备接收第一用户针对原始第一网页输入的标记操作;在步骤S2320中,根据标记操作,生成原始第一网页的第一网页标记信息;在步骤S2330,将第一网页标记信息发送至网络设备;在步骤S2240中,网络设备接收第二用户设备发送的针对原始第一网页的第一网页标记信息;在步骤S2250中,基于第一网页标记信息,更新网页标记记录。
在步骤S2310中,第二用户设备接收第一用户针对原始第一网页输入的标记操作。
在步骤S2320中,根据标记操作,生成原始第一网页的第一网页标记信息。
具体地,生成方式包括以下两种:
1)根据标记操作,确定第一用户针对原始第一网页输入的标记内容及标记位置;根据标记内容及标记位置,生成与原始第一网页相关联的第一页标记信息;该方式生成的第一页标记信息为HTML型标记信息,具体生成方式已在图1所示的实施例中进行详述;
2)根据标记操作,生成基于原始第一网页的标记图层;根据标记图层,生成与原始第一网页相关联的第一网页标记信息;该方式生成的第一页标记信息为标记图层,具体生成方式已在图1所示的实施例中进行详述。
在步骤S2330,将第一网页标记信息发送至网络设备;在步骤S2240中,网络设备接收第二用户设备发送的针对原始第一网页的第一网页标记信息。
在步骤S2250中,网络设备基于第一网页标记信息,更新网页标记记录。
具体地,网络设备在网页标记记录中写入一条数据记录,包括第一网页标记信息,且将该第一网页标记信息与第一网页标识与第一用户标识相关联的记录在网页标记记录中。
本优选实施中,用户如果需要对网页进行标记处理,可以选择HTML型标记信息模式或是标记图层模式进行编辑,并将生成的标记信息发送至网络设备进行存储,以用于该用户及其好友以后查阅。
图3示意出了根据本发明的一种用于显示网页标记信息的第一用户设备以及一种用于显示网页标记信息的网络设备的结构示意图。根据本发明的第一用户设备包括:用于向网络设备发送当前第一网页的网页标记查询请求的装置(以下简称“请求发送装置3110”);用于接收网络设备返回的与网页标记查询请求相应的第一网页标记信息的 装置(以下简称“第一标记接收装置3120”);用于显示第一网页标记信息的装置(以下简称“显示装置3130”)。根据本发明的网络设备包括:用于接收来自第一用户设备的网页标记查询请求的装置(以下简称“请求接收装置3210”);用于根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息的装置(以下简称“标记确定装置3220”);用于将第一网页标记信息发送至第一用户设备的装置(以下简称“第一标记发送装置3230”)。
参照图3,请求发送装置3110向网络设备发送当前第一网页的网页标记查询请求;请求接收装置3210接收来自第一用户设备的网页标记查询请求;标记确定装置3220根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息;第一标记发送装置3230将第一网页标记信息发送至所述第一用户设备;第一标记接收装置3120接收网络设备返回的与网页标记查询请求相应的第一网页标记信息;显示装置3130显示第一网页标记信息。
本方案的实施例,网络设备基于网页标记查询请求实时地向第一用户设备提供第一网页标记信息,实现了在用户浏览网页的过程中实时呈现网页标记信息,用户浏览网页标记信息与浏览网页同步进行,而无需为了呈现网页标记信息执行额外的操作,减少用户操作步骤,降低操作复杂度,提升用户浏览使用体验;进一步地,也为用户需要在网页标记信息的指导下对网页进行操作提供可能性,例如,可实现用户基于网页标记信息进行注册信息的填写等。
请求发送装置3110向网络设备发送当前第一网页的网页标记查询请求。
具体地,当前第一网页为用户在第一用户设备的屏幕上现在浏览的网页,当用户希望查看与该当前第一网页相对应的第一网页标记信息时,通过触发操作,如点击网页标记查询按键等,来生成当前第一网页的网页标记查询请求;其中,当前第一网页的网页标记查询请求包括第一网页标识,如当前第一网页的URL,以及第一用户标识,如第一用户的用户ID。
网络设备的请求接收装置3210接收来自第一用户设备的网页标记查询请求;其中,当前第一网页的网页标记查询请求包括第一网页标识及第一用户标识。
标记确定装置3220根据网页标记查询请求,查找并确定与网页标记查询请求相应的第一网页标记信息;
具体地,提取网页标记查询请求中的第一网页标识和第一用户标识,并基于第一网页标识和第一用户标识,在网页标记记录中查找并确定相匹配的第一网页标记信息;其中,网页标记记录中存储有多个网页的网页标记信息,并存储有用户标识、网页标识及网页标记信息之间的对应关系;例如,网页标记记录为列表形式,该列表中记录有用户的网络ID、网页URL及网页标记信息的对应关系。
优选地,该方法还包括:确定与第一用户标识相关联的社交权限信息;根据第一网页标识,在网页标记记录中查找并确定与第一用户标识及社交权限信息相匹配的第一网页标记信息。其中,社交权限信息包括预设的第一用户有权限能够获取到的与其他用户对应的第一网页标记信息的权限信息。即除了可以获取与第一用户相应的第一网页标记信息外,还可以基于社交权限信息去查询第一用户有权限阅读的好友是否也在网页标记记录中存储有第一网页标识对应的第一网页标记信息。
例如,第二用户在对第一网页标识对应URL指向的第一网页进行标记操作后,生成第一网页标记信息,且第一网页标记信息、第一网页标识及第二用户标识相关联地存储在网页标记记录中;社交权限信息中记录第一用户与第二用户互为好友关系;则根据第一用户标识,在社交权限信息中确定与其互为好友关系的第二用户标识,接着,基于第一网页的URL和第二用户的用户ID,在网页标记记录中查找并确定与之相匹配的第一网页标记信息。
本实施例的方案中,用户可以查询与其互为好友关系的其他用户的网页标记信息,当用户或用户的好友,在生成网页标记信息之后的任意 时间访问该网页时,都可以自动将历史的网页标记信息和实时生成的网页标记信息网页进行合并处理,即可实现一人标记,多人查看的效果;更进一步地,不同用户可以通过标记信息共享的方式,实现标记信息的协同处理。
第一标记发送装置3230将第一网页标记信息发送至第一用户设备。
具体地,网络设备仅将第一网页标记信息发送至第一用户设备;或将与网页标记查询请求相应的第一网页标记信息及原始第一网页一并发送至第一用户设备;或将进行合并处理后的合并网页发送至第一用户设备,具体如下:
优选地,参照图3,第一网页标记信息是基于原始第一网页生成的,第一标记发送装置3230包括:用于根据第一网页标识,确定原始第一网页的装置(以下简称“原始网页确定装置”);用于将原始第一网页与第一网页标记信息进行合并处理,并将合并网页发送至第一用户设备的装置(以下简称“合并发送装置”)。
原始网页确定装置根据第一网页标识,确定原始第一网页;随后,合并发送装置将原始第一网页与第一网页标记信息进行合并处理,并将合并网页发送至第一用户设备。
其中,当前第一网页与原始第一网页均对应第一网页标记信息。具体地,第一网页标识包括当前第一网页的URL;且当前第一网页与原始第一网页对应的URL相同。例如,一条URL指向的网页在生成第一网页标记信息时为原始第一网页,在请求获取第一网页标记信息时为当前第一网页,若网页内容未经过修改,则原始第一网页与当前第一网页相同;若在生成第一网页标记信息后网页内容经过修改,则原始第一网页与当前第一网页不相同。
其中,第一网页标记信息包括但不限于:标记内容和标记位置;和/或标记图层;
具体地,网络设备根据URL,在网页存储库中确定原始第一网页;随后,先将原始第一网页的HTML文件与标记内容基于标记位置进行合并,再叠加标记图层,来生成合并网页。
本方案的实施例中,网页标记信息包括至少两种模式:
1)HTML型标记信息,包括标记内容和标记位置;
此种类型的标记信息为基于HTML CSS样式实现的标记数据。即标记信息除了标记内容,如文字,标亮颜色等,还需要记录标记内容所在的位置,位置可通过记录标记内容所在的CSS标签来确定。标记内容和标记位置的记录方式如下所示:
Figure PCTCN2015092960-appb-000002
2)标记图层,如canvas图层数据;
此种类型的标记信息为背景透明的图层数据,即在网页上层附加一层可以编辑的canvas画板,用户可在此画板上进行标记,随后画板保存后为一张图片。标记图层的记录方式如下所示:
{
“size”:100,
“pic”:”canvas.png”
}
其中,size为记录此canvas图片是在网页呈现种比例的情况下下画出的。
其中,将第一网页与第一网页标记信息进行合并处理的具体方式为:
1)HTML型标记信息
此种类型的标记信息为基于HTML CSS样式实现的标记数据,需要与第一网页的HTML和CSS代码进行合并,形成合并网页的HTML和CSS代码。具体方式为:根据每段标记内容在HTML文件中处于CSS标签的具体位置,通过定位CSS标签,将每段标记内容添加至第一网页的HTML文件的相应位置处。
2)canvas标记图层
此种类型的标记信息用于存储任意图画标记,如自定义曲线、手写字等。标记图层为一张背景色为透明的图层图片。在合并时,直接将标记图层的图层图片叠加在网页上,保持图层图片与网页的左上角坐标对齐;同时,根据网页当前的缩放比例及图层图片生成时网页的缩放比例,同比缩放图层图片,以实现标记图层与第一网页的蒙层效果。
优选地,两种标记信息的合并顺序为优先加载HTML型标记信息,再加载canvas标记图层。
第一标记接收装置3120接收网络设备返回的与网页标记查询请求相应的第一网页标记信息。即第一用户设备接收网络设备返回的与第一网页标识及第一用户标识信息相应的第一网页标记信息。
具体地,第一用户设备仅接收到与网页标记查询请求相应的第一网页标记信息;或接收到与网页标记查询请求相应的第一网页标记信息及原始第一网页;或接收到合并处理后的合并网页。
显示装置3130显示第一网页标记信息。
具体地,显示方式包括三种情形:
1)将第一网页标记信息与当前第一网页相关联地显示;该显示方式为网络设备仅向第一用户设备发送第一网页标记信息,则显示方式具体为用户设备将第一网页标记信息和当前第一网页执行合并处理后,再进行显示。
2)第一用户设备接收网络设备返回的与网页标记查询请求相应的第一网页标记信息及原始第一网页,其中,第一网页标记信息是基于原始第一网页生成的;则显示方式具体为将第一网页标记信息与原始第一网页进行合并处理,再将合并后的网页进行显示。
3)第一用户设备接收网络设备返回的已将第一网页标记信息及原始第一网页合并后的合并网页;则显示方式具体为直接将合并网页进行显示。
图4示意出了根据本发明优选实施例的一种用于显示网页标记信息的第二用户设备以及一种用于显示网页标记信息的网络设备的结 构示意图。根据本发明的第二用户设备包括:用于接收第一用户针对原始第一网页输入的标记操作的装置(以下简称“操作接收装置4310”);用于根据标记操作,生成原始第一网页的第一网页标记信息的装置(以下简称“标记生成装置4320”);用于将第一网页标记信息发送至网络设备的装置(以下简称“第二标记发送装置4330”);。根据本发明的网络设备还包括:用于接收第二用户设备发送的针对原始第一网页的第一网页标记信息的装置(以下简称“第二标记接收装置4240”);用于基于第一网页标记信息,更新网页标记记录的装置(以下简称“更新装置4250”)。
第二用户设备的操作接收装置4310接收第一用户针对原始第一网页输入的标记操作。
标记生成装置4320根据标记操作,生成原始第一网页的第一网页标记信息。
具体地,生成方式包括以下两种:
1)根据标记操作,确定第一用户针对原始第一网页输入的标记内容及标记位置;根据标记内容及标记位置,生成与原始第一网页相关联的第一页标记信息;该方式生成的第一页标记信息为HTML型标记信息,具体生成方式已在图1所示的实施例中进行详述;
2)根据标记操作,生成基于原始第一网页的标记图层;根据标记图层,生成与原始第一网页相关联的第一网页标记信息;该方式生成的第一页标记信息为标记图层,具体生成方式已在图1所示的实施例中进行详述。
第二标记发送装置4330将第一网页标记信息发送至网络设备;网络设备的第二标记接收装置4240接收第二用户设备发送的针对原始第一网页的第一网页标记信息。
更新装置4250基于第一网页标记信息,更新网页标记记录。
具体地,网络设备在网页标记记录中写入一条数据记录,包括第一网页标记信息,且将该第一网页标记信息与第一网页标识与第一用户标识相关联的记录在网页标记记录中。
本优选实施中,用户如果需要对网页进行标记处理,可以选择HTML型标记信息模式或是标记图层模式进行编辑,并将生成的标记信息发送至网络设备进行存储,以用于该用户及其好友以后查阅。
需要注意的是,本发明可在软件和/或软件与硬件的组合体中被实施,例如,本发明的各个装置可采用专用集成电路(ASIC)或任何其他类似硬件设备来实现。在一个实施例中,本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个步骤或功能的电路。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
虽然前面特别示出并且描述了示例性实施例,但是本领域技术人员将会理解的是,在不背离权利要求书的精神和范围的情况下,在其形式和细节方面可以有所变化。

Claims (23)

  1. 一种在第一用户设备中用于显示网页标记信息的方法,其中,该方法包括:
    向网络设备发送当前第一网页的网页标记查询请求;
    接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息;
    显示所述第一网页标记信息。
  2. 根据权利要求1所述的方法,其中,所述网页标记查询请求包括第一网页标识及第一用户标识;
    其中,接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息,具体包括:
    接收所述网络设备返回的与所述第一网页标识及所述第一用户标识信息相应的第一网页标记信息。
  3. 根据权利要求1或2所述的方法,其中,接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息,包括:
    接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息及原始第一网页,其中,所述第一网页标记信息是基于所述原始第一网页生成的;
    其中,显示所述第一网页标记信息,包括:
    将所述第一网页标记信息与所述原始第一网页相关联的显示。
  4. 一种在网络设备中辅助用于显示网页标记信息的方法,其中,该方法包括:
    接收来自第一用户设备的网页标记查询请求;
    根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息;
    将所述第一网页标记信息发送至所述第一用户设备。
  5. 根据权利要求4所述的方法,其中,所述网页标记查询请求包括第一网页标识及第一用户标识;
    其中,根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息,包括:
    根据所述第一网页标识和所述第一用户标识,在网页标记记录中查找并确定相匹配的第一网页标记信息。
  6. 根据权利要求5所述的方法,其中,所述第一网页标记信息是基于原始第一网页生成的,其中,所述将所述第一网页标记信息发送至所述第一用户设备,包括:
    根据所述第一网页标识,确定所述原始第一网页;
    将所述原始第一网页与所述第一网页标记信息进行合并处理,并将合并网页发送至所述第一用户设备。
  7. 根据权利要求6所述的方法,其中,该方法还包括:
    接收第二用户设备发送的针对所述原始第一网页的第一网页标记信息;
    基于所述第一网页标记信息,更新所述网页标记记录。
  8. 一种在第二用户设备中辅助用于显示网页标记信息的方法,其中,该方法包括:
    接收第一用户针对原始第一网页输入的标记操作;
    根据所述标记操作,生成所述原始第一网页的第一网页标记信息;
    将所述第一网页标记信息发送至网络设备。
  9. 根据权利要求8所述的方法,其中,根据所述标记操作,生成所述原始第一网页的第一网页标记信息,包括:
    根据所述标记操作,确定所述第一用户针对原始第一网页输入的标记内容及标记位置;
    根据所述标记内容及所述标记位置,生成与所述原始第一网页相关联的第一页标记信息。
  10. 根据权利要求8或9所述的方法,其中,根据所述标记操作,生成所述原始第一网页的第一网页标记信息,包括:
    根据所述标记操作,生成基于所述原始第一网页的标记图层;
    根据所述标记图层,生成与所述原始第一网页相关联的第一网页标 记信息。
  11. 一种在第一用户设备中用于显示网页标记信息的装置,其中,该装置包括:
    用于向网络设备发送当前第一网页的网页标记查询请求的装置;
    用于接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息的装置;
    用于显示所述第一网页标记信息的装置。
  12. 根据权利要求11所述的装置,其中,所述网页标记查询请求包括第一网页标识及第一用户标识;
    其中,用于接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息的装置具体用于接收所述网络设备返回的与所述第一网页标识及所述第一用户标识信息相应的第一网页标记信息。
  13. 根据权利要求11或12所述的装置,其中,用于接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息的装置具体用于接收所述网络设备返回的与所述网页标记查询请求相应的第一网页标记信息及原始第一网页,其中,所述第一网页标记信息是基于所述原始第一网页生成的;
    其中,用于显示所述第一网页标记信息的装置具体用于将所述第一网页标记信息与所述原始第一网页相关联的显示。
  14. 一种在网络设备中辅助用于显示网页标记信息的装置,其中,该装置包括:
    用于接收来自第一用户设备的网页标记查询请求的装置;
    用于根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息的装置;
    用于将所述第一网页标记信息发送至所述第一用户设备的装置。
  15. 根据权利要求14所述的装置,其中,所述网页标记查询请求包括第一网页标识及第一用户标识;
    其中,用于根据所述网页标记查询请求,查找并确定与所述网页标记查询请求相应的第一网页标记信息的装置具体用于根据所述第一网 页标识和所述第一用户标识,在网页标记记录中查找并确定相匹配的第一网页标记信息。
  16. 根据权利要求15所述的装置,其中,所述第一网页标记信息是基于原始第一网页生成的,其中,所述用于将所述第一网页标记信息发送至所述第一用户设备的装置包括:
    用于根据所述第一网页标识,确定所述原始第一网页的装置;
    用于将所述原始第一网页与所述第一网页标记信息进行合并处理,并将合并网页发送至所述第一用户设备的装置。
  17. 根据权利要求16中任一项所述的装置,其中,该装置还包括:
    用于接收第二用户设备发送的针对所述原始第一网页的第一网页标记信息的装置;
    用于基于所述第一网页标记信息,更新所述网页标记记录的装置。
  18. 一种在第二用户设备中辅助用于显示网页标记信息的装置,其中,该装置包括:
    用于接收第一用户针对原始第一网页输入的标记操作的装置;
    用于根据所述标记操作,生成所述原始第一网页的第一网页标记信息的装置;
    用于将所述第一网页标记信息发送至网络设备的装置。
  19. 根据权利要求18所述的装置,其中,用于根据所述标记操作,生成所述原始第一网页的第一网页标记信息的装置,包括:
    用于根据所述标记操作,确定所述第一用户针对原始第一网页输入的标记内容及标记位置的装置;
    用于根据所述标记内容及所述标记位置,生成与所述原始第一网页相关联的第一页标记信息的装置。
  20. 根据权利要求18或19所述的装置,其中,用于根据所述标记操作,生成所述原始第一网页的第一网页标记信息的装置,包括:
    用于根据所述标记操作,生成基于所述原始第一网页的标记图层的装置;
    用于根据所述标记图层,生成与所述原始第一网页相关联的第一网 页标记信息的装置。
  21. 一种计算机可读介质,所述计算机可读介质存储有计算机代码,当所述计算机代码被执行时,如权利要求1至10中任一项所述的方法被执行。
  22. 一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如权利要求1至10中任一项所述的方法被执行。
  23. 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如权利要求1至10中任一项所述的方法。
PCT/CN2015/092960 2015-04-01 2015-10-27 用于显示网页标记信息的方法与装置 WO2016155299A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510151742.9A CN104794174A (zh) 2015-04-01 2015-04-01 用于显示网页标记信息的方法与装置
CN201510151742.9 2015-04-01

Publications (1)

Publication Number Publication Date
WO2016155299A1 true WO2016155299A1 (zh) 2016-10-06

Family

ID=53558966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092960 WO2016155299A1 (zh) 2015-04-01 2015-10-27 用于显示网页标记信息的方法与装置

Country Status (2)

Country Link
CN (1) CN104794174A (zh)
WO (1) WO2016155299A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794174A (zh) * 2015-04-01 2015-07-22 百度在线网络技术(北京)有限公司 用于显示网页标记信息的方法与装置
CN106598995A (zh) * 2015-10-19 2017-04-26 中兴通讯股份有限公司 一种实现信息处理的方法、发送端及接收端
CN106649486A (zh) * 2016-09-30 2017-05-10 珠海市魅族科技有限公司 一种网页地址生成及网页显示方法、装置
CN107203748B (zh) * 2017-05-18 2020-12-22 南京大学 一种基于内容的网页笔记存储、匹配和还原的方法和装置
CN107844537A (zh) * 2017-10-23 2018-03-27 林楚莲 一种标记网页的方法及系统
CN112989766B (zh) * 2021-05-11 2021-08-03 金锐同创(北京)科技股份有限公司 文档标注信息的处理方法、装置及终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739415A (zh) * 2008-11-25 2010-06-16 华中师范大学 一种面向浏览器的网页标注系统
CN101866342A (zh) * 2009-04-16 2010-10-20 富士通株式会社 生成或显示网页标注的方法和装置以及信息共享系统
CN103778168A (zh) * 2012-10-26 2014-05-07 北京华购网络技术有限公司 一种全网页评论、评论查询方法、装置及其系统
CN103888456A (zh) * 2014-03-18 2014-06-25 国家电网公司 一种网页客户端、服务端以及数据处理装置和方法
CN104794174A (zh) * 2015-04-01 2015-07-22 百度在线网络技术(北京)有限公司 用于显示网页标记信息的方法与装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054686A1 (en) * 2011-08-29 2013-02-28 Mark Hassman Content enhancement utility
CN103164456A (zh) * 2011-12-15 2013-06-19 北京新媒传信科技有限公司 一种网络评论系统及其实现方法
US20130166565A1 (en) * 2011-12-23 2013-06-27 Kevin LEPSOE Interest based social network system
CN103428266A (zh) * 2013-07-01 2013-12-04 圆刚科技股份有限公司 第三方信息分享服务器及经由其产生网页的方法与系统
CN104424232B (zh) * 2013-08-26 2018-10-12 阿里巴巴集团控股有限公司 一种网页标注方法和装置
CN103678685A (zh) * 2013-12-26 2014-03-26 华为技术有限公司 一种网页标注方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739415A (zh) * 2008-11-25 2010-06-16 华中师范大学 一种面向浏览器的网页标注系统
CN101866342A (zh) * 2009-04-16 2010-10-20 富士通株式会社 生成或显示网页标注的方法和装置以及信息共享系统
CN103778168A (zh) * 2012-10-26 2014-05-07 北京华购网络技术有限公司 一种全网页评论、评论查询方法、装置及其系统
CN103888456A (zh) * 2014-03-18 2014-06-25 国家电网公司 一种网页客户端、服务端以及数据处理装置和方法
CN104794174A (zh) * 2015-04-01 2015-07-22 百度在线网络技术(北京)有限公司 用于显示网页标记信息的方法与装置

Also Published As

Publication number Publication date
CN104794174A (zh) 2015-07-22

Similar Documents

Publication Publication Date Title
WO2016155299A1 (zh) 用于显示网页标记信息的方法与装置
US10484315B2 (en) Method, system and apparatus for adding network comment information
US10733388B2 (en) Content participation translation apparatus and method
WO2019144850A1 (zh) 一种基于视频内容的视频搜索方法和视频搜索装置
CN111373740B (zh) 使用选择界面将横向视频转换成纵向移动布局的方法
US20170068739A1 (en) Queryless search based on context
US20160163111A1 (en) Content creation tool
US10210181B2 (en) Searching and annotating within images
US10621190B2 (en) Search using drag and drop of assets into a search bar
US9069794B1 (en) Determining location information for images using landmark, caption, and metadata location data
CN110199240B (zh) 用于可穿戴显示器的基于上下文的内容导航
US10482169B2 (en) Recommending form fragments
US20140181070A1 (en) People searches using images
BR112020025754A2 (pt) Método de compartilhamento de informação pessoal, dispositivo de compartilhamento de informação pessoal, equipamento de terminal, e, mídia de armazenamento legível por computador
JP2017157193A (ja) 画像とコンテンツのメタデータに基づいてコンテンツとマッチングする画像を選択する方法
US9311734B1 (en) Adjusting a digital image characteristic of an object in a digital image
US9529936B1 (en) Search results using query hints
KR102408256B1 (ko) 검색을 수행하는 방법 및 장치
KR20210120203A (ko) 웹 페이지에 기반한 메타데이터 생성방법
US20220292173A1 (en) Systems, Methods and Apparatuses For Integrating A Service Application Within An Existing Application
US11349843B2 (en) Systems, methods and apparatuses for integrating a service application within an existing application
JP4679443B2 (ja) 背景データを送信する方法、サーバおよびプログラム
US9135313B2 (en) Providing a search display environment on an online resource
US20240104141A1 (en) Document searching systems and methods
KR20210014211A (ko) 검색 추천 정보를 제공하기 위한 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15887253

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15887253

Country of ref document: EP

Kind code of ref document: A1