[go: up one dir, main page]

CN102831148A - Method and device for loading recommended data based on browser - Google Patents

Method and device for loading recommended data based on browser Download PDF

Info

Publication number
CN102831148A
CN102831148A CN2012102102710A CN201210210271A CN102831148A CN 102831148 A CN102831148 A CN 102831148A CN 2012102102710 A CN2012102102710 A CN 2012102102710A CN 201210210271 A CN201210210271 A CN 201210210271A CN 102831148 A CN102831148 A CN 102831148A
Authority
CN
China
Prior art keywords
data
webpage
window
display
recommendation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102102710A
Other languages
Chinese (zh)
Other versions
CN102831148B (en
Inventor
甘恩平
杨连强
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210210271.0A priority Critical patent/CN102831148B/en
Publication of CN102831148A publication Critical patent/CN102831148A/en
Application granted granted Critical
Publication of CN102831148B publication Critical patent/CN102831148B/en
Active - Reinstated legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种基于浏览器的推荐数据加载方法和装置,其中,所述方法包括:访问页面并触发当前网页的导航完成事件;响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束;若是,则发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据;基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示;在所述推荐窗口中显示所述获取的推荐数据。

The present invention provides a browser-based recommended data loading method and device, wherein the method includes: accessing a page and triggering a navigation completion event of the current web page; in response to the navigation completion event, detecting the Whether the rendering of the page is finished; if so, send the request information for the current web page, and obtain corresponding recommendation data from the server according to the request information; create a recommendation window based on the current browser window, and the recommendation window is corresponding to the current web page The window is superimposed and displayed; the acquired recommendation data is displayed in the recommendation window.

Description

一种基于浏览器的推荐数据加载方法和装置A browser-based recommended data loading method and device

技术领域 technical field

本发明涉及浏览器处理技术领域,特别是涉及一种基于浏览器的推荐数据加载方法和装置。The invention relates to the technical field of browser processing, in particular to a method and device for loading recommended data based on a browser.

背景技术 Background technique

网页浏览器是指可以显示网页服务器或档案系统内的文件,并让用户与这些文件互动的一种软件。它用来显示在万维网或局部局域网络等内的文字、影像及其他资讯,这些文字或影像,可以是连接其他网址的超链接,用户可以通过网页浏览器迅速及轻易地浏览各种资讯。网页一般是HTML的格式,有些网页需要使用特定的浏览器才能正确显示,个人电脑上常见的网页浏览器包括微软的Internet Explorer、Opera、Mozilla的Firefox、Maxthon和Safari。A web browser is software that can display files on a web server or file system and allow users to interact with those files. It is used to display text, images and other information on the World Wide Web or a local area network, etc. These texts or images can be hyperlinks to other websites, and users can browse various information quickly and easily through a web browser. Web pages are generally in HTML format, and some web pages require a specific browser to display correctly. Common web browsers on personal computers include Microsoft's Internet Explorer, Opera, Mozilla's Firefox, Maxthon, and Safari.

为了丰富浏览器的功能,在用户浏览当前网页的同时,浏览器会向用户推荐一些与当前网页内容相关的数据,这些推荐数据反映了用户当前的关注方向,使用户可以更加方便地浏览所需要的信息。In order to enrich the functions of the browser, when the user browses the current webpage, the browser will recommend some data related to the content of the current webpage to the user. Information.

现有技术中,实现数据推荐主要有以下两种方式:In the prior art, there are mainly two ways to implement data recommendation:

1、网站开发人员直接修改当前网页的源代码,实现数据推荐功能;1. Website developers directly modify the source code of the current web page to realize the data recommendation function;

2、通过获取当前网页的Javascript脚本,将推荐数据填充到所述JAVA脚本中,最后将填充好推荐数据的JAVA脚本注入当前网页。2. By obtaining the Javascript script of the current webpage, filling the recommended data into the JAVA script, and finally injecting the JAVA script filled with the recommended data into the current webpage.

但是,上述修改网页源代码的方式只能显示当前网页或网站本身的数据,网页或网站之间没有互通性,因此该方式具有较强的局限性;注入Javascript脚本的方式虽然可以显示其他网页或网站的数据,实现多个网页或网站之间的关联,但是,由于所注入的JAVA脚本依赖于当前网页的代码,因此其很容易与当前网页发生冲突。However, the above method of modifying the source code of a webpage can only display the data of the current webpage or website itself, and there is no interoperability between webpages or websites, so this method has strong limitations; although the method of injecting Javascript scripts can display other webpages or However, because the injected JAVA script depends on the code of the current web page, it is easy to conflict with the current web page.

发明内容 Contents of the invention

本发明所要解决的技术问题是提供一种基于浏览器的推荐数据加载方法和装置,能够避免推荐数据与当前网页的冲突与相互影响,并且实现多个网页或网站之间的互通,提升用户浏览网页的用户体验。The technical problem to be solved by the present invention is to provide a browser-based recommended data loading method and device, which can avoid the conflict and mutual influence between the recommended data and the current webpage, and realize the intercommunication between multiple webpages or websites, and improve user browsing experience. The user experience of the web page.

为了解决上述问题,本发明公开了一种基于浏览器的推荐数据加载方法,包括:In order to solve the above problems, the present invention discloses a browser-based method for loading recommended data, including:

访问页面并触发当前网页的导航完成事件;Visit the page and trigger the navigation completion event of the current web page;

响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束;In response to the navigation completion event, detect whether the rendering of the page ends according to a preset frequency;

若是,则发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据;If so, send request information for the current web page, and obtain corresponding recommendation data from the server according to the request information;

基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示;Create a recommended window based on the current browser window, and the recommended window and the window corresponding to the current webpage are superimposed and displayed;

在所述推荐窗口中显示所述获取的推荐数据。The acquired recommendation data is displayed in the recommendation window.

优选地,所述基于当前浏览器窗口创建推荐窗口的步骤包括:Preferably, the step of creating a recommended window based on the current browser window includes:

获取所述当前浏览器窗口的放置窗口;Obtain the placement window of the current browser window;

以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。A recommendation window is created with the placement window as a parent window, and the recommendation window is a pop-up window.

优选地,所述请求信息包括当前网页的统一资源定位符,Preferably, the request information includes the Uniform Resource Locator of the current web page,

所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:The step of obtaining corresponding recommendation data from the server according to the request information includes:

将当前网页的统一资源定位符与预存的统一资源定位符进行匹配;Match the Uniform Resource Locator of the current web page with the pre-stored Uniform Resource Locator;

将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched uniform resource locator is determined as the corresponding recommendation data.

优选地,所述请求信息包括当前网页的网页标题,Preferably, the request information includes the webpage title of the current webpage,

所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:The step of obtaining corresponding recommendation data from the server according to the request information includes:

将当前网页的网页标题与预存的网页标题进行匹配;Match the webpage title of the current webpage with the pre-stored webpage title;

将所匹配的网页标题对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched webpage title is determined as the corresponding recommendation data.

优选地,所述请求信息包括在当前网页状态下用户的访问行为信息,所述用户的访问行为信息通过以下步骤获得:Preferably, the request information includes the user's access behavior information in the current web page state, and the user's access behavior information is obtained through the following steps:

统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型;Statistical user's historical browsing website, according to the historical browsing website statistics user's webpage type of visiting webpage under the current webpage state;

若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。If the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, the user's access behavior information is determined as browsing this type of webpage, and this type of webpage is regarded as the user's attention Web page type.

优选地,所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:Preferably, the step of obtaining corresponding recommendation data from the server according to the request information includes:

将所述用户关注的网页类型与预存的网页类型进行匹配;matching the types of webpages concerned by the user with pre-stored webpage types;

将所匹配的网页类型对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched webpage type is determined as the corresponding recommendation data.

优选地,在创建推荐窗口之后,还包括以下步骤:Preferably, after the recommendation window is created, the following steps are further included:

绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。Binding the attributes of the recommended window and the attributes of the current browser window to make them synchronized, the attributes include window size, position, and window display and hiding.

优选地,所述在所述推荐窗口中显示所述获取的推荐数据的步骤包括:Preferably, the step of displaying the acquired recommendation data in the recommendation window includes:

对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据;Grouping the recommended data, respectively sorting the recommended data in the group and each group, and summarizing the corresponding group information, the group information being the first piece of recommended data in the group;

计算显示区域的数目;Calculate the number of display areas;

依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。The grouping is adjusted according to the number of the display area, and the adjusted recommendation data is displayed in the display area.

优选地,所述对推荐数据进行分组包括:Preferably, said grouping the recommendation data includes:

统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;Count the categories of recommended data, and assign recommended data of the same category to the same group;

或者,or,

提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。Keywords in the recommendation data are extracted, and the recommendation data including the same keyword are assigned to the same group.

优选地,所述显示区域的数目大于分组数目,Preferably, the number of display areas is greater than the number of groups,

则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes:

从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据;Starting from the first group, split the recommendation data in the current group into multiple single recommendation data;

判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系;judging the relationship between the sum of the number of the single recommended data and the number of unsplit groups and the number of the display area;

依据判断结果将调整后的推荐数据显示在所述显示区域中。The adjusted recommendation data is displayed in the display area according to the judgment result.

优选地,所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目,Preferably, the sum of the number of single recommendation data and the number of undivided groups is equal to the number of display areas,

则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes:

将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the plurality of single recommendation data and the undivided group is displayed in the display area.

优选地,所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目,Preferably, the sum of the number of the single recommended data and the number of undivided groups is greater than the number of the display area,

则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes:

计算所述总和与所述显示区域的数目的差值;calculating the difference between the sum and the number of display areas;

从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;Starting from the last single recommendation data, delete the single recommendation data whose number is equal to the difference in the last single recommendation data;

将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining single recommendation data and the undivided group is displayed in the display area.

优选地,所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目,Preferably, the sum of the number of single recommendation data and the number of undivided groups is less than the number of display areas,

则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes:

将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The recommendation data in the next group is split into multiple single recommendation data and adjusted, and the adjusted recommendation data is displayed in the display area.

优选地,所述显示区域的数目小于分组数目,Preferably, the number of display areas is smaller than the number of groups,

则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes:

用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;Subtracting the number of the display area from the number of groups to calculate the number of groups to be deleted;

从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;Starting from the last group, delete the groups in the end group whose number is equal to the number of groups to be deleted;

将剩余分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining groups is displayed in the display area.

优选地,所述按照预设频率检测所述页面的渲染是否结束的步骤包括:获取当前网页对应的文档元素的主体对象;Preferably, the step of detecting whether the rendering of the page is finished according to the preset frequency includes: obtaining the main object of the document element corresponding to the current web page;

按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;Detecting whether the scroll bar of the subject object can scroll in a preset direction according to the preset frequency;

若是,则判断所述页面的渲染结束。If yes, it is judged that the rendering of the page is completed.

另一方面,本发明还公开了一种基于浏览器的推荐数据加载装置,包括:On the other hand, the present invention also discloses a browser-based device for loading recommended data, including:

触发模块,用于访问页面并触发当前网页的导航完成事件;The trigger module is used to access the page and trigger the navigation completion event of the current web page;

检测模块,用于响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束;A detection module, configured to detect whether the rendering of the page ends according to a preset frequency in response to the navigation completion event;

获取模块,用于当检测模块的检测结果为是时,发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据;An acquisition module, configured to send request information for the current web page when the detection result of the detection module is yes, and obtain corresponding recommendation data from the server according to the request information;

创建模块,用于基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示;Create module, be used for creating recommendation window based on current browser window, described recommendation window and the window corresponding to current web page are superimposedly displayed;

显示模块,用于在所述推荐窗口中显示所述获取的推荐数据。A display module, configured to display the acquired recommendation data in the recommendation window.

优选地,所述创建模块包括:Preferably, the creation module includes:

第一获取子模块,用于获取所述当前浏览器窗口的放置窗口;The first obtaining submodule is used to obtain the placement window of the current browser window;

创建子模块,用于以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。A submodule is created, which is used to create a recommendation window with the placement window as a parent window, and the recommendation window is a pop-up window.

优选地,所述请求信息包括当前网页的统一资源定位符,Preferably, the request information includes the Uniform Resource Locator of the current web page,

所述获取模块包括:The acquisition module includes:

第一匹配子模块,用于将当前网页的统一资源定位符与预存的统一资源定位符进行匹配;The first matching submodule is used to match the URL of the current web page with the pre-stored URL;

第一确定子模块,用于将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。The first determining submodule is configured to determine the webpage data corresponding to the matched uniform resource locator as corresponding recommendation data.

优选地,所述请求信息包括当前网页的网页标题,Preferably, the request information includes the webpage title of the current webpage,

所述获取模块包括:The acquisition module includes:

第二匹配子模块,用于将当前网页的网页标题与预存的网页标题进行匹配;The second matching submodule is used to match the webpage title of the current webpage with the pre-stored webpage title;

第二确定子模块,用于将所匹配的网页标题对应的网页数据确定为对应的推荐数据。The second determining submodule is used to determine the webpage data corresponding to the matched webpage title as the corresponding recommendation data.

优选地,所述请求信息包括在当前网页状态下用户的访问行为信息,所述用户的访问行为信息通过以下模块获得:Preferably, the request information includes the user's access behavior information in the current web page state, and the user's access behavior information is obtained through the following modules:

统计模块,用于统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型;Statistical module, used for counting historical browsing URLs of users, and counting webpage types of webpages accessed by users in the current webpage state according to the historical browsing URLs;

判定模块,用于若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。A judging module, configured to judge the user's access behavior information as browsing this type of webpage if the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, and Type as the type of web page that the user follows.

优选地,所述获取模块包括:Preferably, the acquisition module includes:

第三匹配子模块,用于将所述用户关注的网页类型与预存的网页类型进行匹配;The third matching submodule is used to match the type of webpage concerned by the user with the type of webpage stored in advance;

第三确定子模块,用于将所匹配的网页类型对应的网页数据确定为对应的推荐数据。The third determination submodule is used to determine the webpage data corresponding to the matched webpage type as the corresponding recommendation data.

优选地,所述装置还包括:Preferably, the device also includes:

绑定模块,用于在创建模块创建推荐窗口之后,绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。The binding module is used to bind the attributes of the recommended window and the attributes of the current browser window to synchronize after the creation module creates the recommended window, and the attributes include window size, position, and display and hiding of the window.

优选地,所述显示模块包括:Preferably, the display module includes:

分组子模块,用于对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据;The grouping sub-module is used to group the recommended data, sort the recommended data in the group and each group respectively, and summarize the corresponding group information, and the group information is the first piece of recommended data in the group;

计算子模块,用于计算显示区域的数目;Calculation sub-module, used to calculate the number of display areas;

调整显示子模块,用于依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。The adjusting and displaying submodule is configured to adjust the grouping according to the number of the displaying areas, and display the adjusted recommended data in the displaying areas.

优选地,所述分组子模块包括:Preferably, the grouping submodule includes:

统计单元,用于统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;The statistical unit is used to count the categories of the recommended data, and assign the recommended data of the same category to the same group;

或者,or,

提取单元,用于提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。The extracting unit is used to extract keywords in the recommendation data, and assign the recommendation data including the same keywords into the same group.

优选地,所述调整显示子模块包括:Preferably, the adjustment display submodule includes:

拆分单元,用于当所述显示区域的数目大于分组数目时,从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据;A splitting unit, configured to split the recommended data in the current group into a plurality of single recommended data starting from the first group when the number of the display areas is greater than the number of groups;

判断单元,用于判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系;A judging unit, configured to judge the relationship between the sum of the number of the single recommended data and the number of undivided groups and the number of the display area;

第一显示单元,用于依据判断结果将调整后的推荐数据显示在所述显示区域中。The first display unit is configured to display the adjusted recommendation data in the display area according to the judgment result.

优选地,所述第一显示单元包括:Preferably, the first display unit includes:

第一显示子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目时,将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。A first display subunit, configured to combine the plurality of single recommendation data with the unsplit group when the sum of the number of the single recommendation data and the number of unsplit groups is equal to the number of the display area The corresponding group information is displayed in the display area.

优选地,所述第一显示单元包括:Preferably, the first display unit includes:

计算子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目时,计算所述总和与所述显示区域的数目的差值;A calculation subunit, used to calculate the difference between the sum and the number of display areas when the sum of the number of single recommended data and the number of undivided groups is greater than the number of display areas;

删除子单元,用于从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;The deletion subunit is used to delete the single recommendation data whose number is equal to the difference in the last single recommendation data sequentially starting from the last single recommendation data;

第二显示子单元,用于将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The second display subunit is configured to display in the display area the group information corresponding to the remaining single recommendation data and the undivided group.

优选地,所述第一显示单元包括:Preferably, the first display unit includes:

第三显示子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目时,将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The third display subunit is used to split the recommended data in the next group into multiple single recommended data when the sum of the number of the single recommended data and the number of unsplit groups is less than the number of the display area , and adjust, and display the adjusted recommendation data in the display area.

优选地,所述调整显示子模块包括:Preferably, the adjustment display submodule includes:

计算单元,用于当所述显示区域的数目小于分组数目时,用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;A calculation unit, used to calculate the number of groups to be deleted by subtracting the number of display areas from the number of groups when the number of display areas is less than the number of groups;

删除单元,用于从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;The deletion unit is used to sequentially delete the groupings whose number is equal to the number of groups to be deleted in the last grouping starting from the last grouping;

第二显示单元,用于将剩余分组对应的组信息显示在所述显示区域中。The second display unit is configured to display group information corresponding to the remaining groups in the display area.

优选地,所述检测模块包括:Preferably, the detection module includes:

第二获取子模块,用于获取当前网页对应的文档元素的主体对象;The second obtaining sub-module is used to obtain the main object of the document element corresponding to the current webpage;

检测子模块,用于按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;The detection sub-module is used to detect whether the scroll bar of the subject object can be scrolled in a preset direction according to the preset frequency;

判断子模块,用于当所述检测子模块的检测结果为是时,判断所述页面的渲染结束。The judging submodule is configured to judge that the rendering of the page ends when the detection result of the detecting submodule is yes.

与现有技术相比,本发明包括以下优点:Compared with the prior art, the present invention includes the following advantages:

首先,本发明通过访问页面并触发当前网页的导航完成事件,并响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束,当检测到页面渲染结束后,开始加载推荐数据,通过对推荐数据加载时机的判断,提高了推荐数据的加载速度,提升了用户体验。First, the present invention visits the page and triggers the navigation completion event of the current web page, and in response to the navigation completion event, detects whether the rendering of the page is completed according to the preset frequency, and starts loading the recommendation data after detecting that the rendering of the page is completed , by judging the loading timing of the recommended data, the loading speed of the recommended data is improved, and the user experience is improved.

其次,本发明采用独立的windows窗口实现数据推荐,通过基于当前浏览器窗口创建推荐窗口,将推荐数据显示在所述推荐窗口中。其数据推荐的实现不再依赖于用户访问的当前网页或网站,避免了与当前网页的冲突与相互影响,并且还可以显示其他网页或网站对应的推荐数据,从而实现多个网页或网站之间的互通,提升了用户浏览网页的用户体验。Secondly, the present invention uses an independent windows window to implement data recommendation, creates a recommendation window based on the current browser window, and displays the recommendation data in the recommendation window. The implementation of its data recommendation is no longer dependent on the current webpage or website visited by the user, avoiding conflicts and mutual influence with the current webpage, and can also display the recommended data corresponding to other webpages or websites, thereby realizing multiple webpages or websites. Interoperability improves the user experience of users browsing the web.

最后,本发明在推荐数据显示时,摒弃了现有只采用单一数据显示或者只采用分组显示的方法,采用动态的自适应的推荐数据展现方式,最高效的利用显示区域。相对于分组显示,本方式可以在显示区域足够的情况下直接展现单个数据细节信息,减少了用户获取详细信息的操作环节;相对于单一数据显示,本方式可以在有限的显示区域展现更为丰富的推荐数据,方便用户获取更多的信息。Finally, when displaying recommended data, the present invention abandons the existing method of only using single data display or group display, and adopts a dynamic and self-adaptive recommended data display method to make the most efficient use of the display area. Compared with group display, this method can directly display the detailed information of a single data when the display area is sufficient, reducing the operation steps for users to obtain detailed information; compared with single data display, this method can display richer information in a limited display area recommended data to facilitate users to obtain more information.

附图说明 Description of drawings

图1是本发明实施例中所述的一种推荐数据加载方法的流程图;FIG. 1 is a flow chart of a recommended data loading method described in an embodiment of the present invention;

图2是本发明实施例中所述的推荐窗口的单一推荐数据显示结果示意图;Fig. 2 is a schematic diagram of a single recommendation data display result of the recommendation window described in the embodiment of the present invention;

图3是本发明实施例中所述的推荐窗口的分组显示结果示意图;Fig. 3 is a schematic diagram of grouped display results of the recommendation window described in the embodiment of the present invention;

图4是本发明实施例中所述的一种推荐数据加载装置的结构框图;Fig. 4 is a structural block diagram of a recommended data loading device described in an embodiment of the present invention;

图5是本发明实施例中所述的检测模块的结构框图;Fig. 5 is a structural block diagram of the detection module described in the embodiment of the present invention;

图6是本发明实施例中所述的获取模块的结构框图;Fig. 6 is a structural block diagram of the acquisition module described in the embodiment of the present invention;

图7是本发明实施例中所述的创建模块的结构框图;Fig. 7 is a structural block diagram of the creation module described in the embodiment of the present invention;

图8是本发明实施例中所述的显示模块的结构框图;Fig. 8 is a structural block diagram of the display module described in the embodiment of the present invention;

图9是本发明实施例中所述的第一显示单元的结构框图。Fig. 9 is a structural block diagram of the first display unit described in the embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明通过检测当前页面的渲染是否结束来判断推荐数据加载的最佳时机,当页面渲染结束后,开始加载推荐数据,提高了推荐数据的加载速度,并且通过获取与当前网页相关的推荐数据,基于浏览器创建推荐窗口,采用独立的windows窗口的方式实现数据推荐,避免了推荐数据的显示与当前网页的冲突与相互影响,并且还可以实现多个网页或网站之间的互通,提升用户体验。同时,本发明采用动态的自适应的推荐数据展现方式,能够最高效的利用显示区域。The present invention judges the best time to load the recommended data by detecting whether the rendering of the current page is finished. After the rendering of the page is finished, the recommended data is loaded, which improves the loading speed of the recommended data, and by acquiring the recommended data related to the current web page, Create a recommendation window based on a browser, and use an independent windows window to implement data recommendation, avoiding the conflict and mutual influence between the display of recommended data and the current web page, and can also realize the intercommunication between multiple web pages or websites to improve user experience . At the same time, the present invention adopts a dynamic and self-adaptive presentation mode of recommended data, which can utilize the display area most efficiently.

参照图1,示出了本实施例所述的一种推荐数据加载方法的流程图,所述方法包括:Referring to FIG. 1 , it shows a flow chart of a method for loading recommended data described in this embodiment, the method comprising:

步骤S101,访问页面并触发当前网页的导航完成事件。Step S101, accessing a page and triggering a navigation completion event of the current web page.

步骤S102,响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束。Step S102 , in response to the navigation completion event, detecting whether the rendering of the page ends according to a preset frequency.

其中,所述按照预设频率检测所述页面的渲染是否结束的步骤包括:Wherein, the step of detecting whether the rendering of the page ends according to a preset frequency includes:

子步骤a1,获取当前网页对应的文档元素的主体对象;Sub-step a1, obtaining the main object of the document element corresponding to the current web page;

子步骤a2,按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;Sub-step a2, detecting whether the scroll bar of the subject object can scroll in a preset direction according to the preset frequency;

子步骤a3,若上述子步骤a2的检测结果为是,则判断所述页面的渲染结束。In sub-step a3, if the detection result of the above-mentioned sub-step a2 is yes, it is judged that the rendering of the page is completed.

具体的,针对当前网页的处理过程为:Specifically, the processing process for the current web page is:

(I)接收并响应当前网页的Navigate Complete(导航完成)事件。(1) Receive and respond to the Navigate Complete (navigation complete) event of the current web page.

(II)在所述Navigate Complete事件响应中开启一个100ms的timer。当然,其中的timer也可以取其它的任何数值。(II) Start a 100ms timer in the Navigate Complete event response. Of course, the timer can also take any other value.

(III)在timer的响应中检测当前网页是否渲染完毕。具体的,通过得到当前网页的Document Element(文本元素)的body对象,使用body对象的doScroll方法,如果此方法返回成功,代表网页渲染完成,否则代表未完成。(III) Detect whether the current web page has been rendered in the response of the timer. Specifically, by obtaining the body object of the Document Element (text element) of the current webpage, use the doScroll method of the body object. If this method returns successfully, it means that the rendering of the webpage is completed, otherwise it means that it is not completed.

在用户浏览的网页在视觉效果上完全展现之前,推荐流程是保持轻量级的运行(仅在timer中检测是否渲染完毕,消耗的系统资源极少,可以忽略),而后当网页完全渲染完毕后,推荐流程才开始启动网络请求与下载(这一动作或多或少会占用网络带宽,如果不在网页渲染完毕以后,可能会对网页的数据下载造成些许影响),因此,该过程保证了用户浏览网页这一基本需求不受推荐流程的干扰,进一步提升了用户体验。Before the webpage browsed by the user is fully displayed in terms of visual effects, the recommendation process is to maintain a lightweight operation (only check whether the rendering is completed in the timer, which consumes very little system resources and can be ignored), and then when the webpage is completely rendered , the recommendation process starts to start the network request and download (this action will more or less occupy network bandwidth, if it is not after the web page is rendered, it may have a slight impact on the data download of the web page), therefore, this process ensures that the user browses The basic need of web pages is not disturbed by the recommendation process, which further improves the user experience.

步骤S103,若步骤S102中的检测结果为是,则发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据。Step S103, if the detection result in step S102 is yes, then send request information for the current web page, and obtain corresponding recommendation data from the server according to the request information.

浏览器针对当前网页,获取当前网页对应的请求信息,然后将该请求信息发送给服务器。其中,所述请求信息包括当前网页的统一资源定位符,或者当前网页的网页标题,或者在当前网页状态下用户的访问行为信息。The browser obtains the request information corresponding to the current web page for the current web page, and then sends the request information to the server. Wherein, the request information includes the uniform resource locator of the current webpage, or the title of the current webpage, or the user's access behavior information in the current webpage state.

所述请求信息还可以同时包括上述信息中的任意两种信息,或者同时包括上述三种信息。The request information may also include any two of the above information at the same time, or include the above three information at the same time.

当然,所述请求信息还可以包括针对当前网页的其他信息,如当前网页内容中的某个关键词等等,本发明实施例对此并不加以限制。Of course, the request information may also include other information about the current webpage, such as a certain keyword in the content of the current webpage, which is not limited in this embodiment of the present invention.

其中,发送请求信息的浏览器多位于客户端,但不限于此,位于服务器端的浏览器同样可以实现本实施例的推荐数据获取方法。Wherein, the browser that sends the request information is usually located at the client, but not limited thereto, and the browser located at the server can also implement the recommended data acquisition method of this embodiment.

下面,针对上述三种不同的请求信息,分别对获取对应的推荐数据的过程进行详细介绍。In the following, for the above three different request information, the process of obtaining the corresponding recommendation data will be introduced in detail respectively.

第一种情况:First case:

所述请求信息包括当前网页的统一资源定位符,则依据所述请求信息从服务器获取对应的推荐数据包括以下子步骤:The request information includes the Uniform Resource Locator of the current webpage, and obtaining corresponding recommendation data from the server according to the request information includes the following substeps:

子步骤1,将当前网页的统一资源定位符与预存的统一资源定位符进行匹配。Sub-step 1, matching the URL of the current web page with the pre-stored URL.

服务器接收到包括当前网页的统一资源定位符的请求信息后,将其与预存的统一资源定位符进行匹配。具体的,可以根据统一资源定位符的特征进行匹配,所述统一资源定位符的特征可以是从完整的统一资源定位符中取出的具有代表性的部分。例如,可以仅是网页域名部分,也可以是表示文件类型的部分,等等。在进行匹配时,如果预存的统一资源定位符中包含有当前网页的统一资源定位符的特征,则可以确定二者匹配。After receiving the request information including the uniform resource locator of the current web page, the server matches it with the pre-stored uniform resource locator. Specifically, the matching may be performed according to the characteristics of the uniform resource locator, and the characteristic of the uniform resource locator may be a representative part taken from the complete uniform resource locator. For example, it may be only the domain name part of the web page, or a part indicating the file type, and so on. When matching, if the pre-stored Uniform Resource Locator contains the characteristics of the Uniform Resource Locator of the current webpage, it can be determined that the two match.

其中,因为不同网页的统一资源定位符并不会完全相同,本发明实施例采用近似匹配的方法,可以预先设定匹配规则,如果按照匹配规则当前网页的统一资源定位符能够与预存的统一资源定位符相匹配,则确定所匹配的统一资源定位符对应的网页为所需的网页。Wherein, because the URLs of different webpages are not exactly the same, the embodiment of the present invention adopts an approximate matching method, and the matching rules can be set in advance. If the locators match, it is determined that the webpage corresponding to the matched uniform resource locator is the desired webpage.

本发明实施例中所述的统一资源定位符的匹配并不限于上述方法,本领域技术人员采用任意一种匹配方法均是可行的。The matching of the uniform resource locator described in the embodiment of the present invention is not limited to the above method, and it is feasible for those skilled in the art to adopt any matching method.

子步骤2,将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。In sub-step 2, the webpage data corresponding to the matched uniform resource locator is determined as the corresponding recommendation data.

本发明实施例中的推荐数据可以包含多个分类,每个分类均有类型、类型名称以及本分类详细数据,等等。The recommended data in this embodiment of the present invention may include multiple categories, and each category has a type, a name of the type, detailed data of the category, and so on.

例如类型为0的分类的类型名称为新闻类,类型为1的分类的类型名称为视频类,类型为2的分类的类型名称为购物类。每个分类的详细数据都包括标题与缩略图地址这两个统一的字段信息,并且不同的分类还包括针对本分类各自定义的字段信息,如视频类型的详细数据字段还包括视频来源、演员等字段信息,而购物类型的详细数据字段还包括价格、折扣等字段信息。For example, the type name of the category whose type is 0 is news, the type name of the category whose type is 1 is video, and the type name of the category whose type is 2 is shopping. The detailed data of each category includes two unified field information, title and thumbnail address, and different categories also include field information customized for this category. For example, the detailed data fields of video type also include video source, actors, etc. Field information, and the detailed data field of the shopping type also includes field information such as price and discount.

第二种情况:Second case:

所述请求信息包括当前网页的网页标题,则依据所述请求信息从服务器获取对应的推荐数据包括以下子步骤:The request information includes the web page title of the current web page, and obtaining corresponding recommendation data from the server according to the request information includes the following substeps:

子步骤a,将当前网页的网页标题与预存的网页标题进行匹配。Sub-step a, matching the webpage title of the current webpage with the pre-stored webpage title.

在将包括有当前网页的网页标题的请求信息发送给服务器之后,将预存的网页标题与当前网页的网页标题进行匹配。该步骤也可以采用但不限于近似匹配方法,例如可以提取网页标题中的某个关键词进行匹配等。After the request information including the webpage title of the current webpage is sent to the server, the pre-stored webpage title is matched with the webpage title of the current webpage. This step can also adopt but not limited to an approximate matching method, for example, a certain keyword in the title of the webpage can be extracted for matching.

例如,当前网页的网页标题为“百度搜索-ipad”,则可以提取其中的关键词“ipad”进行匹配,查找预存的网页标题中是否包含关键词“ipad”,如果某些网页标题中包括该关键词,则将这些网页标题作为与当前网页的网页标题相匹配的网页标题。For example, if the webpage title of the current webpage is "Baidu Search-ipad", you can extract the keyword "ipad" for matching, and check whether the pre-stored webpage title contains the keyword "ipad". keywords, these webpage titles are used as the webpage titles matching the webpage title of the current webpage.

子步骤b,将所匹配的网页标题对应的网页数据确定为对应的推荐数据。In sub-step b, the webpage data corresponding to the matched webpage title is determined as the corresponding recommendation data.

第三种情况:The third case:

所述请求信息包括在当前网页状态下用户的访问行为信息。The request information includes the user's access behavior information in the current web page state.

首先介绍获取在当前网页状态下用户的访问行为信息的过程,该过程由浏览器执行,包括以下步骤:Firstly, the process of obtaining the user's access behavior information in the current web page state is introduced, which is executed by the browser and includes the following steps:

步骤i,统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型。Step i, making statistics of the historical browsing URLs of the user, and counting the types of webpages visited by the user in the current webpage state according to the historical browsing URLs.

其中,用户在当前网页状态下的访问的网页所指代的是,用户在历史浏览过程中,浏览过当前网页,并且在浏览当前网页时,进一步浏览的其他网页。Wherein, the webpage visited by the user in the current webpage state refers to other webpages that the user has browsed through the current webpage during the historical browsing process, and further browsed while browsing the current webpage.

例如,用户当前浏览某一网页时,浏览器通过统计用户的历史浏览网址检测到用户之前浏览过该网页,并且在浏览该网页的过程中,在搜索框中输入了其他关键词链接到另一个网页中,或者通过点击该网页所显示的链接中的一个从而访问另一个的网页。其中,所述的另一个网页即为用户在当前网页状态下访问的网页,根据这些网页的网址统计其网页类型。For example, when a user is currently browsing a certain webpage, the browser detects that the user has browsed the webpage before by counting the user's historical browsing URL, and in the process of browsing the webpage, enters other keywords in the search box to link to another webpage. web page, or by clicking on one of the links displayed on that web page to access another web page. Wherein, the other webpage mentioned is the webpage visited by the user in the current webpage state, and the webpage types of these webpages are counted according to the URLs of these webpages.

步骤ii,若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。Step ii, if the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, then determine the user’s access behavior information as browsing this type of webpage, and use this type of webpage as The types of webpages the user follows.

其中,所述预设次数根据实际情况设定即可,本发明实施例对具体的数值并不加以限制。Wherein, the preset number of times can be set according to the actual situation, and the embodiment of the present invention does not limit the specific value.

所述依据所述请求信息从服务器获取对应的推荐数据包括以下子步骤:The obtaining the corresponding recommendation data from the server according to the request information includes the following sub-steps:

子步骤A,将所述用户关注的网页类型与预存的网页类型进行匹配。Sub-step A, matching the types of webpages concerned by the user with pre-stored webpage types.

例如,经统计用户关注的网页类型为新闻类型,则将预存的类型为新闻的网页作为与当前网页匹配的网页。For example, if the type of the webpage concerned by the user is statistically of the news type, then the pre-stored webpage of the news type is used as the webpage matching the current webpage.

子步骤B,将所匹配的网页类型对应的网页数据确定为对应的推荐数据。In sub-step B, the webpage data corresponding to the matched webpage type is determined as the corresponding recommendation data.

本步骤S103中,主要针对上述三种不同的请求信息进行介绍,如果所述请求信息同时包括上述信息中的多种信息,或者所述请求信息中还包括其他信息,则可以对处理过程进行组合或者进行相似处理即可,本发明实施例在这里不再详细介绍。In this step S103, the above three different request information are mainly introduced. If the request information includes multiple information in the above information at the same time, or the request information also includes other information, the processing process can be combined Alternatively, similar processing may be performed, and this embodiment of the present invention will not be described in detail here.

步骤S104,基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示。Step S104, creating a recommended window based on the current browser window, and the recommended window is superimposed and displayed with the window corresponding to the current web page.

在获取到推荐数据之后,浏览器创建用于显示该推荐数据的推荐窗口,该推荐窗口为一个独立的windows窗口,其不依赖于当前的网页或网站,不会与当前的网页或网站产生冲突或相互影响,并且该推荐窗口可以显示其他任意网页或网站的数据。After obtaining the recommended data, the browser creates a recommended window for displaying the recommended data. The recommended window is an independent windows window, which does not depend on the current webpage or website and will not conflict with the current webpage or website. or interact with each other, and the recommendation window can display data from any other web page or website.

所述基于当前浏览器窗口创建推荐窗口的步骤包括:The step of creating a recommended window based on the current browser window includes:

子步骤b1,获取所述当前浏览器窗口的放置窗口;Sub-step b1, obtaining the placement window of the current browser window;

子步骤b2,以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。Sub-step b2, using the placement window as a parent window to create a recommendation window, and the recommendation window is a pop-up window.

优选的,在创建推荐窗口之后,还包括以下步骤:Preferably, after the recommendation window is created, the following steps are further included:

绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。Binding the attributes of the recommended window and the attributes of the current browser window to make them synchronized, the attributes include window size, position, and window display and hiding.

当然,还可以包括其他窗口属性,如窗口的颜色等等,本发明实施例对此并不加以限制。Certainly, other window attributes may also be included, such as the color of the window, etc., which are not limited in this embodiment of the present invention.

步骤S105,在所述推荐窗口中显示所述获取的推荐数据。Step S105, displaying the acquired recommendation data in the recommendation window.

本发明实施例在推荐数据的显示过程中,采用动态的自适应的推荐数据展现逻辑,实时调整推荐数据的分组,从而最大化利用显示区域。In the embodiment of the present invention, during the display process of the recommended data, a dynamic adaptive recommended data display logic is adopted to adjust the grouping of the recommended data in real time, thereby maximizing the utilization of the display area.

所述步骤S105具体包括:The step S105 specifically includes:

步骤11,对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据。Step 11, grouping the recommended data, respectively sorting the group and the recommended data in each group, and summarizing the corresponding group information, the group information being the first piece of recommended data in the group.

所述对推荐数据进行分组包括:The grouping of recommendation data includes:

统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;Count the categories of recommended data, and assign recommended data of the same category to the same group;

或者,or,

提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。Keywords in the recommendation data are extracted, and the recommendation data including the same keyword are assigned to the same group.

本发明实施例可以根据推荐数据的类型对其进行分组(服务器下发的每条推荐数据都带有类型ID,对相同类型ID的推荐数据做合并操作),例如经分组后,推荐数据分别为新闻类、视频类和图片类3个分组,并且每个分组中包含一个或多个单一推荐数据,将每个分组中的第一条推荐数据作为该分组的组信息。还可以依据推荐数据中的关键词进行分组,例如在多个推荐数据中均包含关键词“ipad”,则将这些包含同一关键词“ipad”的推荐数据分配到同一组中。In the embodiment of the present invention, the recommended data can be grouped according to its type (each piece of recommended data sent by the server has a type ID, and the recommended data of the same type ID is merged), for example, after grouping, the recommended data are respectively There are three groups of news, video and pictures, and each group contains one or more single recommendation data, and the first piece of recommendation data in each group is used as the group information of the group. It is also possible to group according to keywords in the recommended data, for example, if multiple recommended data contain the keyword "ipad", these recommended data containing the same keyword "ipad" are assigned to the same group.

当然,本发明实施例还可以根据其他规则对推荐数据进行分组,本领域技术人员按照实际情况进行相应处理即可,本发明实施例对此并不加以限制。Of course, the embodiment of the present invention can also group the recommendation data according to other rules, and those skilled in the art can perform corresponding processing according to the actual situation, which is not limited in the embodiment of the present invention.

步骤12,计算显示区域的数目。Step 12, calculate the number of display areas.

本发明实施例依据浏览器的宽度进行计算。具体的,首先计算浏览器的宽度,然后用所述浏览器的宽度除以单个显示区域的宽度,取计算结果中的整数部分作为所示显示区域的数目。其中,所述单个显示区域的宽度是一个固定值,可以预先根据实际情况进行配置。In the embodiment of the present invention, the calculation is performed according to the width of the browser. Specifically, first calculate the width of the browser, then divide the width of the browser by the width of a single display area, and take the integer part of the calculation result as the number of displayed display areas. Wherein, the width of the single display area is a fixed value, which can be configured in advance according to the actual situation.

当然,本领域技术人员还可以根据经验采用其他方法计算显示区域的数目,本发明实施例对此并不加以限制。Of course, those skilled in the art may also use other methods to calculate the number of display regions based on experience, which is not limited in this embodiment of the present invention.

步骤13,依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。Step 13, adjusting the grouping according to the number of the display area, and displaying the adjusted recommendation data in the display area.

本实施例根据显示区域的数目和分组数目的关系实时地调整所述分组,具体包括以下三种情况:This embodiment adjusts the grouping in real time according to the relationship between the number of display areas and the number of groups, specifically including the following three situations:

第一种情况:First case:

所述显示区域的数目大于分组数目。The number of display areas is greater than the number of groups.

则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes:

(1)从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据。(1) Starting from the first group, split the recommendation data in the current group into multiple single recommendation data.

由于在对推荐数据进行分组时,每个分组中都包括一个或多个推荐数据,因此,本步骤可以直接将当前分组拆分成多个单一推荐数据,并且将该分组标记为拆分模式。Since each group includes one or more recommended data when grouping the recommended data, this step can directly split the current group into multiple single recommended data, and mark the group as a split mode.

(2)判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系。(2) Determine the size relationship between the sum of the number of the single recommended data and the number of undivided groups and the number of the display area.

(3)依据判断结果将调整后的推荐数据显示在所述显示区域中。(3) Displaying the adjusted recommendation data in the display area according to the judgment result.

①所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目,则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:① The sum of the number of single recommended data and the number of undivided groups is equal to the number of the display area, then displaying the adjusted recommended data in the display area according to the judgment result includes:

将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the plurality of single recommendation data and the undivided group is displayed in the display area.

优选的,本发明实施例对单一推荐数据的显示形式可以表示为:组类型名称(即这些单一推荐数据所属的组的类型名称)+数据1的title(标题)+数据2的title+...+数据n的title,并且将其标记为拆分模式。对未拆分的分组数据的显示形式可以表示为:组类型名称(即当前未拆分分组的类型名称)+当前未拆分分组对应的组信息(当前分组中的第一条推荐数据的title),并且将其标记为分组模式。Preferably, the display form of the single recommended data in this embodiment of the present invention can be expressed as: group type name (that is, the type name of the group to which these single recommended data belong)+title (title) of data 1+title of data 2+... + the title of data n, and mark it as split mode. The display form of the unsplit group data can be expressed as: group type name (that is, the type name of the current unsplit group) + the group information corresponding to the current unsplit group (the title of the first recommended data in the current group ), and mark it as group mode.

在实际中,可以将显示区域设置在数据展现控件中,每个分组利用一个展现控件进行显示,并且在分组模式展现时,每个展现控件仅包括一个显示区域,而在拆分模式下,每个展现控件包括的显示区域的数目要根据实际要显示的单一推荐数据的数目决定。In practice, the display area can be set in the data display control, and each group is displayed using a display control, and when displaying in group mode, each display control only includes one display area, while in split mode, each The number of display areas included in a presentation control is determined according to the actual number of single recommendation data to be displayed.

需要说明的是,本发明实施例并不限于上述显示形式,其他任何一种可以显示本发明实施例推荐数据的显示形式都是可行的。It should be noted that the embodiment of the present invention is not limited to the above display forms, and any other display form that can display the recommended data in the embodiment of the present invention is feasible.

②所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目,② The sum of the number of the single recommended data and the number of undivided groups is greater than the number of the display area,

则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes:

计算所述总和与所述显示区域的数目的差值;calculating the difference between the sum and the number of display areas;

从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;Starting from the last single recommendation data, delete the single recommendation data whose number is equal to the difference in the last single recommendation data;

将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining single recommendation data and the undivided group is displayed in the display area.

③所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目,③ The sum of the number of the single recommended data and the number of unsplit groups is less than the number of the display area,

则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes:

将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The recommendation data in the next group is split into multiple single recommendation data and adjusted, and the adjusted recommendation data is displayed in the display area.

如果将当前分组拆分后显示区域的数目仍然大于拆分后的单一推荐数据的数目与未拆分的分组数目的总和,则将下一个分组按照上述当前分组的方式进行拆分,拆分后继续按照上述方法对其进行比较调整,最后将推荐数据显示在显示区域中,具体的调整方法与上述过程相似,本发明实施例在这里不再详细介绍。If the number of display areas after splitting the current group is still greater than the sum of the number of single recommended data after splitting and the number of unsplit groups, the next group will be split according to the above current grouping method, after splitting Continue to compare and adjust it according to the above method, and finally display the recommended data in the display area. The specific adjustment method is similar to the above process, and will not be described in detail here in the embodiment of the present invention.

例如,经分组后,推荐数据分别为新闻类、视频类和图片类3个分组,其中,新闻类分组中包括3个推荐数据,视频类分组中包括4个推荐数据,图片类分组中包括2个推荐数据。For example, after grouping, the recommended data are divided into three groups: news, video, and picture. Among them, the news group includes 3 recommended data, the video group includes 4 recommended data, and the picture group includes 2 recommended data.

如果计算出显示区域有4个,则将新闻类分组拆分成3个单一推荐数据,此时单一数据的数目与未拆分分组(视频类分组和图片类分组)的数目总和为5,大于显示区域的数目,则将新闻类分组拆分出的最后一个推荐数据删除,然后将新闻类分组中剩余的两个单一推荐数据与视频类分组对应的组信息和图片类分组对应的组信息显示在4个显示区域中。If it is calculated that there are 4 display areas, the news grouping is split into 3 single recommendation data. At this time, the sum of the number of single data and the number of unsplit groups (video grouping and picture grouping) is 5, which is greater than To display the number of regions, delete the last recommendation data split from the news group, and then display the remaining two single recommendation data in the news group, the group information corresponding to the video group and the group information corresponding to the picture group in 4 display areas.

如果计算出显示区域为5个,则将新闻类分组拆分成3个单一推荐数据,此时单一数据的数目与未拆分分组(视频类分组和图片类分组)的数目总和为5,等于显示区域的数目,则将新闻类分组拆分出的3个单一推荐数据与视频类分组对应的组信息和图片类分组对应的组信息显示在5个显示区域中。If it is calculated that there are 5 display areas, then split the news group into 3 single recommendation data. At this time, the sum of the number of single data and the number of undivided groups (video group and picture group) is 5, which is equal to For the number of display areas, the 3 single recommendation data separated from the news group, the group information corresponding to the video group and the group information corresponding to the picture group are displayed in 5 display areas.

如果计算出显示区域为6个,则将新闻类分组拆分成3个单一推荐数据,此时单一数据的数目与未拆分分组(视频类分组和图片类分组)的数目总和为5,小于显示区域的数目,则继续将视频类分组拆分成4个单一推荐数据,此时单一数据的数目(7个)与未拆分分组(图片类分组)的数目总和为8,大于显示区域的数目,则将视频类分组拆分出的最后2个单一推荐数据删除,然后将新闻类分组中的3个单一推荐数据与视频类分组中剩余的2个单一推荐数据以及图片类分组对应的组信息显示在6个显示区域中。If it is calculated that there are 6 display areas, split the news group into 3 single recommendation data, and at this time the sum of the number of single data and the number of unsplit groups (video group and picture group) is 5, which is less than The number of display areas, then continue to split the video group into 4 single recommendation data. At this time, the sum of the number of single data (7) and the number of undivided groups (picture groups) is 8, which is greater than the number of display areas. number, delete the last 2 single recommendation data split from the video group, and then delete the 3 single recommendation data in the news group, the remaining 2 single recommendation data in the video group and the group corresponding to the picture group Information is displayed in 6 display areas.

第二种情况:Second case:

所述显示区域的数目等于分组数目,则直接将所述分组对应的组信息显示在所述显示区域中。If the number of the display areas is equal to the number of groups, then the group information corresponding to the groups is directly displayed in the display area.

第三种情况:The third case:

所述显示区域的数目小于分组数目,the number of display areas is less than the number of groups,

则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes:

用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;Subtracting the number of the display area from the number of groups to calculate the number of groups to be deleted;

从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;Starting from the last group, delete the groups in the end group whose number is equal to the number of groups to be deleted;

将剩余分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining groups is displayed in the display area.

例如,经分组后,推荐数据分别为新闻类、视频类和图片类3个分组,其中,新闻类分组中包括3个推荐数据,视频类分组中包括4个推荐数据,图片类分组中包括2个推荐数据。For example, after grouping, the recommended data are divided into three groups: news, video, and picture. Among them, the news group includes 3 recommended data, the video group includes 4 recommended data, and the picture group includes 2 recommended data.

如果计算出的显示区域的数目为2,小于分组数目,则将图片类分组删除,然后将新闻类分组对应的组信息和视频类分组对应的组信息显示在2个显示区域中。If the calculated number of display areas is 2, which is less than the number of groups, delete the picture group, and then display the group information corresponding to the news group and the group information corresponding to the video group in the two display areas.

参照图2,示出了本发明实施例中所述的推荐窗口的单一推荐数据显示结果示意图。Referring to FIG. 2 , it shows a schematic diagram of a single recommendation data display result of the recommendation window described in the embodiment of the present invention.

图2中当前网页的标题为“百度搜索-ipad”,可以看出,其推荐窗口位于当前网页所对应的窗口的下方(本发明实施例中推荐窗口还可以位于其他位置),经计算后得出包括3个显示区域,每个显示区域中都显示了一个单一推荐数据,当用户需要浏览器中的一个推荐数据时,点击推荐窗口中对应的显示区域,即可链接到该推荐数据所对应的网页。The title of current webpage among Fig. 2 is " Baidu search-ipad ", as can be seen, its recommendation window is positioned at the below of the corresponding window of current webpage (recommendation window can also be positioned at other positions in the embodiment of the present invention), obtains after calculation It includes 3 display areas, and each display area displays a single recommendation data. When the user needs a recommendation data in the browser, click the corresponding display area in the recommendation window to link to the corresponding recommendation data. webpage.

图3是本发明实施例中所述的推荐窗口的分组显示结果示意图,可以看出,该推荐窗口经计算后包括一个显示区域,该显示区域中以分组的形式显示了当前的推荐数据,并且在图中“人气热卖”下方的“(5)”表示该分组中包括5个单一推荐数据。通过将鼠标移动到推荐窗口中的任何一个位置即可将展开当前分组,显示其中的详细数据,或者,通过将鼠标移动到推荐窗口后再点击鼠标,实现当前分组的展开。Fig. 3 is a schematic diagram of the group display results of the recommendation window described in the embodiment of the present invention. It can be seen that the recommendation window includes a display area after calculation, and the current recommendation data is displayed in the form of grouping in the display area, and "(5)" below "Popularity Hot Selling" in the figure indicates that the group includes 5 single recommendation data. By moving the mouse to any position in the recommendation window, the current group can be expanded to display the detailed data, or, by moving the mouse to the recommendation window and then clicking the mouse, the current group can be expanded.

当然,还可以采用其他的方法展开当前分组,本发明实施例对具体的展开方法并不加以限制。Of course, other methods can also be used to expand the current group, and the embodiment of the present invention does not limit the specific expansion method.

首先,本发明实施例通过访问页面并触发当前网页的导航完成事件,并响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束,当检测到页面渲染结束后,开始加载推荐数据,通过对推荐数据加载时机的判断,提高了推荐数据的加载速度,提升了用户体验。First, the embodiment of the present invention visits the page and triggers the navigation completion event of the current web page, and in response to the navigation completion event, detects whether the rendering of the page is completed according to the preset frequency, and starts loading when it is detected that the rendering of the page is complete The recommended data, by judging the loading timing of the recommended data, improves the loading speed of the recommended data and improves the user experience.

其次,本发明实施例采用独立的windows窗口实现数据推荐,通过基于当前浏览器窗口创建推荐窗口,将推荐数据显示在所述推荐窗口中。其数据推荐的实现不再依赖于用户访问的当前网页或网站,避免了与当前网页的冲突与相互影响,并且还可以显示其他网页或网站对应的推荐数据,从而实现多个网页或网站之间的互通,提升了用户浏览网页的用户体验。Secondly, in the embodiment of the present invention, an independent windows window is used to implement data recommendation, and the recommendation data is displayed in the recommendation window by creating a recommendation window based on the current browser window. The implementation of its data recommendation is no longer dependent on the current webpage or website visited by the user, avoiding conflicts and mutual influence with the current webpage, and can also display the recommended data corresponding to other webpages or websites, thereby realizing multiple webpages or websites. Interoperability improves the user experience of users browsing the web.

最后,本发明实施例在推荐数据显示时,摒弃了现有只采用单一数据显示或者只采用分组显示的方法,采用动态的自适应的推荐数据展现方式,最高效的利用显示区域。相对于分组显示,本方式可以在显示区域足够的情况下直接展现单个数据细节信息,减少了用户获取详细信息的操作环节;相对于单一数据显示,本方式可以在有限的显示区域展现更为丰富的推荐数据,方便用户获取更多的信息。Finally, the embodiment of the present invention abandons the existing method of only using single data display or group display when displaying recommended data, and adopts a dynamic and adaptive recommended data display method to make the most efficient use of the display area. Compared with group display, this method can directly display the detailed information of a single data when the display area is sufficient, reducing the operation steps for users to obtain detailed information; compared with single data display, this method can display richer information in a limited display area recommended data to facilitate users to obtain more information.

参照图4,示出了本发明实施例所述的一种推荐数据加载装置的结构框图,该装置包括:Referring to Fig. 4, it shows a structural block diagram of a recommended data loading device according to an embodiment of the present invention, the device includes:

触发模块401,用于访问页面并触发当前网页的导航完成事件。The triggering module 401 is used for accessing a page and triggering a navigation completion event of the current web page.

检测模块402,用于响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束。The detection module 402 is configured to detect whether the rendering of the page is finished according to a preset frequency in response to the navigation completion event.

如图5所示,所述检测模块402包括:As shown in Figure 5, the detection module 402 includes:

第二获取子模块501,用于获取当前网页对应的文档元素的主体对象;The second obtaining sub-module 501 is used to obtain the subject object of the document element corresponding to the current webpage;

检测子模块502,用于按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;The detection sub-module 502 is configured to detect whether the scroll bar of the subject object can be scrolled in a preset direction according to the preset frequency;

判断子模块503,用于当所述检测子模块的检测结果为是时,判断所述页面的渲染结束。The judging submodule 503 is configured to judge that the rendering of the page ends when the detection result of the detection submodule is yes.

获取模块403,用于当检测模块的检测结果为是时,发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据。The obtaining module 403 is configured to send request information for the current webpage when the detection result of the detection module is yes, and obtain corresponding recommendation data from the server according to the request information.

参照图6,示出了所述获取模块的结构框图。Referring to FIG. 6 , it shows a structural block diagram of the acquiring module.

(1)所述请求信息包括当前网页的统一资源定位符,(1) The request information includes the Uniform Resource Locator of the current web page,

所述获取模块403包括:The acquisition module 403 includes:

第一匹配子模块601,用于将当前网页的统一资源定位符与预存的统一资源定位符进行匹配;The first matching submodule 601 is configured to match the URL of the current web page with the pre-stored URL;

第一确定子模块602,用于将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。The first determining sub-module 602 is configured to determine the webpage data corresponding to the matched uniform resource locator as corresponding recommendation data.

(2)所述请求信息包括当前网页的网页标题,(2) the request information includes the webpage title of the current webpage,

所述获取模块403还包括:The acquisition module 403 also includes:

第二匹配子模块603,用于将当前网页的网页标题与预存的网页标题进行匹配;The second matching submodule 603 is used to match the webpage title of the current webpage with the pre-stored webpage title;

第二确定子模块604,用于将所匹配的网页标题对应的网页数据确定为对应的推荐数据。The second determination sub-module 604 is configured to determine the webpage data corresponding to the matched webpage title as the corresponding recommendation data.

(3)所述请求信息包括在当前网页状态下用户的访问行为信息,(3) The request information includes the user's access behavior information in the current web page state,

所述用户的访问行为信息通过以下模块获得:The user's access behavior information is obtained through the following modules:

统计模块404,用于统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型;Statistical module 404, used for counting the historical browsing URLs of users, and counting the types of webpages that users visit webpages in the current webpage state according to the historical browsing URLs;

判定模块405,用于若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。Judging module 405, used to determine the user's access behavior information as browsing this type of webpage if the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, and The webpage type is the type of webpage that the user pays attention to.

所述获取模块403还包括:The acquisition module 403 also includes:

第三匹配子模块605,用于将所述用户关注的网页类型与预存的网页类型进行匹配;The third matching submodule 605 is configured to match the type of webpage concerned by the user with the type of pre-stored webpage;

第三确定子模块606,用于将所匹配的网页类型对应的网页数据确定为对应的推荐数据。The third determination sub-module 606 is configured to determine the webpage data corresponding to the matched webpage type as the corresponding recommendation data.

需要说明的是,上述第一匹配子模块和第一确定子模块、第二匹配子模块和第二确定子模块以及第三匹配子模块和第三确定子模块可以同时存在,当请求信息包括不同的内容时,调用相应的子模块进行处理。但本领域技术人员应当明了,所述数据推荐装置也可以仅包括上述子模块中的一种组合或几种组合,其它的情况采用与已有子模块类似的其它适当方式处理即可。It should be noted that the first matching submodule and the first determining submodule, the second matching submodule and the second determining submodule, and the third matching submodule and the third determining submodule may exist at the same time. When the request information includes different When the content is displayed, the corresponding sub-module is called for processing. However, those skilled in the art should understand that the data recommending device may only include one or several combinations of the above-mentioned sub-modules, and other cases may be handled in other appropriate ways similar to existing sub-modules.

创建模块406,用于基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示。The creating module 406 is configured to create a recommended window based on the current browser window, and the recommended window is superimposed and displayed with the window corresponding to the current webpage.

如图7所示,所述创建模块406包括:As shown in Figure 7, the creation module 406 includes:

第一获取子模块701,用于获取所述当前浏览器窗口的放置窗口;The first obtaining submodule 701 is used to obtain the placement window of the current browser window;

创建子模块702,用于以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。The creation sub-module 702 is configured to use the placement window as a parent window to create a recommendation window, and the recommendation window is a pop-up window.

优选的,所述装置还包括:Preferably, the device also includes:

绑定模块407,用于在创建模块创建推荐窗口之后,绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。The binding module 407 is used to bind the attributes of the recommended window and the attributes of the current browser window to synchronize after the creation module creates the recommended window, and the attributes include window size, position, and display and hiding of the window .

显示模块408,用于在所述推荐窗口中显示所述获取的推荐数据。A display module 408, configured to display the acquired recommendation data in the recommendation window.

如图8所示,所述显示模块408包括:As shown in FIG. 8, the display module 408 includes:

分组子模块801,用于对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据;The grouping sub-module 801 is used to group the recommended data, sort the recommended data in the group and each group respectively, and summarize the corresponding group information, and the group information is the first piece of recommended data in the group ;

计算子模块802,用于计算显示区域的数目;Calculation sub-module 802, used to calculate the number of display areas;

调整显示子模块803,用于依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。The adjusting display submodule 803 is configured to adjust the grouping according to the number of the display area, and display the adjusted recommendation data in the display area.

其中,所述分组子模块801包括:Wherein, the grouping submodule 801 includes:

统计单元8011,用于统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;The statistics unit 8011 is used to count the categories of the recommended data, and assign the recommended data of the same category to the same group;

或者,or,

提取单元8012,用于提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。The extracting unit 8012 is configured to extract keywords in the recommendation data, and assign the recommendation data including the same keywords into the same group.

所述调整显示子模块803包括:The adjustment display submodule 803 includes:

拆分单元8031,用于当所述显示区域的数目大于分组数目时,从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据;A splitting unit 8031, configured to split the recommended data in the current group into multiple single recommended data starting from the first group when the number of display areas is greater than the number of groups;

判断单元8032,用于判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系;A judging unit 8032, configured to judge the relationship between the sum of the number of the single recommendation data and the number of undivided groups and the number of the display area;

第一显示单元8033,用于依据判断结果将调整后的推荐数据显示在所述显示区域中。The first display unit 8033 is configured to display the adjusted recommendation data in the display area according to the judgment result.

如图9所示,所述第一显示单元8033包括:As shown in Figure 9, the first display unit 8033 includes:

第一显示子单元901,用于当所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目时,将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The first display subunit 901 is configured to combine the plurality of single recommendation data and the undivided group numbers when the sum of the number of single recommendation data and the number of undivided groups is equal to the number of display areas. The group information corresponding to the group is displayed in the display area.

计算子单元902,用于当所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目时,计算所述总和与所述显示区域的数目的差值;A calculating subunit 902, configured to calculate a difference between the sum and the number of display areas when the sum of the number of single recommended data and the number of undivided groups is greater than the number of display areas;

删除子单元903,用于从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;The deletion subunit 903 is used to delete the single recommendation data whose number is equal to the difference in the last single recommendation data sequentially starting from the last single recommendation data;

第二显示子单元904,用于将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The second display subunit 904 is configured to display in the display area the group information corresponding to the remaining single recommendation data and the undivided group.

第三显示子单元905,用于当所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目时,将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The third display subunit 905 is used for splitting the recommendation data in the next group into multiple single recommendations when the sum of the number of the single recommendation data and the number of unsplit groups is less than the number of the display area data, and make adjustments, and display the adjusted recommended data in the display area.

所述调整显示子模块803还包括:The adjustment display submodule 803 also includes:

计算单元8034,用于当所述显示区域的数目小于分组数目时,用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;A calculation unit 8034, configured to subtract the number of display areas from the number of groups to calculate the number of groups to be deleted when the number of display areas is less than the number of groups;

删除单元8035,用于从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;Deleting unit 8035, for starting from the last group, delete the groups whose number in the end group is equal to the number of groups to be deleted in sequence;

第二显示单元8036,用于将剩余分组对应的组信息显示在所述显示区域中。The second display unit 8036 is configured to display group information corresponding to the remaining groups in the display area.

首先,本发明实施例通过访问页面并触发当前网页的导航完成事件,并响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束,当检测到页面渲染结束后,开始加载推荐数据,通过对推荐数据加载时机的判断,提高了推荐数据的加载速度,提升了用户体验。First, the embodiment of the present invention visits the page and triggers the navigation completion event of the current web page, and in response to the navigation completion event, detects whether the rendering of the page is completed according to the preset frequency, and starts loading when it is detected that the rendering of the page is complete The recommended data, by judging the loading timing of the recommended data, improves the loading speed of the recommended data and improves the user experience.

其次,本发明实施例采用独立的windows窗口实现数据推荐,通过基于当前浏览器窗口创建推荐窗口,将推荐数据显示在所述推荐窗口中。其数据推荐的实现不再依赖于用户访问的当前网页或网站,避免了与当前网页的冲突与相互影响,并且还可以显示其他网页或网站对应的推荐数据,从而实现多个网页或网站之间的互通,提升了用户浏览网页的用户体验。Secondly, in the embodiment of the present invention, an independent windows window is used to implement data recommendation, and the recommendation data is displayed in the recommendation window by creating a recommendation window based on the current browser window. The implementation of its data recommendation is no longer dependent on the current webpage or website visited by the user, avoiding conflicts and mutual influence with the current webpage, and can also display the recommended data corresponding to other webpages or websites, thereby realizing multiple webpages or websites. Interoperability improves the user experience of users browsing the web.

最后,本发明实施例在推荐数据显示时,摒弃了现有只采用单一数据显示或者只采用分组显示的方法,采用动态的自适应的推荐数据展现方式,最高效的利用显示区域。相对于分组显示,本方式可以在显示区域足够的情况下直接展现单个数据细节信息,减少了用户获取详细信息的操作环节;相对于单一数据显示,本方式可以在有限的显示区域展现更为丰富的推荐数据,方便用户获取更多的信息。Finally, the embodiment of the present invention abandons the existing method of only using single data display or group display when displaying recommended data, and adopts a dynamic and adaptive recommended data display method to make the most efficient use of the display area. Compared with group display, this method can directly display the detailed information of a single data when the display area is sufficient, reducing the operation steps for users to obtain detailed information; compared with single data display, this method can display richer information in a limited display area recommended data to facilitate users to obtain more information.

对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本发明实施例可以实施在任何支持图形处理、互联网内容撷取和渲染的装置(或多个装置)上。这些装置包括但不限于个人计算机、集群服务器、移动电话、工作站、嵌入式系统、游戏机、电视、机顶盒,或任何其它支持计算机图形和内容显示的计算装置。这些装置可以包括但不限于拥有执行和储存指令的一个或多个处理器和存储器的装置。这些装置可以包括软件、固件和硬件。软件可以包括一个或多个应用程序和操作系统。硬件可以包括但不限于处理器、存储器及显示器。Embodiments of the present invention can be implemented on any device (or devices) that supports graphics processing, Internet content retrieval and rendering. These devices include, but are not limited to, personal computers, cluster servers, mobile phones, workstations, embedded systems, game consoles, televisions, set-top boxes, or any other computing device that supports computer graphics and content display. These means may include, but are not limited to, means having one or more processors and memory for executing and storing instructions. These means may include software, firmware and hardware. Software may include one or more application programs and operating systems. Hardware may include, but is not limited to, processors, memory, and displays.

本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上对本发明所提供的一种基于浏览器的推荐数据加载方法和装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A browser-based recommended data loading method and device provided by the present invention has been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as a limitation of the invention.

Claims (30)

1.一种基于浏览器的推荐数据加载方法,其特征在于,包括:1. A browser-based recommended data loading method, characterized in that, comprising: 访问页面并触发当前网页的导航完成事件;Visit the page and trigger the navigation completion event of the current web page; 响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束;In response to the navigation completion event, detect whether the rendering of the page ends according to a preset frequency; 若是,则发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据;If so, send request information for the current web page, and obtain corresponding recommendation data from the server according to the request information; 基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示;Create a recommended window based on the current browser window, and the recommended window and the window corresponding to the current webpage are superimposed and displayed; 在所述推荐窗口中显示所述获取的推荐数据。The acquired recommendation data is displayed in the recommendation window. 2.根据权利要求1所述的方法,其特征在于,所述基于当前浏览器窗口创建推荐窗口的步骤包括:2. The method according to claim 1, wherein the step of creating a recommended window based on the current browser window comprises: 获取所述当前浏览器窗口的放置窗口;Obtain the placement window of the current browser window; 以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。A recommendation window is created with the placement window as a parent window, and the recommendation window is a pop-up window. 3.根据权利要求1所述的方法,其特征在于,所述请求信息包括当前网页的统一资源定位符,3. The method according to claim 1, wherein the request information includes the Uniform Resource Locator of the current web page, 所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:The step of obtaining corresponding recommendation data from the server according to the request information includes: 将当前网页的统一资源定位符与预存的统一资源定位符进行匹配;Match the Uniform Resource Locator of the current web page with the pre-stored Uniform Resource Locator; 将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched uniform resource locator is determined as the corresponding recommendation data. 4.根据权利要求1所述的方法,其特征在于,所述请求信息包括当前网页的网页标题,4. The method according to claim 1, wherein the request information includes the webpage title of the current webpage, 所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:The step of obtaining corresponding recommendation data from the server according to the request information includes: 将当前网页的网页标题与预存的网页标题进行匹配;Match the webpage title of the current webpage with the pre-stored webpage title; 将所匹配的网页标题对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched webpage title is determined as the corresponding recommendation data. 5.根据权利要求1所述的方法,其特征在于,所述请求信息包括在当前网页状态下用户的访问行为信息,所述用户的访问行为信息通过以下步骤获得:5. The method according to claim 1, wherein the request information includes the user's access behavior information in the current web page state, and the user's access behavior information is obtained through the following steps: 统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型;Statistical user's historical browsing website, according to the historical browsing website statistics user's webpage type of visiting webpage under the current webpage state; 若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。If the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, the user's access behavior information is determined as browsing this type of webpage, and this type of webpage is regarded as the user's attention Web page type. 6.根据权利要求5所述的方法,其特征在于,所述依据所述请求信息从服务器获取对应的推荐数据的步骤包括:6. The method according to claim 5, wherein the step of obtaining the corresponding recommendation data from the server according to the request information comprises: 将所述用户关注的网页类型与预存的网页类型进行匹配;matching the types of webpages concerned by the user with pre-stored webpage types; 将所匹配的网页类型对应的网页数据确定为对应的推荐数据。The webpage data corresponding to the matched webpage type is determined as the corresponding recommendation data. 7.根据权利要求1所述的方法,其特征在于,在创建推荐窗口之后,还包括以下步骤:7. The method according to claim 1, further comprising the steps of: 绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。Binding the attributes of the recommended window and the attributes of the current browser window to make them synchronized, the attributes include window size, position, and window display and hiding. 8.根据权利要求1所述的方法,其特征在于,所述在所述推荐窗口中显示所述获取的推荐数据的步骤包括:8. The method according to claim 1, wherein the step of displaying the acquired recommendation data in the recommendation window comprises: 对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据;Grouping the recommended data, respectively sorting the recommended data in the group and each group, and summarizing the corresponding group information, the group information being the first piece of recommended data in the group; 计算显示区域的数目;Calculate the number of display areas; 依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。The grouping is adjusted according to the number of the display area, and the adjusted recommendation data is displayed in the display area. 9.根据权利要求8所述的方法,其特征在于,所述对推荐数据进行分组包括:9. The method according to claim 8, wherein said grouping the recommended data comprises: 统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;Count the categories of recommended data, and assign recommended data of the same category to the same group; 或者,or, 提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。Keywords in the recommendation data are extracted, and the recommendation data including the same keyword are assigned to the same group. 10.根据权利要求8所述的方法,其特征在于,所述显示区域的数目大于分组数目,10. The method according to claim 8, wherein the number of the display areas is greater than the number of groups, 则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes: 从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据;Starting from the first group, split the recommendation data in the current group into multiple single recommendation data; 判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系;judging the relationship between the sum of the number of the single recommended data and the number of unsplit groups and the number of the display area; 依据判断结果将调整后的推荐数据显示在所述显示区域中。The adjusted recommendation data is displayed in the display area according to the judgment result. 11.根据权利要求10所述的方法,其特征在于,所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目,11. The method according to claim 10, wherein the sum of the number of the single recommended data and the number of undivided groups is equal to the number of the display area, 则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes: 将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the plurality of single recommendation data and the undivided group is displayed in the display area. 12.根据权利要求10所述的方法,其特征在于,所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目,12. The method according to claim 10, wherein the sum of the number of the single recommended data and the number of undivided groups is greater than the number of the display areas, 则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes: 计算所述总和与所述显示区域的数目的差值;calculating the difference between the sum and the number of display areas; 从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;Starting from the last single recommendation data, delete the single recommendation data whose number is equal to the difference in the last single recommendation data; 将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining single recommendation data and the undivided group is displayed in the display area. 13.根据权利要求10所述的方法,其特征在于,所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目,13. The method according to claim 10, wherein the sum of the number of the single recommendation data and the number of undivided groups is less than the number of the display areas, 则依据判断结果将调整后的推荐数据显示在所述显示区域中包括:Then displaying the adjusted recommendation data in the display area according to the judgment result includes: 将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The recommendation data in the next group is split into multiple single recommendation data and adjusted, and the adjusted recommendation data is displayed in the display area. 14.根据权利要求8所述的方法,其特征在于,所述显示区域的数目小于分组数目,14. The method according to claim 8, wherein the number of the display areas is smaller than the number of groups, 则依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中的步骤包括:The grouping is then adjusted according to the number of the display areas, and the step of displaying the adjusted recommended data in the display areas includes: 用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;Subtracting the number of the display area from the number of groups to calculate the number of groups to be deleted; 从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;Starting from the last group, delete the groups in the end group whose number is equal to the number of groups to be deleted; 将剩余分组对应的组信息显示在所述显示区域中。The group information corresponding to the remaining groups is displayed in the display area. 15.根据权利要求1所述的方法,其特征在于,所述按照预设频率检测所述页面的渲染是否结束的步骤包括:获取当前网页对应的文档元素的主体对象;15. The method according to claim 1, wherein the step of detecting whether the rendering of the page ends according to a preset frequency comprises: acquiring the main object of the document element corresponding to the current webpage; 按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;Detecting whether the scroll bar of the subject object can scroll in a preset direction according to the preset frequency; 若是,则判断所述页面的渲染结束。If yes, it is judged that the rendering of the page is completed. 16.一种基于浏览器的推荐数据加载装置,其特征在于,包括:16. A browser-based recommended data loading device, characterized in that it comprises: 触发模块,用于访问页面并触发当前网页的导航完成事件;The trigger module is used to access the page and trigger the navigation completion event of the current web page; 检测模块,用于响应于所述导航完成事件,按照预设频率检测所述页面的渲染是否结束;A detection module, configured to detect whether the rendering of the page ends according to a preset frequency in response to the navigation completion event; 获取模块,用于当检测模块的检测结果为是时,发送针对当前网页的请求信息,并依据所述请求信息从服务器获取对应的推荐数据;An acquisition module, configured to send request information for the current web page when the detection result of the detection module is yes, and obtain corresponding recommendation data from the server according to the request information; 创建模块,用于基于当前浏览器窗口创建推荐窗口,所述推荐窗口与当前网页所对应的窗口叠加显示;Create module, be used for creating recommendation window based on current browser window, described recommendation window and the window corresponding to current web page are superimposedly displayed; 显示模块,用于在所述推荐窗口中显示所述获取的推荐数据。A display module, configured to display the acquired recommendation data in the recommendation window. 17.根据权利要求16所述的装置,其特征在于,所述创建模块包括:17. The device according to claim 16, wherein the creation module comprises: 第一获取子模块,用于获取所述当前浏览器窗口的放置窗口;The first obtaining submodule is used to obtain the placement window of the current browser window; 创建子模块,用于以所述放置窗口为父窗口,创建推荐窗口,所述推荐窗口为弹出类型窗口。A submodule is created, which is used to create a recommendation window with the placement window as a parent window, and the recommendation window is a pop-up window. 18.根据权利要求16所述的装置,其特征在于,所述请求信息包括当前网页的统一资源定位符,18. The device according to claim 16, wherein the request information includes the Uniform Resource Locator of the current web page, 所述获取模块包括:The acquisition module includes: 第一匹配子模块,用于将当前网页的统一资源定位符与预存的统一资源定位符进行匹配;The first matching submodule is used to match the URL of the current web page with the pre-stored URL; 第一确定子模块,用于将所匹配的统一资源定位符对应的网页数据确定为对应的推荐数据。The first determining submodule is configured to determine the webpage data corresponding to the matched uniform resource locator as corresponding recommendation data. 19.根据权利要求16所述的装置,其特征在于,所述请求信息包括当前网页的网页标题,19. The device according to claim 16, wherein the request information includes a web page title of the current web page, 所述获取模块包括:The acquisition module includes: 第二匹配子模块,用于将当前网页的网页标题与预存的网页标题进行匹配;The second matching submodule is used to match the webpage title of the current webpage with the pre-stored webpage title; 第二确定子模块,用于将所匹配的网页标题对应的网页数据确定为对应的推荐数据。The second determining submodule is used to determine the webpage data corresponding to the matched webpage title as the corresponding recommendation data. 20.根据权利要求16所述的装置,其特征在于,所述请求信息包括在当前网页状态下用户的访问行为信息,所述用户的访问行为信息通过以下模块获得:20. The device according to claim 16, wherein the request information includes the user's access behavior information in the current web page state, and the user's access behavior information is obtained through the following modules: 统计模块,用于统计用户的历史浏览网址,根据所述历史浏览网址统计用户在当前网页状态下访问网页的网页类型;Statistical module, used for counting historical browsing URLs of users, and counting webpage types of webpages accessed by users in the current webpage state according to the historical browsing URLs; 判定模块,用于若用户在当前网页状态下访问一种类型的网页的次数等于或大于预设次数,则将所述用户的访问行为信息判定为浏览该种类型的网页,并将该种网页类型作为用户关注的网页类型。A judging module, configured to judge the user's access behavior information as browsing this type of webpage if the number of times the user visits a type of webpage in the current webpage state is equal to or greater than the preset number of times, and Type as the type of web page that the user follows. 21.根据权利要求20所述的装置,其特征在于,所述获取模块包括:21. The device according to claim 20, wherein the acquiring module comprises: 第三匹配子模块,用于将所述用户关注的网页类型与预存的网页类型进行匹配;The third matching submodule is used to match the type of webpage concerned by the user with the type of webpage stored in advance; 第三确定子模块,用于将所匹配的网页类型对应的网页数据确定为对应的推荐数据。The third determining submodule is used to determine the webpage data corresponding to the matched webpage type as the corresponding recommendation data. 22.根据权利要求16所述的装置,其特征在于,还包括:22. The apparatus of claim 16, further comprising: 绑定模块,用于在创建模块创建推荐窗口之后,绑定所述推荐窗口的属性与所述当前浏览器窗口的属性使其同步,所述属性包括窗口大小、位置以及窗口的显示与隐藏。The binding module is used to bind the attributes of the recommended window and the attributes of the current browser window to synchronize after the creation module creates the recommended window, and the attributes include window size, position, and display and hiding of the window. 23.根据权利要求16所述的装置,其特征在于,所述显示模块包括:23. The device according to claim 16, wherein the display module comprises: 分组子模块,用于对推荐数据进行分组,分别对所述分组和每个分组中的推荐数据进行排序,并归纳出对应的组信息,所述组信息为分组中的第一条推荐数据;The grouping sub-module is used to group the recommended data, sort the recommended data in the group and each group respectively, and summarize the corresponding group information, and the group information is the first piece of recommended data in the group; 计算子模块,用于计算显示区域的数目;Calculation sub-module, used to calculate the number of display areas; 调整显示子模块,用于依据所述显示区域的数目调整所述分组,将调整后的推荐数据显示在所述显示区域中。The adjusting display submodule is used to adjust the grouping according to the number of the display areas, and display the adjusted recommendation data in the display areas. 24.根据权利要求23所述的装置,其特征在于,所述分组子模块包括:24. The device according to claim 23, wherein the grouping submodule comprises: 统计单元,用于统计推荐数据的类别,将类别相同的推荐数据分配到同一分组中;The statistical unit is used to count the categories of the recommended data, and assign the recommended data of the same category to the same group; 或者,or, 提取单元,用于提取推荐数据中的关键词,将包括相同关键词的推荐数据分配到同一分组中。The extracting unit is used to extract keywords in the recommendation data, and assign the recommendation data including the same keywords into the same group. 25.根据权利要求23所述的装置,其特征在于,所述调整显示子模块包括:25. The device according to claim 23, wherein the adjustment display submodule comprises: 拆分单元,用于当所述显示区域的数目大于分组数目时,从第一分组开始,将当前分组中的推荐数据拆分成多个单一推荐数据;A splitting unit, configured to split the recommended data in the current group into a plurality of single recommended data starting from the first group when the number of the display areas is greater than the number of groups; 判断单元,用于判断所述单一推荐数据的数目与未拆分的分组数目的总和与所述显示区域的数目的大小关系;A judging unit, configured to judge the relationship between the sum of the number of the single recommendation data and the number of undivided groups and the number of the display area; 第一显示单元,用于依据判断结果将调整后的推荐数据显示在所述显示区域中。The first display unit is configured to display the adjusted recommendation data in the display area according to the judgment result. 26.根据权利要求25所述的装置,其特征在于,所述第一显示单元包括:26. The device according to claim 25, wherein the first display unit comprises: 第一显示子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和等于所述显示区域的数目时,将所述多个单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。A first display subunit, configured to combine the plurality of single recommendation data with the unsplit group when the sum of the number of the single recommendation data and the number of unsplit groups is equal to the number of the display area The corresponding group information is displayed in the display area. 27.根据权利要求25所述的装置,其特征在于,所述第一显示单元包括:27. The device according to claim 25, wherein the first display unit comprises: 计算子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和大于所述显示区域的数目时,计算所述总和与所述显示区域的数目的差值;A calculation subunit, used to calculate the difference between the sum and the number of display areas when the sum of the number of single recommended data and the number of undivided groups is greater than the number of display areas; 删除子单元,用于从最后一个单一推荐数据开始,依次删除末尾单一推荐数据中数目等于所述差值的单一推荐数据;The deletion subunit is used to delete the single recommendation data whose number is equal to the difference in the last single recommendation data sequentially starting from the last single recommendation data; 第二显示子单元,用于将剩余的单一推荐数据与所述未拆分的分组对应的组信息显示在所述显示区域中。The second display subunit is configured to display the group information corresponding to the remaining single recommendation data and the undivided group in the display area. 28.根据权利要求25所述的装置,其特征在于,所述第一显示单元包括:28. The device according to claim 25, wherein the first display unit comprises: 第三显示子单元,用于当所述单一推荐数据的数目与未拆分的分组数目的总和小于所述显示区域的数目时,将下一个分组中的推荐数据拆分成多个单一推荐数据,并进行调整,将调整后的推荐数据显示在所述显示区域中。The third display subunit is used to split the recommended data in the next group into multiple single recommended data when the sum of the number of the single recommended data and the number of unsplit groups is less than the number of the display area , and adjust, and display the adjusted recommendation data in the display area. 29.根据权利要求23所述的装置,其特征在于,所述调整显示子模块包括:29. The device according to claim 23, wherein the adjustment display submodule comprises: 计算单元,用于当所述显示区域的数目小于分组数目时,用所述分组数目减去所述显示区域的数目,计算出待删除分组的数目;A calculation unit, used to calculate the number of groups to be deleted by subtracting the number of display areas from the number of groups when the number of display areas is less than the number of groups; 删除单元,用于从最后一个分组开始,依次删除末尾分组中数目等于待删除分组数目的分组;The deletion unit is used to sequentially delete the groupings whose number is equal to the number of groups to be deleted in the last grouping starting from the last grouping; 第二显示单元,用于将剩余分组对应的组信息显示在所述显示区域中。The second display unit is configured to display group information corresponding to the remaining groups in the display area. 30.根据权利要求16所述的装置,其特征在于,所述检测模块包括:30. The device according to claim 16, wherein the detection module comprises: 第二获取子模块,用于获取当前网页对应的文档元素的主体对象;The second obtaining sub-module is used to obtain the main object of the document element corresponding to the current web page; 检测子模块,用于按照所述预设频率对所述主体对象进行滚动条是否可向预设方向滚动的检测;The detection sub-module is used to detect whether the scroll bar of the subject object can be scrolled in a preset direction according to the preset frequency; 判断子模块,用于当所述检测子模块的检测结果为是时,判断所述页面的渲染结束。The judging submodule is configured to judge that the rendering of the page ends when the detection result of the detection submodule is yes.
CN201210210271.0A 2012-06-19 2012-06-19 A browser-based recommended data loading method and device Active - Reinstated CN102831148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210210271.0A CN102831148B (en) 2012-06-19 2012-06-19 A browser-based recommended data loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210210271.0A CN102831148B (en) 2012-06-19 2012-06-19 A browser-based recommended data loading method and device

Publications (2)

Publication Number Publication Date
CN102831148A true CN102831148A (en) 2012-12-19
CN102831148B CN102831148B (en) 2016-12-21

Family

ID=47334285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210210271.0A Active - Reinstated CN102831148B (en) 2012-06-19 2012-06-19 A browser-based recommended data loading method and device

Country Status (1)

Country Link
CN (1) CN102831148B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501281A (en) * 2013-09-30 2014-01-08 北京搜狗科技发展有限公司 Resource presetting method and device based on pre-reading
CN103761340A (en) * 2014-02-21 2014-04-30 联想(北京)有限公司 Message processing method and device
CN104462438A (en) * 2014-12-15 2015-03-25 北京搜狗科技发展有限公司 Information processing method and device
CN104598572A (en) * 2015-01-12 2015-05-06 百度在线网络技术(北京)有限公司 Content processing method and device
CN105893558A (en) * 2016-04-01 2016-08-24 腾讯科技(深圳)有限公司 Recommended data display method and system
CN106469153A (en) * 2015-08-14 2017-03-01 阿里巴巴集团控股有限公司 The method and apparatus carrying out information pushing in the page
CN106503059A (en) * 2016-09-27 2017-03-15 北京小米移动软件有限公司 Displayed page method for pushing and device
CN106570142A (en) * 2016-11-04 2017-04-19 北京神州绿盟信息安全科技股份有限公司 Data rendering method and device
CN108153565A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 The method and device of page info is provided
CN109582188A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 A kind of method, apparatus and relevant device for realizing the positioning of pop-up interior element
CN112001151A (en) * 2020-08-10 2020-11-27 青岛海尔科技有限公司 Method, device and equipment for document display
CN113076480A (en) * 2021-04-21 2021-07-06 百度在线网络技术(北京)有限公司 Page recommendation method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782915A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Method and device for subscribing to really simple syndication (RSS)
CN102054004A (en) * 2009-11-04 2011-05-11 清华大学 Webpage recommendation method and device adopting same
CN102073728A (en) * 2011-01-13 2011-05-25 百度在线网络技术(北京)有限公司 Method, device and equipment for determining web access requests

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782915A (en) * 2009-06-23 2010-07-21 北京搜狗科技发展有限公司 Method and device for subscribing to really simple syndication (RSS)
CN102054004A (en) * 2009-11-04 2011-05-11 清华大学 Webpage recommendation method and device adopting same
CN102073728A (en) * 2011-01-13 2011-05-25 百度在线网络技术(北京)有限公司 Method, device and equipment for determining web access requests

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501281B (en) * 2013-09-30 2017-04-05 北京搜狗科技发展有限公司 Resource pre-setting method and device based on pre-read
CN103501281A (en) * 2013-09-30 2014-01-08 北京搜狗科技发展有限公司 Resource presetting method and device based on pre-reading
CN103761340A (en) * 2014-02-21 2014-04-30 联想(北京)有限公司 Message processing method and device
CN104462438A (en) * 2014-12-15 2015-03-25 北京搜狗科技发展有限公司 Information processing method and device
CN104598572A (en) * 2015-01-12 2015-05-06 百度在线网络技术(北京)有限公司 Content processing method and device
CN106469153A (en) * 2015-08-14 2017-03-01 阿里巴巴集团控股有限公司 The method and apparatus carrying out information pushing in the page
CN105893558A (en) * 2016-04-01 2016-08-24 腾讯科技(深圳)有限公司 Recommended data display method and system
CN106503059B (en) * 2016-09-27 2019-07-23 北京小米移动软件有限公司 Displayed page method for pushing and device
CN106503059A (en) * 2016-09-27 2017-03-15 北京小米移动软件有限公司 Displayed page method for pushing and device
CN106570142A (en) * 2016-11-04 2017-04-19 北京神州绿盟信息安全科技股份有限公司 Data rendering method and device
CN106570142B (en) * 2016-11-04 2019-09-17 北京神州绿盟信息安全科技股份有限公司 A kind of data rendering method and device
CN108153565A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 The method and device of page info is provided
CN108153565B (en) * 2016-12-02 2021-07-20 阿里巴巴集团控股有限公司 Method and device for providing page information
CN109582188A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 A kind of method, apparatus and relevant device for realizing the positioning of pop-up interior element
CN109582188B (en) * 2017-09-29 2020-09-22 北京国双科技有限公司 Method, device and related equipment for realizing element positioning in popup window
CN112001151A (en) * 2020-08-10 2020-11-27 青岛海尔科技有限公司 Method, device and equipment for document display
CN112001151B (en) * 2020-08-10 2023-12-19 青岛海尔科技有限公司 Method, device and equipment for displaying document
CN113076480A (en) * 2021-04-21 2021-07-06 百度在线网络技术(北京)有限公司 Page recommendation method and device, electronic equipment and medium
CN113076480B (en) * 2021-04-21 2024-07-05 百度在线网络技术(北京)有限公司 Page recommendation method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN102831148B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN102831148B (en) A browser-based recommended data loading method and device
US11194882B1 (en) Behavior based optimization for content presentation
US11580175B2 (en) Transcoding and serving resources
US9977768B2 (en) System for clipping webpages by traversing a dom, and highlighting a minimum number of words
CN103034517B (en) Browser controls tool loads method and apparatus
US9342615B2 (en) Reducing redirects
CN102819555A (en) Method and device for loading recommended information in read mode of webpage
JP2015191655A (en) Method and apparatus for generating recommendation page
US9830304B1 (en) Systems and methods for integrating dynamic content into electronic media
CN102629273A (en) Advertising information pushing method based on browser, device and browser system
CN103279517A (en) A method for displaying webpage content
JP6480603B2 (en) Providing native application search results using web search results
CN105868290B (en) Method and device for displaying search results
CN104025083A (en) Method and apparatus for providing web pages
EP3249554A1 (en) Systems and methods for client-side dynamic information resource activation and deactivation
US9148475B1 (en) Navigation control for network clients
CN103838862B (en) Video searching method, device and terminal
CN103514282A (en) Method and device for displaying search results of videos
US9734134B1 (en) Conditional promotion through frame reordering
CN105278977A (en) Web parts loading method and apparatus
CN103279518A (en) Browser
US9607322B1 (en) Conditional promotion in content delivery
US20090327859A1 (en) Method and system for utilizing web document layout and presentation to improve user experience in web search
US9785969B1 (en) Conditional promotion in multi-stream content delivery
CN104182247A (en) Method and device for configuring navigation page of browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161221

Termination date: 20190619

CF01 Termination of patent right due to non-payment of annual fee
RR01 Reinstatement of patent right
RR01 Reinstatement of patent right

Former decision: termination of patent right due to unpaid annual fee

Former decision publication date: 20200623

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240105

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.