WO2015149507A1 - 信息的获取方法及装置 - Google Patents

信息的获取方法及装置 Download PDF

Info

Publication number
WO2015149507A1
WO2015149507A1 PCT/CN2014/089583 CN2014089583W WO2015149507A1 WO 2015149507 A1 WO2015149507 A1 WO 2015149507A1 CN 2014089583 W CN2014089583 W CN 2014089583W WO 2015149507 A1 WO2015149507 A1 WO 2015149507A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
option
current
hovering
page
Prior art date
Application number
PCT/CN2014/089583
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 WO2015149507A1 publication Critical patent/WO2015149507A1/zh

Links

Images

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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/903Querying
    • G06F16/9038Presentation of query results

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring information.
  • the application of the Internet has become more and more popular, and users of the Internet can obtain the network resources they need through the search engine.
  • a user wants to search for resources in a certain domain he first enters a query term related to the domain, and then the search engine obtains relevant search results according to the query words input by the user and returns to the client, and finally the user obtains in the returned search result.
  • the inventors have found that at least the following problems exist in the prior art: when searching by the above method, if the user is not rich in knowledge of the field or is not very familiar with the field, it is impossible to know that What query terms are appropriate, so the range of query terms you enter is often broad, such as "good-looking movies,” “cute dogs,” “fun games.” Because the query words entered by the user are unclear or incomplete, the search engine cannot provide accurate search results for the user. In addition, when the user wants to further understand the knowledge in the field, the user is also required to search for relevant knowledge through the search engine, so the search path is long and the search cost is high.
  • the embodiments of the present invention aim to solve the above technical problems at least to some extent.
  • the first object of the present invention is to provide a method for acquiring information, which can quickly solve the user's confusion about an option, satisfy the user's need to understand specific knowledge, and make the user's browsing process smoother. Improve the user's browsing experience.
  • a second object of the present invention is to provide an information acquiring apparatus.
  • a third object of the present invention is to provide a storage medium.
  • a method for acquiring information according to the first aspect of the present invention includes: obtaining a dwell time of a mouse in a corresponding area of a current option of a current page; and when the dwell time is greater than a preset threshold, obtaining Descriptive information of the current option, and writing the description information into a corresponding suspension box, wherein the floating frame is hidden Hiding in the current page; and displaying the hovering box corresponding to the current option on the current page.
  • the method for obtaining information in the embodiment of the present invention obtains the staying time of the current option in the current page corresponding to the current page, and when the dwell time is greater than the preset threshold, the description information of the obtained current option is written into the corresponding floating frame. And displaying the corresponding hovering box on the current page, which can quickly solve the user's confusion about an option, satisfy the user's need to understand specific knowledge, and make the user's browsing process smoother and enhance the user's browsing. Experience.
  • the second aspect of the present invention provides an information acquiring apparatus, including: an obtaining module, configured to obtain a dwell time of a mouse in a corresponding area of a current option of a current page; and a writing module, configured to be obtained by the obtaining module When the dwell time is greater than the preset threshold, obtaining the description information of the current option, and writing the description information into a corresponding hovering box, wherein the hovering box is hidden in the current page; and the display module And displaying, in the current page, the hovering box corresponding to the current option.
  • the information acquiring device of the embodiment of the present invention obtains the dwell time of the current option in the current page corresponding to the current page, and when the dwell time is greater than the preset threshold, the description information of the obtained current option is written into the corresponding hovering frame. And displaying the corresponding hovering box on the current page, which can quickly solve the user's confusion about an option, satisfy the user's need to understand specific knowledge, and make the user's browsing process smoother and enhance the user's browsing. Experience.
  • a storage medium configured to store an application, and the application is used to execute the method for acquiring information according to the first aspect of the present invention.
  • FIG. 1 is a flow chart of a method for acquiring information according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a page containing multiple options, in accordance with one embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a page displaying a hovering box, in accordance with one embodiment of the present invention.
  • FIG. 4 is a schematic diagram of pixel points interpreted as four triangles, in accordance with one embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for acquiring information according to an embodiment of the present invention.
  • FIG. 1 is a flow chart of a method for acquiring information according to an embodiment of the present invention. As shown in Figure 1, the method includes:
  • the search term input by the user may be first received, and the classification information and the search object information related to the search term are obtained, and then the search page is provided.
  • the classification information and the search object information are displayed in the form of structured information on the search page.
  • the classification information includes at least one option under the classification criteria and the classification criteria.
  • the search object information includes a picture of the search object and identification information.
  • the option information displayed on the current page is obtained by the user searching the search term through the search engine. Each option corresponds to a category information.
  • the classification information and the search object information can be presented in a directory form or a list form.
  • the form of the presentation is not limited to the directory or the list form, and may be other methods, which are not limited in this embodiment.
  • the client may display in the form of a directory in the first presentation part, such as: a small dog, a medium dog, a large dog, Classification information for "dogs" such as ultra-small dogs and very large dogs.
  • the pictures and names corresponding to the dogs of each species such as Husky, Vietnamese Mastiff, Chihuahua, and Chow Chow can be displayed in the form of a catalogue.
  • option information displayed on the current page If the user is not familiar with the option information displayed on the current page, it may cause confusion. If the user may not understand the meaning of a medium dog, a gun hound, etc.
  • the current option corresponding area is an area that can respond to the mouse event centering on the current option information.
  • a mouse hover event can be set, and the dwell time of the mouse in the corresponding area of the current option is obtained by a mouse hover event.
  • the description information of the current option may be obtained from the property file of the current option, and the obtained description information is format converted, and then the format conversion is performed.
  • the description information is written to the corresponding floating box.
  • the preset threshold may be set as needed, for example, may be set to 400 milliseconds, 500 milliseconds, or the like.
  • Each option has an associated description text that is saved in the properties file of the corresponding option (ie Hypertext Markup Language (html) source code, which is invisible to the user) when the page is generated. The following is saved in the properties An example of an option in the file such as the description of the hunting dog option:
  • the description information of the option is already saved in the local property file when the page is generated, when the mouse stays in the corresponding area is greater than a preset threshold, for example, 400 milliseconds, the description information of the option can be quickly obtained from the property file. .
  • the hover box is already written to the page when the page is generated, but it is usually hidden.
  • the hovering box may be displayed on the current page according to the position information, as shown in FIG. 3, when the mouse stays in the area corresponding to the medium dog option for 400 milliseconds, The corresponding hover box is displayed on the current page.
  • the floating box shows the description information of the medium-sized dog, that is, the medium-sized dog between 41 cm and 60 cm in height and between 11 kg and 30 kg.
  • the floating frame may be provided with an indicator mark, which may be used to indicate an option corresponding to the hovering box.
  • the indicator mark can include various styles of arrows, such as an arrow with a gray border. It should be noted that the indicator mark is generated by code using CSS (Cascading Style Sheets) style instead of loading pre-generated pictures such as arrow pictures. This processing method can greatly speed up the generation of indicator marks. So that you can quickly display the hover box on the current page.
  • the arrow above the hovering box is a triangle made by CSS style, and is not a traditional picture.
  • the implementation principle is as follows: as shown in FIG. 4, a point of 1 pixel is set, which has four sides, which are interpreted by the browser into four triangles, and three, three, three, and three sides are implemented when the triangle is implemented. Set to transparent, the bottom side is set to white, so the current page will be displayed as an upward white arrow, and then set a gray arrow in the same way under the white arrow, the position is slightly up, it is combined An arrow with a gray border.
  • the advantage of using CSS style code-based arrows relative to the way images are implemented is that you don't have to wait for the image to load to display, and you can save memory space because the code is smaller than the image.
  • the purpose of setting the preset threshold is to prevent erroneous operations. For example, when the user inadvertently skips the option, the floating frame is not displayed because the response is too sensitive, thereby avoiding a bad experience for the user.
  • the hovering box disappears.
  • the method for obtaining the foregoing information obtains the dwell time of the mouse in the corresponding area of the current page of the current page.
  • the dwell time is greater than the preset threshold
  • the description information of the obtained current option is written into the corresponding hovering box, and
  • the current page displays the corresponding hover box, which can quickly solve the user's confusion about an option and satisfy the user.
  • the need to solve specific knowledge makes the user's browsing process smoother and enhances the user's browsing experience.
  • the present invention also proposes an information acquiring apparatus.
  • FIG. 5 is a schematic structural diagram of an apparatus for acquiring information according to an embodiment of the present invention.
  • the device includes: a first obtaining module 51, a writing module 52, a display module 53, a hiding module 54, a receiving module 55, a second obtaining module 56, and a presentation module 57, wherein:
  • the first obtaining module 51 is configured to obtain a dwell time of the mouse in the corresponding area of the current option of the current page.
  • the current page shows the breed of the dog. Specifically, it can be divided into small dogs, medium dogs, large dogs, ultra-small dogs and super large dogs according to the body type. , gun hounds, working dogs, toy dogs, family dogs and terriers, but the user may not understand the meaning of medium dogs, gun hounds, etc.
  • the first obtaining module 51 needs to obtain the dwell time of the mouse in the corresponding area of the current page of the current page, wherein the current option corresponding area is responsive to the current option information.
  • the area of the mouse event In order to let the user know the meaning of each option, in the embodiment, the first obtaining module 51 needs to obtain the dwell time of the mouse in the corresponding area of the current page of the current page, wherein the current option corresponding area is responsive to the current option information. The area of the mouse event.
  • the first obtaining module 51 can set a mouse hovering event, and obtain a dwell time of the mouse in the corresponding area of the current option by using a mouse hovering event.
  • the writing module 52 is configured to obtain the description information of the current option when the dwell time obtained by the obtaining module is greater than the preset threshold, and write the description information into the corresponding floating frame, wherein the hovering box is hidden in the current page.
  • the writing module 52 may obtain the description information of the current option from the property file of the current option, and perform format conversion on the obtained description information, and then format the image.
  • the converted description information is written to the corresponding floating box.
  • the preset threshold may be set as needed, for example, may be set to 400 milliseconds, 500 milliseconds, or the like.
  • Each option has an associated description text that is saved in the properties file of the corresponding option (ie Hypertext Markup Language (html) source code, which is invisible to the user) when the page is generated.
  • html Hypertext Markup Language
  • the following is an example of an option to save an option in the properties file, such as the hound dog option:
  • the writing module 52 can quickly obtain from the property file. Description of the option.
  • the hover box is already written to the page when the page is generated, but it is usually hidden.
  • the display module 53 is configured to display a hovering box corresponding to the current option on the current page.
  • the display module 53 may display a hovering box on the current page according to the position information, as shown in FIG. 3, when the mouse stays in the area corresponding to the medium dog option 400. After the millisecond, the corresponding hover box is displayed on the current page.
  • the floating frame may be provided with an indicator mark, which may be used to indicate an option corresponding to the hovering box.
  • the indicator mark can include various styles of arrows, such as an arrow with a gray border. It should be noted that the indicator mark is generated by code in a CSS style, instead of loading a pre-generated picture such as an arrow picture. This processing method can greatly speed up the generation of the indicator mark, thereby enabling rapid implementation on the current page.
  • the hover box is displayed.
  • the arrow above the hovering box is a triangle made by CSS style, and is not a traditional picture.
  • the implementation principle is as follows: as shown in FIG. 4, a point of 1 pixel is set, which has four sides, which are interpreted by the browser into four triangles, and three, three, three, and three sides are implemented when the triangle is implemented. Set to transparent, the bottom side is set to white, so the current page will be displayed as an upward white arrow, and then set a gray arrow in the same way under the white arrow, the position is slightly up, it is combined An arrow with a gray border.
  • the advantage of using CSS style code-based arrows relative to the way images are implemented is that you don't have to wait for the image to load to display, and you can save memory space because the code is smaller than the image.
  • the purpose of setting the preset threshold is to prevent erroneous operations. For example, when the user inadvertently skips the option, the floating frame is not displayed because the response is too sensitive, thereby avoiding a bad experience for the user.
  • the hiding module 54 is configured to hide the hovering box corresponding to the current option when the mouse leaves the area corresponding to the current option.
  • the receiving module 55 is configured to receive a search term input by the user.
  • the second obtaining module 56 is configured to obtain classification information related to the search term.
  • the presentation module 57 is for providing a search page and presenting the classification information in the form of structured information on the search page.
  • the classification information includes at least one option under the classification criteria and the classification criteria.
  • the classification information and the search object information can be presented in a directory form or a list form.
  • the form of the presentation is not limited to the directory or the list form, and may be other methods, which are not limited in this embodiment.
  • the second obtaining module 56 obtains the classification information of the "dog” and the search object information
  • the presentation module 57 can display the first Partially displayed in the form of catalogues such as: "dogs” such as small dogs, medium dogs, large dogs, ultra-small dogs and very large dogs.
  • the presentation module 57 can display the pictures and names corresponding to the dogs of each species such as: Husky, Vietnamese Mastiff, Chihuahua, Chow Chow, etc. in the form of a catalogue in the second presentation part.
  • the device for obtaining the above information obtains the dwell time of the mouse in the corresponding area of the current page of the current page.
  • the dwell time is greater than the preset threshold, the description information of the obtained current option is written into the corresponding hovering box, and The current page displays the corresponding hover box, which can quickly solve the user's confusion about an option and satisfy the user.
  • the need to solve specific knowledge makes the user's browsing process smoother and enhances the user's browsing experience.
  • the present invention provides a storage medium for storing an application for executing an information acquisition method according to any of the embodiments of the present invention.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated module is It can be implemented in the form of hardware or in the form of a software function module.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)

Abstract

本发明提出一种信息的获取方法及装置。其中,方法包括:获得鼠标在当前页面当前选项对应区域内的停留时间;当停留时间大于预设阈值时,获得当前选项的说明信息,并将说明信息写入对应的悬浮框中,其中,悬浮框隐藏在当前页面中;以及在当前页面显示当前选项对应的悬浮框。本发明实施例的信息的获取方法,通过获得鼠标在当前页面当前选项对应区域内的停留时间,当停留时间大于预设阈值时,将获得的当前选项的说明信息写入对应的悬浮框中,并在当前页面显示对应的悬浮框,可以快速地解决用户对某个选项产生的困惑,满足用户了解特定知识的需求,使得用户的浏览过程更加顺畅,提升了用户的浏览体验度。

Description

信息的获取方法及装置
相关申请的交叉引用
本申请要求百度在线网络技术(北京)有限公司于2014年03月31日提交的、发明名称为“信息的获取方法及装置”的、中国专利申请号“201410127543.x”的优先权。
技术领域
本发明涉及计算机技术领域,尤其涉及一种信息的获取方法及装置。
背景技术
随着计算机技术的不断发展,使得互联网的应用越来越普及,互联网的用户可以通过搜索引擎来获取其需要的网络资源。用户想要搜索某一领域的资源,先要输入与该领域相关的查询词,然后搜索引擎根据用户输入的查询词获得相关的搜索结果并返回至客户端,最后用户在返回的搜索结果中获得自己所需的资源。
但是,在实现本发明过程中,发明人发现现有技术中至少存在如下问题:通过以上方法进行搜索时,如果用户对于该领域的知识不够丰富或对该领域不是很了解,则无法得知应该输入什么查询词合适,因此输入的查询词范围往往比较宽泛,例如“好看的电影”、“可爱的狗狗”、“好玩的游戏”等。由于用户输入的查询词表述不清楚或不全面,从而导致搜索引擎无法为用户提供准确的搜索结果。此外,当用户想要进一步了解该领域的知识时,还需要用户通过搜索引擎搜索相关的知识,因此搜索路径长,且搜索成本高。
发明内容
本发明实施例旨在至少在一定程度上解决上述技术问题。
为此,本发明的第一个目的在于提出一种信息的获取方法,该方法能够快速地解决用户对某个选项产生的困惑,满足用户了解特定知识的需求,使得用户的浏览过程更加顺畅,提升用户的浏览体验度。
本发明的第二个目的在于提出一种信息的获取装置。
本发明的第三个目的在于提出一种存储介质。
为达上述目的,根据本发明第一方面实施例提出了一种信息的获取方法,包括:获得鼠标在当前页面当前选项对应区域内的停留时间;当所述停留时间大于预设阈值时,获得所述当前选项的说明信息,并将所述说明信息写入对应的悬浮框中,其中,所述悬浮框隐 藏在所述当前页面中;以及在所述当前页面显示所述当前选项对应的所述悬浮框。
本发明实施例的信息的获取方法,通过获得鼠标在当前页面当前选项对应区域内的停留时间,当所述停留时间大于预设阈值时,将获得的当前选项的说明信息写入对应的悬浮框中,并在所述当前页面显示对应的所述悬浮框,可以快速地解决用户对某个选项产生的困惑,满足用户了解特定知识的需求,使得用户的浏览过程更加顺畅,提升了用户的浏览体验度。
本发明第二方面实施例提出了一种信息的获取装置,包括:获得模块,用于获得鼠标在当前页面当前选项对应区域内的停留时间;写入模块,用于当所述获得模块获得的所述停留时间大于预设阈值时,获得所述当前选项的说明信息,并将所述说明信息写入对应的悬浮框中,其中,所述悬浮框隐藏在所述当前页面中;以及显示模块,用于在所述当前页面显示所述当前选项对应的所述悬浮框。
本发明实施例的信息的获取装置,通过获得鼠标在当前页面当前选项对应区域内的停留时间,当所述停留时间大于预设阈值时,将获得的当前选项的说明信息写入对应的悬浮框中,并在所述当前页面显示对应的所述悬浮框,可以快速地解决用户对某个选项产生的困惑,满足用户了解特定知识的需求,使得用户的浏览过程更加顺畅,提升了用户的浏览体验度。
为了实现上述目的,本发明第三方面实施例的存储介质,用于存储应用程序,所述应用程序用于执行本发明第一方面实施例所述的信息的获取方法。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
本发明所述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本发明一个实施例的信息的获取方法流程图。
图2是根据本发明一个实施例的包含多个选项的页面的示意图。
图3是根据本发明一个实施例的在显示悬浮框的页面的示意图。
图4是根据本发明一个实施例的解释成四个三角形的像素点的示意图。
图5是根据本发明一个实施例的信息的获取装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同 或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述本发明实施例的信息的获取方法及装置。
图1是根据本发明一个实施例的信息的获取方法流程图。如图1所示,该方法包括:
S101,获得鼠标在当前页面当前选项对应区域内的停留时间。
在该实施例中,在获得鼠标在当前页面当前选项对应区域内的停留时间之前,首先可接收用户输入的搜索词,并获得与搜索词相关的分类信息和搜索对象信息,然后提供搜索页面,并在搜索页面上以结构化信息的形式展现分类信息和搜索对象信息。其中,分类信息包括分类标准和分类标准下的至少一个选项。搜索对象信息包括搜索对象的图片和标识信息。其中,当前页面上显示的选项信息为用户通过搜索引擎对搜索词进行搜索得到的。每个选项对应一个分类信息。
具体地,可通过目录形式或列表形式展现分类信息和搜索对象信息。当然,展现的形式不仅限于目录或列表形式,也可通过其他方式,本实施例中不做限定。
举例来说:如图2所示,在客户端获得“狗”的分类信息和搜索对象信息后,客户端可在第一展现部分以目录的形式展示如:小型犬、中型犬、大型犬、超小型犬和超大型犬等“狗”的分类信息。同时,可在第二展现部分以目录的形式展示如:哈士奇、藏獒、吉娃娃、松狮等每个品种的狗对应的图片和名称。在当前页面上显示有很多选项信息,如果用户对当前页面上显示的选项信息不熟悉,可能会产生疑惑。如用户可能不清楚中型犬、枪猎犬等的含义。
为了让用户了解各个选项的含义,在本实施例中,需要获得鼠标在当前页面当前选项对应区域内的停留时间,其中,当前选项对应区域为以当前选项信息为中心可以响应鼠标事件的区域。
具体地,可以设置鼠标悬停事件,并通过鼠标悬停事件获得鼠标在当前选项对应区域内的停留时间。
S102,当停留时间大于预设阈值时,获得当前选项的说明信息,并将说明信息写入对应的悬浮框中,其中,悬浮框隐藏在当前页面中。
当鼠标在当前选项对应区域的停留时间超过预设阈值时,则可以从当前选项的属性文件中获取当前选项的说明信息,并对所获取的说明信息进行格式转换,然后将进行格式转换后的说明信息写入对应的悬浮框中。
其中,预设阈值可以根据需要进行设置,例如可以设置为400毫秒、500毫秒等。而每个选项都有相关的说明文字,这些说明信息在生成页面时就保存在对应选项的属性文件(即超文本标记语言(html)源代码,对于用户来说是不可见的)中。以下为保存在属性 文件中的一个选项例如狩猎犬选项的说明信息的示例:
<label class=“op-pet-multi-option”data-tip=“{“name”:“狩猎犬”,“desc1”:“善于追捕猎物并将其杀死,大多是古老的犬种”,“desc2”:“”}”>
</label>
由于,选项的说明信息已经在生成页面时保存在本地的属性文件中,因此,当鼠标在对应区域的停留时间大于预设阈值例如400毫秒时,可以快速地从属性文件中获得选项的说明信息。
另外,悬浮框在页面生成时已经写入到页面中,只是通常情况下处于隐藏状态。
S103,在当前页面显示当前选项对应的悬浮框。
在该实施例中,在获得当前选项对应的悬浮框的位置信息后,可以根据位置信息在当前页面显示悬浮框,如图3所示,当鼠标在中型犬选项对应的区域停留400毫秒后,在当前页面显示对应的悬浮框。其中,悬浮框中显示的是中型犬的说明信息,即身高在41厘米至60厘米之间、体重在11千克至30千克之间的为中型犬。
其中,悬浮框上可以设有指示标记,该指示标记可以用于指示悬浮框对应的选项。指示标记可以包括各种样式的箭头,例如可以为带灰色边框的箭头。需要说明的是,该指示标记是采用CSS(Cascading Style Sheets,层叠样式表)样式以代码方式生成的,而不是加载预生成的图片例如箭头图片,这种处理方式可以大大加快指示标记的生成速度,从而可以实现在当前页面快速地显示悬浮框。
具体地,悬浮框上方的箭头是通过CSS样式做成的三角形,而并非传统的图片。实现原理为:如图4所示,设置一个1像素的点,其有四条边,这四条边会被浏览器解释成四个三角形,而在实现三角形的时候会把上、左、右三边设置成透明,下边设置成白色,这样当前页面就会显示为一个朝上的白色箭头,然后采用同样的方式设置一个灰色的箭头铺在白色箭头的下面,位置稍偏上一点,就组合成了一个带灰色边框的箭头。采用CSS样式以代码的方式做出的箭头相对于用图片的方式实现的好处是不必等待图片加载即可显示,并且可以节约占用的内存空间,因为代码相对于图片来说会更小一些。
在该实施例中,设置预设阈值的目的是为了防止误操作,例如,当用户不经意划过选项时,不会因为反应太灵敏而显示悬浮框,避免给用户造成不好的体验。
另外,在当前页面显示当前选项对应的悬浮框之后,若用户将鼠标离开当前选项对应的区域时,此时悬浮框消失。
上述信息的获取方法实施例,通过获得鼠标在当前页面当前选项对应区域内的停留时间,当停留时间大于预设阈值时,将获得的当前选项的说明信息写入对应的悬浮框中,并在当前页面显示对应的悬浮框,可以快速地解决用户对某个选项产生的困惑,满足用户了 解特定知识的需求,使得用户的浏览过程更加顺畅,提升了用户的浏览体验度。
为了实现上述实施例,本发明还提出一种信息的获取装置。
图5是根据本发明一个实施例的信息的获取装置的结构示意图。如图5所示,该装置包括:第一获得模块51、写入模块52、显示模块53、隐藏模块54、接收模块55、第二获得模块56和展现模块57,其中:
第一获得模块51用于获得鼠标在当前页面当前选项对应区域内的停留时间。
在该实施例中,在当前页面上显示有很多选项信息,如果用户对当前页面上显示的选项信息不熟悉,可能会产生疑惑。如图2所示,当前页面上显示的是狗的品种大全,具体地,按照体型可以分为小型犬、中型犬、大型犬、超小型犬和超大型犬等,按功能可以分为牧羊犬、枪猎犬、工作犬、玩具犬、家庭犬和梗类犬等,但是用户可能不清楚中型犬、枪猎犬等的含义。
为了让用户了解各个选项的含义,在本实施例中,第一获得模块51需要获得鼠标在当前页面当前选项对应区域内的停留时间,其中,当前选项对应区域为以当前选项信息为中心可以响应鼠标事件的区域。
具体地,第一获得模块51可以设置鼠标悬停事件,并通过鼠标悬停事件获得鼠标在当前选项对应区域内的停留时间。
写入模块52用于当获得模块获得的停留时间大于预设阈值时,获得当前选项的说明信息,并将说明信息写入对应的悬浮框中,其中,悬浮框隐藏在当前页面中。
当鼠标在当前选项对应区域的停留时间超过预设阈值时,写入模块52可以从当前选项的属性文件中获取当前选项的说明信息,并对所获取的说明信息进行格式转换,然后将进行格式转换后的说明信息写入对应的悬浮框中。
其中,预设阈值可以根据需要进行设置,例如可以设置为400毫秒、500毫秒等。而每个选项都有相关的说明文字,这些说明信息在生成页面时就保存在对应选项的属性文件(即超文本标记语言(html)源代码,对于用户来说是不可见的)中。以下为保存在属性文件中的一个选项例如狩猎犬选项的说明信息的示例:
<label class=“op-pet-multi-option”data-tip=“{“name”:“狩猎犬”,“desc1”:“善于追捕猎物并将其杀死,大多是古老的犬种”,“desc2”:“”}”>
</label>
由于,选项的说明信息已经在生成页面时保存在本地的属性文件中,因此,当鼠标在对应区域的停留时间大于预设阈值例如400毫秒时,写入模块52可以快速地从属性文件中获得选项的说明信息。
另外,悬浮框在页面生成时已经写入到页面中,只是通常情况下处于隐藏状态。
显示模块53用于在当前页面显示当前选项对应的悬浮框。
在该实施例中,在获得当前选项对应的悬浮框的位置信息后,显示模块53可以根据位置信息在当前页面显示悬浮框,如图3所示,当鼠标在中型犬选项对应的区域停留400毫秒后,在当前页面显示对应的悬浮框。
其中,悬浮框上可以设有指示标记,该指示标记可以用于指示悬浮框对应的选项。指示标记可以包括各种样式的箭头,例如可以为带灰色边框的箭头。需要说明的是,该指示标记是采用CSS样式以代码方式生成的,而不是加载预生成的图片例如箭头图片,这种处理方式可以大大加快指示标记的生成速度,从而可以实现在当前页面快速地显示悬浮框。
具体地,悬浮框上方的箭头是通过CSS样式做成的三角形,而并非传统的图片。实现原理为:如图4所示,设置一个1像素的点,其有四条边,这四条边会被浏览器解释成四个三角形,而在实现三角形的时候会把上、左、右三边设置成透明,下边设置成白色,这样当前页面就会显示为一个朝上的白色箭头,然后采用同样的方式设置一个灰色的箭头铺在白色箭头的下面,位置稍偏上一点,就组合成了一个带灰色边框的箭头。采用CSS样式以代码的方式做出的箭头相对于用图片的方式实现的好处是不必等待图片加载即可显示,并且可以节约占用的内存空间,因为代码相对于图片来说会更小一些。
在该实施例中,设置预设阈值的目的是为了防止误操作,例如,当用户不经意划过选项时,不会因为反应太灵敏而显示悬浮框,避免给用户造成不好的体验。
隐藏模块54用于当鼠标离开当前选项对应的区域时,隐藏当前选项对应的悬浮框。
接收模块55用于接收用户输入的搜索词。
第二获得模块56用于获得与搜索词相关的分类信息。
展现模块57用于提供搜索页面,并在搜索页面上以结构化信息的形式展现分类信息。其中,分类信息包括分类标准和分类标准下的至少一个选项。
具体地,可通过目录形式或列表形式展现分类信息和搜索对象信息。当然,展现的形式不仅限于目录或列表形式,也可通过其他方式,本实施例中不做限定。
举例来说:如图2所示,接收模块55接收到用户输入的搜索词“狗”之后,第二获得模块56获得“狗”的分类信息和搜索对象信息,展现模块57可在第一展现部分以目录的形式展示如:小型犬、中型犬、大型犬、超小型犬和超大型犬等“狗”的分类信息。同时,展现模块57可在第二展现部分以目录的形式展示如:哈士奇、藏獒、吉娃娃、松狮等每个品种的狗对应的图片和名称。
上述信息的获取装置实施例,通过获得鼠标在当前页面当前选项对应区域内的停留时间,当停留时间大于预设阈值时,将获得的当前选项的说明信息写入对应的悬浮框中,并在当前页面显示对应的悬浮框,可以快速地解决用户对某个选项产生的困惑,满足用户了 解特定知识的需求,使得用户的浏览过程更加顺畅,提升了用户的浏览体验度。
为了实现上述实施例,本发明提出一种存储介质,用于存储应用程序,应用程序用于执行本发明任一项实施例所述的信息的获取方法。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既 可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。本发明的范围由所附权利要求极其等同限定。

Claims (21)

  1. 一种信息的获取方法,其特征在于,包括:
    获得鼠标在当前页面当前选项对应区域内的停留时间;
    当所述停留时间大于预设阈值时,获得所述当前选项的说明信息,并将所述说明信息写入对应的悬浮框中,其中,所述悬浮框隐藏在所述当前页面中;以及
    在所述当前页面显示所述当前选项对应的所述悬浮框。
  2. 根据权利要求1所述的方法,其特征在于,在所述当前页面显示所述当前选项之前,还包括:
    接收用户输入的搜索词;
    获得与所述搜索词相关的分类信息和搜索对象信息;以及
    提供搜索页面,并在所述搜索页面上以结构化信息的形式展现所述分类信息和所述搜索对象信息;其中,所述分类信息包括分类标准和所述分类标准下的至少一个选项,所述搜索对象信息包括所述搜索对象的图片和标识信息。
  3. 根据权利要求2所述的方法,其特征在于,所述结构化信息的形式包括目录形式或列表形式。
  4. 根据权利要求1所述的方法,其特征在于,所述获得鼠标在当前页面当前选项对应区域内的停留时间,包括:
    设置鼠标悬停事件,通过所述鼠标悬停事件获得所述停留时间。
  5. 根据权利要求1所述的方法,其特征在于,所述获得所述当前选项的说明信息,并将所述说明信息写入对应的悬浮框中,包括:
    从所述当前选项的属性文件中获取所述当前选项的说明信息,对所获取的所述说明信息进行格式转换,并将进行格式转换后的说明信息写入对应的悬浮框中。
  6. 根据权利要求1所述的方法,其特征在于,所述在所述当前页面显示所述当前选项对应的所述悬浮框,包括:
    获得所述当前选项对应的所述悬浮框的位置信息,并根据所述位置信息在所述当前页面显示所述悬浮框。
  7. 根据权利要求1所述的方法,其特征在于,所述在所述当前页面显示所述当前选项对应的所述悬浮框之后,还包括:
    当所述鼠标离开所述当前选项对应的区域时,隐藏所述当前选项对应的悬浮框。
  8. 根据权利要求1-7任一权利要求所述的方法,其特征在于,所述悬浮框包括指示标记,所述指示标记用于指示所述悬浮框对应的选项。
  9. 根据权利要求8所述的方法,其特征在于,所述指示标记包括箭头。
  10. 根据权利要求8所述的方法,其特征在于,所述指示标记是采用层叠样式表CSS样式以代码方式生成的。
  11. 一种信息的获取装置,其特征在于,包括:
    第一获得模块,用于获得鼠标在当前页面当前选项对应区域内的停留时间;
    写入模块,用于当所述获得模块获得的所述停留时间大于预设阈值时,获得所述当前选项的说明信息,并将所述说明信息写入对应的悬浮框中,其中,所述悬浮框隐藏在所述当前页面中;以及
    显示模块,用于在所述当前页面显示所述当前选项对应的所述悬浮框。
  12. 根据权利要求11所述的装置,其特征在于,所述信息的获取装置,还包括:
    接收模块,用于接收用户输入的搜索词;
    第二获得模块,用于获得与所述搜索词相关的分类信息和搜索对象信息;以及
    展现模块,用于提供搜索页面,并在所述搜索页面上以结构化信息的形式展现所述分类信息和所述搜索对象信息;其中,所述分类信息包括分类标准和所述分类标准下的至少一个选项,所述搜索对象信息包括所述搜索对象的图片和标识信息。
  13. 根据权利要求12所述的装置,其特征在于,所述结构化信息的形式包括目录形式或列表形式。
  14. 根据权利要求11所述的装置,其特征在于,所述第一获得模块,具体用于:
    设置鼠标悬停事件,通过所述鼠标悬停事件获得所述停留时间。
  15. 根据权利要求11所述的装置,其特征在于,所述写入模块,具体用于:
    从所述当前选项的属性文件中获取所述当前选项的说明信息,对所获取的所述说明信息进行格式转换,并将进行格式转换后的说明信息写入对应的悬浮框中。
  16. 根据权利要求11所述的装置,其特征在于,所述显示模块,具体用于:
    获得所述当前选项对应的所述悬浮框的位置信息,并根据所述位置信息在所述当前页面显示所述悬浮框。
  17. 根据权利要求11所述的装置,其特征在于,还包括:
    隐藏模块,当所述鼠标离开所述当前选项对应的区域时,隐藏所述当前选项对应的悬浮框。
  18. 根据权利要求11-17任一权利要求所述的装置,其特征在于,所述悬浮框包括指示标记,所述指示标记用于指示所述悬浮框对应的选项。
  19. 根据权利要求18所述的装置,其特征在于,所述指示标记包括箭头。
  20. 根据权利要求18所述的装置,其特征在于,所述指示标记是采用层叠样式表CSS 样式以代码方式生成的。
  21. 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于执行权利要求1至10中任一项所述的信息的获取方法。
PCT/CN2014/089583 2014-03-31 2014-10-27 信息的获取方法及装置 WO2015149507A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410127543.X 2014-03-31
CN201410127543.XA CN103914535B (zh) 2014-03-31 2014-03-31 信息的获取方法及装置

Publications (1)

Publication Number Publication Date
WO2015149507A1 true WO2015149507A1 (zh) 2015-10-08

Family

ID=51040215

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089583 WO2015149507A1 (zh) 2014-03-31 2014-10-27 信息的获取方法及装置

Country Status (2)

Country Link
CN (1) CN103914535B (zh)
WO (1) WO2015149507A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914535B (zh) * 2014-03-31 2016-03-30 百度在线网络技术(北京)有限公司 信息的获取方法及装置
CN105824845A (zh) * 2015-01-08 2016-08-03 阿里巴巴集团控股有限公司 一种页面显示方法和装置
CN106598371B (zh) * 2015-10-15 2020-12-01 阿里巴巴集团控股有限公司 一种信息显示方法及设备
CN105718151A (zh) * 2016-02-24 2016-06-29 杨晟志 一种屏幕触发方法及其系统
CN105955589B (zh) * 2016-06-27 2019-01-29 武汉斗鱼网络科技有限公司 一种用户悬停框缓冲方法及系统
CN107066268B (zh) * 2017-03-28 2022-03-04 腾讯科技(深圳)有限公司 微件应用的显示位置切换方法及装置
CN107391165A (zh) * 2017-06-01 2017-11-24 阿里巴巴集团控股有限公司 控件显示方法、客户端和存储介质
CN108776580B (zh) * 2018-06-04 2020-06-16 珠海格力电器股份有限公司 窗口的提示方法和装置
CN109922364B (zh) * 2019-01-16 2022-07-08 海信视像科技股份有限公司 一种显示设备
CN109934745A (zh) * 2019-02-22 2019-06-25 深圳达普信科技有限公司 一种自动排课方法、系统、计算机设备及存储介质
CN112308642B (zh) * 2019-07-30 2023-04-28 贝壳技术有限公司 房源搜索方法、终端和服务器
CN110554821A (zh) * 2019-08-30 2019-12-10 苏州浪潮智能科技有限公司 一种用于查询条件筛选的悬浮框的显示方法、系统及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930002A (zh) * 2012-10-26 2013-02-13 北京百度网讯科技有限公司 一种即时搜索方法及装置
CN103412857A (zh) * 2013-09-04 2013-11-27 广东全通教育股份有限公司 一种实现网页中英文翻译的系统和方法
CN103914535A (zh) * 2014-03-31 2014-07-09 百度在线网络技术(北京)有限公司 信息的获取方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359332A (zh) * 2008-09-02 2009-02-04 浙江大学 具有语义分类功能的可视化搜索界面的设计方法
CN101661498A (zh) * 2009-09-16 2010-03-03 百度在线网络技术(北京)有限公司 信息搜索方法和装置
CN102651032A (zh) * 2012-03-31 2012-08-29 百度在线网络技术(北京)有限公司 一种用于提供搜索结果的方法与设备
CN102937898A (zh) * 2012-11-29 2013-02-20 广东全通教育股份有限公司 一种基于xml技术的web应用动态帮助方法和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930002A (zh) * 2012-10-26 2013-02-13 北京百度网讯科技有限公司 一种即时搜索方法及装置
CN103412857A (zh) * 2013-09-04 2013-11-27 广东全通教育股份有限公司 一种实现网页中英文翻译的系统和方法
CN103914535A (zh) * 2014-03-31 2014-07-09 百度在线网络技术(北京)有限公司 信息的获取方法及装置

Also Published As

Publication number Publication date
CN103914535B (zh) 2016-03-30
CN103914535A (zh) 2014-07-09

Similar Documents

Publication Publication Date Title
WO2015149507A1 (zh) 信息的获取方法及装置
US10229094B2 (en) Dynamic simulation of a responsive web page
US9703874B2 (en) System and method for presenting search extract title
US10102187B2 (en) Extensible framework for ereader tools, including named entity information
US9087030B2 (en) Handling excessive input characters in a field
US10489448B2 (en) Method and system for dynamically ranking images to be matched with content in response to a search query
CN104036011B (zh) 网页元素的显示方法以及浏览器装置
JP6938680B2 (ja) 関連コンテンツを使用した画像の効率的な増強
WO2019214182A1 (zh) 文档格式转换方法和装置
US9927949B2 (en) Recognition interfaces for computing devices
US20150156147A1 (en) Method, system and apparatus for adding network comment information
WO2015139458A1 (zh) 搜索推荐方法和装置
US20130054572A1 (en) Accurate search results while honoring content limitations
US20120078945A1 (en) Interactive addition of semantic concepts to a document
DE112011102383T5 (de) Berührungsbasierte Gestenerfassung für eine berührungsempfindliche Vorrichtung
US10210181B2 (en) Searching and annotating within images
WO2016065987A1 (zh) 多媒体内容的提供方法和装置
WO2015149506A1 (zh) 搜索展现方法和装置
WO2015139487A1 (zh) 搜索推荐方法和装置
JP6553418B2 (ja) 表示制御方法、表示制御装置及び制御プログラム
US20160063096A1 (en) Image relevance to search queries based on unstructured data analytics
CN104090869B (zh) 一种翻译网络信息的方法及翻译系统
US11003830B2 (en) Providing location-based font recommendations
CN103744909A (zh) 漫画搜索装置和漫画搜索方法
TW201629808A (zh) 辨識、標記及重建用於內容共享之元素

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: 14887728

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase
122 Ep: pct application non-entry in european phase

Ref document number: 14887728

Country of ref document: EP

Kind code of ref document: A1