CN104731824A - Picture display method and picture display device - Google Patents

Picture display method and picture display device Download PDF

Info

Publication number
CN104731824A
CN104731824A CN 201310719924 CN201310719924A CN104731824A CN 104731824 A CN104731824 A CN 104731824A CN 201310719924 CN201310719924 CN 201310719924 CN 201310719924 A CN201310719924 A CN 201310719924A CN 104731824 A CN104731824 A CN 104731824A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
page
web page
image
node
url
Prior art date
Application number
CN 201310719924
Other languages
Chinese (zh)
Inventor
陶涛
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/30861Retrieval from the Internet, e.g. browsers
    • G06F17/30899Browsing optimisation
    • G06F17/30905Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The invention discloses a picture display method and a picture display device and belongs to the field of internet. The picture display method includes acquiring page data of a web page; stopping rendering and stopping displaying other page content except for pictures in the web page according to the page data of the web page; rendering and displaying the pictures in the web page. The picture display device comprises a first acquiring module, a first stopping module and a first display module. The picture display method and the picture display device have the advantages that other interference information except for the pictures is eliminated, and user's picture viewing efficiency is improved.

Description

—种显示图片的方法及装置 - Method and device types display picture

技术领域 FIELD

[0001] 本发明涉及互联网领域,特别涉及一种显示图片的方法及装置。 [0001] The present invention relates to the Internet, and more particularly relates to a method and apparatus for displaying images.

背景技术 Background technique

[0002] 随着互联网技术的飞速发展,有些网页中包含的信息量较大,这些网页中包含图片,还包括大量的除图片以外的信息,例如文字信息等。 [0002] With the rapid development of Internet technology, the amount of information the page contains some of the larger, these pages contain pictures, also includes a lot of information other than images, such as text information. 然而,目前由于移动终端的屏幕尺寸有限,导致移动终端需要分页显示这些信息较大的网页。 However, due to the limited screen size of a mobile terminal, cause the mobile terminal being paged larger information display pages.

[0003] 其中,需要说明的是:网页中包含的图片往往不是在第一页被移动终端显示出来,如此对于只想查看网页中图片的用户,则需要不断地翻页来查看图片,导致查看图片的效率较低。 [0003] in which, should be noted that: page contains pictures are often not on the first page is displayed mobile terminal up, so you just need to see the pictures on the page users, you need to constantly flip to see the picture, resulting in View less efficient image.

发明内容 SUMMARY

[0004] 为了提高用户查看图片的效率,本发明提供了一种显示图片的方法及装置。 [0004] In order to improve the efficiency of the user to view the picture, the present invention provides a method and apparatus for displaying images. 所述技术方案如下: The technical solutions are as follows:

[0005] 一种显示图片的方法,所述方法包括: [0005] A display of the image, the method comprising:

[0006] 获取网页的页面数据; [0006] acquiring web page data;

[0007] 根据所述网页的页面数据,阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容; [0007] The page data to the web page, and to prevent display blocking rendering the web page other pages except for the contents of the image;

[0008] 以及,渲染并显示所述网页中的图片。 [0008] and, render and display the web page images.

[0009] 一种显示图片的装置,所述装置包括: [0009] A picture display apparatus, the apparatus comprising:

[0010] 第一获取模块,用于获取网页的页面数据; [0010] a first acquiring module, for acquiring pages of page data;

[0011] 第一阻止模块,用于根据所述网页的页面数据,阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容; [0011] first blocking means for the web page according to the page data, and to prevent blocking render page content to display other images other than the web page;

[0012] 第一显示模块,用于渲染并显示所述网页中的图片。 [0012] The first display module, for rendering and displaying the web page image.

[0013] 在本发明实施例中,获取网页的页面数据;根据网页的页面数据,阻止渲染以及阻止显示网页中除图片以外的其他页面内容;以及,渲染并显示网页中的图片。 [0013] In an embodiment of the present invention, the page data acquired web page; page according to the page data, and to prevent display blocking render other content pages other than the page image; and a, rendering and displaying web page image. 不仅排除了除图片之外的其他干扰信息,而且提高了用户查看图片的效率。 Not only the exclusion of other interference information in addition to the picture, but also improve the efficiency of users to view pictures.

附图说明 BRIEF DESCRIPTION

[0014] 图1是本发明实施例1提供的一种显示图片的方法流程图; [0014] FIG. 1 is a method of Example 1 provides a flowchart illustrating image display of the present invention;

[0015] 图2是本发明实施例2提供的一种显示图片的方法流程图; [0015] FIG. 2 is a second method embodiment of the present invention to provide a flow chart of a display picture;

[0016] 图3是本发明实施例3提供的一种显示图片的装置结构示意图。 [0016] FIG. 3 is a schematic view of Example 3 provides image display apparatus embodiment of the structure of the present invention.

具体实施方式 detailed description

[0017] 为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。 [0017] To make the objectives, technical solutions, and advantages of the present invention will become apparent in conjunction with the accompanying drawings of the following embodiments of the present invention will be described in further detail.

[0018] 实施例1 [0018] Example 1

[0019] 参见图1,本发明实施例提供了一种显示图片的方法,包括: [0019] Referring to Figure 1, embodiments of the present invention provides a method of displaying images, comprising:

[0020] 步骤101:获取网页的页面数据; [0020] Step 101: acquiring the page data of the page;

[0021] 步骤102:根据该网页的页面数据,阻止渲染以及阻止显示该网页中除图片以外的其他页面内容; [0021] Step 102: according to the page data of the page, and preventing blocking rendering to display other pages except the contents of the page image;

[0022] 步骤103:渲染并显示该网页中的图片。 [0022] Step 103: the rendering and displaying web page image.

[0023] 优选地,根据该网页的页面数据,阻止渲染以及阻止显示该网页中除图片以外的其他页面内容,包括: [0023] Preferably, according to the page data of the page, and preventing blocking rendering to display other pages except the contents of the page image, comprising:

[0024] 根据该网页的页面数据,构建该网页的D0M(Document Object Model,文件对象模型)树; [0024] The page data to the page, the page is constructed D0M (Document Object Model, Document Object Model) tree;

[0025] 从该网页的DOM树中删除除图片节点以外的其他节点,以实现阻止渲染以及阻止显示该网页中除图片以外的其他页面内容。 [0025] To delete a node other than the node picture from the Web page's DOM tree, to achieve render prevent and deter other pages display the contents of the web page in addition to the picture.

[0026] 优选地,渲染并显示该网页中的图片,包括: [0026] Preferably, render and display the page in a picture, comprising:

[0027] 从该网页的DOM树包括的图片节点中获取描述该网页的页面主题的图片对应的图片节点; [0027] For a description of the image relating to the node page corresponding to the page image from the page image node included in the DOM tree;

[0028] 根据描述该网页的页面主题的图片对应的图片节点,获取描述该网页的页面主题的图片的图片数据; [0028] The subject matter described image node page corresponding to the page image, the acquired subject of the page description page picture image data;

[0029] 根据描述该网页的页面主题的图片的图片数据,渲染并显示描述该网页的页面主题的图片。 [0029] According to the picture data describes what the page is a picture of the page, rendering and display describes what the page is a picture of the page.

[0030] 优选地,从该网页的DOM树包括的图片节点中获取描述该网页的页面主题的图片对应的图片节点,包括: [0030] Preferably, the node acquires images of the subject matter described in the page corresponding to the page image from the image node of the DOM tree includes a page, comprising:

[0031] 从该网页的DOM树包括的图片节点中识别出该网页中的商标图片对应的图片节点、该网页中的表情图片对应的图片节点和该网页中的广告图片对应的图片节点; [0031] Image recognition node from the DOM tree of the web page images included in a node of the Web page corresponding to a logo image, that page emoticon images corresponding node and the ad images page image corresponding to the node;

[0032] 从该网页的DOM树包括的图片节点中去除识别出的图片节点; [0032] The node removed from the identified image node of the page images included in the DOM tree;

[0033] 并将保留的图片节点确定为描述该网页的页面主题的图片对应的图片节点。 [0033] Image node and reserved identified as describing the theme of the picture node page of the web page corresponding to the picture.

[0034] 进一步地,如果该网页为套图网页序列中的网页,该套图网页序列包括排列的多个网页,且该套图网页序列中的每个网页的页面主题都相同, [0034] Further, if the page is a set of pages in the sequence of FIG page, the set of sequences comprises a plurality of web pages FIG arranged, and the set of FIG page sequence page themes of each page are the same,

[0035] 获取该网页的页面数据之后,还包括: [0035] After acquiring the web page data, further comprising:

[0036] 获取该网页在该套图网页序列中的下一网页的页面数据; [0036] The acquired web page data for the next page in the set of FIG page sequence;

[0037] 根据下一网页的页面数据,阻止渲染以及阻止显示下一网页中除图片以外的其他页面内容; [0037] According to the next page of the page data, to stop rendering, and prevent the display of other pages in addition to the contents of the next page image;

[0038] 以及,渲染并显示下一网页中的图片。 [0038] as well, rendering and display the next page in the picture.

[0039] 优选地,获取该网页在该套图网页序列中的下一网页的页面数据,包括: [0039] Preferably, the acquired web page data for the next page in the set of FIG page sequence, comprising:

[0040] 从该网页的DOM树中获取锚节点,该锚节点包括预设关键词,该预设关键词为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”; [0040] Gets anchor nodes from the DOM tree of the Web page, the anchor node includes a preset keyword, the default keyword is "next", "next page", "next", "next sheet" "next map", "the map" or "AutoPlay";

[0041] 将该锚节点中存储的网页的URL (Universal Resource Locator,统一资源定位符)确定为该网页在该套图网页序列中的下一网页的URL ; [0041] The anchor node stored URL page (Universal Resource Locator, Uniform Resource Locator) URL for the page to determine the set of pages in the sequence of FIG next web page;

[0042] 根据下一网页的URL获取下一网页的页面数据。 [0042] to obtain data for the next page of the web page according to the URL of the next page.

[0043] 优选地,将该锚节点中存储的网页的URL确定为该网页在该套图网页序列中的下一网页的URL,包括: [0043] Preferably, the anchor node URL stored in URL for the web page is determined in the set of FIG next Web page in the sequence, comprising:

[0044] 将该网页的URL的第一部分和第二部分分别与该锚节点中存储的网页的URL的第一部分和第二部分进行比较,网页的URL的第一部分包括协议类型、服务器地址、端口号、路径和文件名,网页的URL的第二部分包括一个或多个查询参数; [0044] The first portion of the first part of the URL of the web page, respectively, the first portion and the second portion of the URL stored in the page anchor node and the second portion are compared, the URL page includes a protocol type, server address, port URL second part number, path and file name, a web page including one or more query parameters;

[0045] 如果该网页的URL的第一部分与该锚节点中存储的网页的URL的第一部分相同且该网页的URL的第二部分中存在至少一个查询参数与该锚节点中存储的网页的URL的第二部分中的查询参数相同,则将锚节点中存储的网页的URL确定为该网页在该套图网页序列中的下一网页的URL。 Identical and the second portion of the URL of the web page URL exists at least one query parameter and the anchor node stored in the page [0045] If the URL of the first portion of the first portion of the page with the URL anchor node stored in the page the same query parameters of the second portion, URL anchor page will be stored in the node determines that the URL for the web page in the set of FIG next page in the sequence.

[0046] 在本发明实施例中,获取网页的页面数据;根据网页的页面数据,阻止渲染以及阻止显示网页中除图片以外的其他页面内容;以及,渲染并显示网页中的图片。 [0046] In an embodiment of the present invention, the page data acquired web page; page according to the page data, and to prevent display blocking render other content pages other than the page image; and a, rendering and displaying web page image. 不仅排除了除图片之外的其他干扰信息,而且提高了用户查看图片的效率。 Not only the exclusion of other interference information in addition to the picture, but also improve the efficiency of users to view pictures.

[0047] 实施例2 [0047] Example 2

[0048] 在实施例1所示的方法基础之上,本发明实施例提供了一种显示图片的方法。 [0048] In the method based on the embodiment shown in Example 1, embodiments of the present invention provides a method of displaying images.

[0049] 其中,用户需要打开某个网页且想浏览该网页中包含的图片时,可以向终端提交命令,终端接收该命令,并通过本实施例提供的方法阻止渲染以及阻止显示该网页中除图片以外的其他页面内容;以及,渲染并显示该网页中的图片。 When [0049] wherein, the user needs to open a web browser and the like contained in the page image, may submit a command to the terminal, the terminal receives the command, and to prevent the rendering by the method provided in the present embodiment and in addition to prevent the display of the page other pages something other than pictures; and, rendering and display the page in the pictures. 参见图2,该方法包括: Referring to Figure 2, the method comprising:

[0050] 步骤201:获取用户需要打开的该网页的页面数据; [0050] Step 201: obtaining the page data of the page the user needs to open;

[0051] 具体地,终端获取用户需要打开的该网页的URL,发送获取该网页的页面数据的第一请求消息给网页服务器,第一请求消息携带该网页的URL;网页服务器接收第一请求消息,获取第一请求消息携带的该网页的URL,根据该网页的URL获取该网页的页面数据,生成包括该网页的页面数据的第一响应消息,发送第一响应消息给终端;终端接收第一响应消息,获取第一响应消息包括的该网页的页面数据。 [0051] Specifically, the terminal acquires the URL of the page the user needs to open, transmits an acquisition request message to the first web page data to the web server, the first request message carries the URL of the web page; web server receives a first request message obtaining a first request message carries the URL of the web page, the page data of the page acquired by the URL of the page, generating a first response message comprising the web page of the page data, and transmits a first response message to the terminal; receiving a first terminal response message, acquires page data message comprises a first response of the web page.

[0052] 进一步地,终端缓存该网页的页面数据。 [0052] Further, the terminal buffer page data page.

[0053] 步骤202:根据该网页的页面数据,构建该网页对应的DOM树; [0053] Step 202: according to the page data of the page, the page corresponding to the constructed DOM tree;

[0054] 其中,可以利用文档分析技术对该网页的页面数据进行排版,建立出该网页的DOM树。 [0054] where you can make use of document analysis techniques to the page layout data pages, build a DOM tree of the page. DOM树的每个节点中包括节点类型,节点类型可以包括图片节点和锚节点等。 Each node of the DOM tree includes the node type, node type and a node may comprise an anchor node other pictures. 图片节点是该网页包括的图片对应的节点,且图片节点中还包括图片在该网页中的位置、该图片的高度和宽度、该图片包括的像素点数目以及该图片的缓存路径等信息。 Image node is the node that includes the web page corresponding to the image, and the image node further comprising image position in the web page, the height and width of the image, the number of pixels comprising the image, and the image cache path information. 锚节点是该网页中包括的超链接对应的节点,锚节点中还包括该超链接对应的URL和该超链接的标题等信息,该超链接的标题可以为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”等。 Anchor nodes are the nodes corresponding to the hyperlink included in the web page, the anchor node also includes the URL of the hyperlink and title information corresponding to the hyperlink, the hyperlink may be heading for the "next", "next page "," next "," next sheet "," next map "," the figure below "or" auto-play "and so on.

[0055] 步骤203:从该网页的DOM树中删除除图片节点以外的其他节点; [0055] Step 203: Delete node other than the node from the image of the page DOM tree;

[0056] 具体地,终端遍历该网页的DOM树,获取该网页的DOM树中的每个节点的节点类型,根据获取的每个节点的节点类型,可以从该网页的DOM树中确定出图片节点,从该网页的DOM树中删除除图片节点以外的其他节点。 [0056] Specifically, the terminal traverse the DOM tree of the web page, the web page acquired in the DOM tree for each node of node type, node type of each node acquired images can be determined from the DOM tree of the page node, delete node other than the node picture from the web page's DOM tree.

[0057] 步骤204:从该网页的DOM树包括的图片节点中获取描述该网页的页面主题的图片对应的图片节点; [0057] Step 204: Get the description relating to image the node page corresponding to the page image from the page image node included in the DOM tree;

[0058] 具体地,终端从该网页的DOM树包括的图片节点中识别出该网页中的广告图片对应的图片节点、该网页中的商标图片对应的图片节点和该网页中的表情图片对应的图片节点,从该网页的DOM树包括的图片节点中去除识别出的图片节点,并将保留的图片节点确定为描述该网页的页面主题的图片对应的图片节点。 [0058] Specifically, the terminal identification from the image node of the page DOM tree included in the image node of the page ad images corresponding to the page mark image corresponding to image node and the page emoticon corresponding image node, the node is removed from the identified image node of the page images included in the DOM tree, and the nodes determined to be retained image Photo relating to the node page corresponding to the page image.

[0059] 其中,描述该网页的页面主题的图片的图片内容是该网页的页面主题的具体内容。 [0059] which describes what the page is a picture of the page is a picture of the specific content of the page content theme of the page. 例如,一个网页的页面主题为“一个杯子”,该网页中包括的该杯子的图片即为描述该网页的页面主题“一个杯子”的图片。 For example, a web page theme is "a cup", the page includes a picture of the cup is the theme of the page description page of "a cup" picture.

[0060] 其中,网页中的广告图片的展现形式一般可以分为两类,第一类广告图片为动态广告图片且浮于网页表层,第一类广告图片会随着当前显示的视图移动而移动,第一广告图片的位置为浮于网页表层;第二类广告图片为静态广告图片,且第二类广告图片在网页的预设广告区域内显示,所以第二类广告图片的位置为网页的预设广告区域内的位置。 [0060] in which to show the picture in the form of advertising pages can generally be divided into two categories, the first category is dynamic ad image ad image and floating on the surface of the page, first class advertising picture will move with a view to move the currently displayed the location of the first ad image is floating on the surface of the page; the second category is a static ad image ad image and the second image shows the type of advertisements within a preset area of ​​advertising pages, so the position of the second class ad image for a web page preset position in the advertising area.

[0061] 针对任一个图片节点,如果该图片节点包括的图片位置为浮于网页表层或者该图片节点包括的图片位置为该网页中的预设广告区域内的位置,则可以识别出该图片节点为广告图片对应的图片节点。 [0061] node for any of a picture, if the picture image location comprising a node to float to the surface or the image of the web page images included in the node for a predetermined position within the page advertisement region, the image can be recognized that the node advertising picture for the picture corresponding to the node.

[0062] 其中,商标图片可以为网页logo (标识)或商品logo等,一般情况下,商标图片的高度较小,且宽度较大,所以商标图片的宽度与高度之间的比值一般较大且都超过预设比值阈值。 [0062] wherein, the trademark logo picture may web (identifier) ​​or the product logo and the like, in general, a logo image height is small, and the width is large, the ratio between the width and height of the image are generally larger and Trademark exceed a predetermined threshold ratio.

[0063] 针对任一个图片节点,根据该图片节点包括的图片的宽度和高度,计算出宽度与高度之间的比值,如果计算的比值超过预设比值阈值,则可以识别出该图片节点为商标图片对应的图片节点。 [0063] node for any of a picture, according to the width and height of the picture includes a picture node, the calculated ratio between the width and height, if the calculated ratio exceeds a preset threshold ratio, then the image can be recognized as a trademark node pictures nodes corresponding picture.

[0064] 其中,预设比值阈值可以为2、2.5或3等值,本发明对此不加以限定。 [0064] The preset threshold ratio may be 3, 2.5 or equivalent, which is not according to the present invention is to be defined.

[0065] 其中,一般情况下,网页中的表情图片都较小,表情图片包括的像素点往往只有几十个像素点,且通常表情图片包括的像素点的数目不会超过预设数目阈值。 [0065] in which, under normal circumstances, a web page emoticons are small, including pixel emoticons are often only a few dozen pixels, and typically include emoticons number of pixels does not exceed a preset threshold number.

[0066] 针对任一个图片节点,对该图片节点包括的图片的像素点数目进行判断,如果判断出像素点数目不超过预设数目阈值,则可以识别出该图片节点为表情图片对应的图片节点。 Point number of pixels [0066] a picture for any node, the node comprising a picture image judgment, if it is determined that the number of pixels does not exceed a predetermined threshold number, then the node can recognize that the picture is a picture image corresponding expression node .

[0067] 其中,预设数目阈值可以为40、50或60等值,本发明对此不加以限定。 [0067] wherein the predetermined number threshold may be equivalent to 40, 50 or 60, which is not according to the present invention is to be defined.

[0068] 其中,终端从该网页的DOM树包括的图片节点中识别出该网页中的广告图片对应的图片节点、该网页中的商标图片对应的图片节点和该网页中的表情图片对应的图片节点的方法有很多种,上述列举的方法仅为其中的三种方法,不作为对本发明实施例的限制,对于其他方法,在此不加以详述。 [0068] wherein the terminal identification from the image node of the page DOM tree included in the image node of the page ad images corresponding to the page mark image corresponding to image node and the page emoticon corresponding picture there are many ways of nodes, the method recited above wherein the three methods only, not limiting embodiments of the present invention, other methods, which will not be described in detail.

[0069] 步骤205:根据描述该网页的页面主题的图片对应的图片节点,获取描述该网页的页面主题的图片的图片数据; [0069] Step 205: The subject matter of the page image described in the node web page image corresponding to the acquired page description page of the subject matter of the picture image data;

[0070] 具体地,终端从描述该网页的页面主题的图片对应的图片节点中获取描述该网页的页面主题的图片的缓存路径;根据获取的缓存路径,获取描述该网页的页面主题的图片的图片数据。 [0070] Specifically, the terminal acquires cache path describes what the page of the web page image from the image node describes what the page of the web page image corresponding; according to the buffer path acquired, for a description of the page relating to the web page image picture data.

[0071 ] 其中,该网页可能为套图网页序列中的网页,该套图网页序列中包括被排列的多个网页,该套图网页序列包括的多个网页的页面内容都是描述同一页面主题,任一个网页中包括超链接,该超链接对应的URL为该网页在该套图网页序列中的下一网页的URL或上一网页的URL,且该超链接的标题可以为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”等。 [0071] wherein, the page may be set in FIG page sequence page, the set of FIG page sequence comprising a plurality of pages are arranged in the page content plurality of pages of the sleeve of FIG page sequence comprises are described in the same page relating to any one web pages include hyperlinks, the hyperlink URL corresponding to the URL for the web page in the set of sequences in FIG next page or URL on a web page, and the title of the hyperlink may be "next", "lower page "," next "," next sheet "," next map "," the figure below "or" auto-play "and so on.

[0072] 例如,套图网页序列中包括被排列的第一网页、第二网页和第三网页,假设,第一网页、第二网页和第三网页的页面主题都为“沙发”,第一网页的页面内容为描述“A品牌沙发”的内容,第二网页的页面内容为描述“B品牌沙发”的内容和第三网页的页面内容为描述“C品牌沙发”的内容。 [0072] For example, FIG sets a first web page is included in the sequence alignment, the second and third web pages, it is assumed, web pages relating to the first, second and third web pages are "sofa", the first page page content description "a brand sofa," the contents of the second page is the page description page contents "B brand sofa" and third pages of description "C brand sofa," the.

[0073] 第一网页中包括第二网页的超链接,该超链接的URL为第二网页的URL以及标题为“下一页”; [0073] The first web page includes a hyperlink to the second page, the URL of the hyperlink to a web page URL and the second titled "Next";

[0074] 第二网页中包括第一网页的超链接和第三网页的超链接,第一网页的超链接的URL为第一网页的URL以及标题为“上一页”,第三网页的超链接的URL为第三网页的URL以及标题为“下一页”; [0074] The second page included in the first page of hyperlinks and third pages of hyperlinks, hyperlink URL first page is the first page of the URL, and titled "Previous" super-third of the page the URL link to the third page of the URL and the title "Next";

[0075] 第三网页中包括第二网页的超链接,该超链接的URL为第二网页的URL以及标题为“上一页”。 [0075] The third page includes a hyperlink second page, the URL of the hyperlink to a web page URL and the second titled "Back."

[0076] 其中,用户往往会浏览该套图网页序列中包括的每个网页中的图片,所以可以通过如下步骤206至208的步骤来获取该套图网页序列中包括的每个网页中的图片的图片数据。 [0076] wherein, users tend to browse each page of the set of FIG page included in the sequence of images, it is possible to acquire each page of the set of FIG page included in the sequence of images by the step 206 to 208 the steps of image data.

[0077] 步骤206:从该网页的DOM树中获取锚节点,该锚节点包括预设关键词,该预设关键词为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”等; [0077] Step 206: acquiring the Web page from the DOM tree anchor node, the anchor node comprises a preset keyword, the keyword default is "next", "next page", "next", " under sheet "," next map "," the map "or" auto-play "and the like;

[0078] 具体地,终端根据获取的每个节点的节点类型,可以从该网页的DOM树中确定出锚节点,从确定的锚节点中选择包含预设关键词的锚节点。 [0078] Specifically, the terminal according to the node type of each node of the acquired page may be determined from the DOM tree of the anchor node, the anchor node comprises selecting a predetermined keyword from the determined anchor node.

[0079] 步骤207:将获取的锚节点中存储的URL确定为该网页在该套图网页序列中的下一网页的URL ; [0079] Step 207: the anchor node acquired URL stored in URL for the page to determine the set of pages in the sequence of FIG next web page;

[0080] 其中,URL包括第一部分和第二部分,第一部分由协议类型、服务器地址、端口号、路径和文件名构成,第二部分由一个或多个查询参数构成。 [0080] wherein, URL including a first portion and a second portion, the first portion, the server address, port number, path and filename consists of a protocol type, a second part composed of one or more query parameters. 例如,对于URL “http://www.xxyyzz.com/aa/bb/index.php?c=l&d=l”,协议类型为“http://”,服务器地址为“www.xxyyzz.com”,路径为“aa/bb/”,文件名为“index, php”,以及查询参数为“c=l&d=l”。 For example, for a URL "http://www.xxyyzz.com/aa/bb/index.php?c=l&d=l", protocol type "http: //", the server address is "www.xxyyzz.com" , the path is "aa / bb /", a file called "index, php", and a query parameter "c = l & d = l".

[0081] 步骤207具体地可以为:对于任一个获取的锚节点,将该网页的URL的第一部分和第二部分分别与该锚节点中存储的网页的URL的第一部分和第二部分进行比较;如果该网页的URL的第一部分与该锚节点中存储的网页的URL的第一部分相同且该网页的URL的第二部分中存在至少一个查询参数与该锚节点中存储的网页的URL的第二部分中的查询参数相同,则将该锚节点中存储的网页的URL确定为该网页在该套图网页序列中的下一网页的URL。 [0081] Specifically, step 207 may be: either to the anchor node acquired the URL of the first portion and the second portion of the first web portion and the second portion of the URL are stored in the page anchor node compares ; URL of the first portion of the anchor node stored in the same page and pages query parameter and the at least one anchor node stored in the presence of a second portion of the URL of the web page URL if the URL of the first portion of the page the same two parts of the query parameters, URL anchor the web page is stored in the node determines that the URL for the web page in the set of FIG next page in the sequence.

[0082] 步骤208:根据下一网页的URL获取该网页在该套图网页序列中的下一网页的页面数据; [0082] Step 208: the page data acquired according to the URL of the page the next page in the set of FIG next page sequence page;

[0083] 具体地,终端发送获取下一网页的页面数据的第二请求消息给网页服务器,第二请求消息携带下一网页的URL ;网页服务器接收第二请求消息,获取第二请求消息携带的下一网页的URL,根据下一网页的URL获取下一网页的页面数据,生成包括下一网页的页面数据的第二响应消息,发送第二响应消息给终端;终端接收第二响应消息,获取第二响应消息包括的下一网页的页面数据。 [0083] Specifically, the terminal transmits the acquired page data for the next page request message to a second web server, a second request message carries the URL of a next page; web server receives a second request message to obtain a second request message carries the URL of the next page, next page according to the URL acquired page data for the next page, the page generating the second response message comprises data of the next page, and transmits a response message to the second terminal; a terminal receiving a second response message to obtain data of the second page response message includes the next page.

[0084] 进一步地,终端缓存获取的下一网页的页面数据。 [0084] Further, the page data of the next page of acquired terminal buffer.

[0085] 步骤209:根据获取的下一网页的页面数据,获取描述下一网页的页面主题的图片的图片数据; [0085] Step 209: According to the data of the next web page acquired, acquired the next page describes what the page is a picture picture data;

[0086] 其中,在步骤205中获取到描述网页的页面主题的图片对应的图片节点之后,还可以获取并缓存描述网页的页面主题的图片对应的图片节点在该网页的DOM树中的位置。 [0086] wherein, after the image node acquires page topic describes the web page in step 205 corresponding to the image, may also obtain and cache location describes what the page of a web page image corresponding image nodes in this page DOM tree.

[0087] 相应地,本步骤可以为:终端根据获取的下一网页的页面数据,构建下一网页对应的DOM树;根据缓存的描述网页的页面主题的图片对应的图片节点在DOM树中的位置,从下一网页对应的DOM中获取描述下一网页的页面主题的图片对应的图片节点。 [0087] Accordingly, the present step may be as follows: the terminal based on the page data of the next page of acquired pages corresponding to the next build DOM tree; the subject matter in accordance with the page description page cached image corresponding to the image of the nodes in the DOM tree position, obtained from the corresponding DOM in the next page describes what the page the next page of pictures of the corresponding picture node.

[0088] 由于套图网页序列中各网页的结构相同,构建出来的每个DOM树的结构也相同,因而可以根据缓存的位置,从下一网页的DOM树中获取描述下一网页的页面主题的图片对应的图片节点,提高了显示图片的效率。 [0088] Since the sets of the same configuration as FIG page sequence of each page, out of each structural building the DOM tree are the same, it is possible to obtain the next page of the subject matter described next Web page from the DOM tree according to the location of the cache pictures nodes corresponding to the image, improve the efficiency of the display image.

[0089] 步骤210:渲染以及显示获取的图片的图片数据。 [0089] Step 210: the rendering and displaying the acquired image of the image data.

[0090] 其中,在本发明实施例中,如果该套图网页序列中包括的图片较多且用户只想浏览排列在该套图网页序列中的前一部分图片,用户可以事先设置终端的获取图片的数目,以使终端只获取该套图网页序列中的前预设个数个图片,如此不仅不会间断用户查看图片,也避免在用户不需要查看太多图片的情况下过多获取了不必要的图片,节省了流量。 [0090] wherein, in the embodiment of the present invention, if the set of FIG page included in the sequence of pictures is high and the user wants to view are arranged in the set of FIG page sequence before the part of the picture, the user may set in advance the number of terminals acquired image , so that the terminal only get the first page of the set of pictures in the sequence of the preset number of pictures, so not only will not break the user to view images, but also to avoid the user does not need to see the picture of the situation too much unnecessary images acquired , saving flow.

[0091] 在本发明实施例中,获取该网页的页面数据;根据该网页的页面数据,阻止渲染且阻止显示该网页中除图片以外的其他页面内容以及该网页中包括的商标图片、广告图片和表情图片;获取描述该网页的页面主题的图片,渲染并显示获取的图片;以及,在该网页中,获取包括预设关键词的锚节点中的URL,根据该URL获取该网页在套图网页序列中的下一网页的页面数据,阻止渲染且阻止显示下一网页中除图片以外的其他页面内容以及下一网页中包括的商标图片、广告图片和表情图片;获取描述下一网页的页面主题的图片,渲染并显示获取的图片。 [0091] In an embodiment of the present invention, the obtaining page data of the page; according to the page data of the page, to prevent rendering and prevent the display of a logo image other page content of the web page other than the images and pages included in the ad images and emoticons; for a description of the subject of the web page of pictures, render and display pictures taken; and, on that page, the acquisition includes a preset keyword anchor node URL, the web page to obtain the set of pictures on the page according to the URL page data in the sequence of the next page, stop and prevent the display of the next web page rendering in addition to pictures and other content pages included in the next page trademark images, ad images and emoticons; the next page for a description of the page theme picture, render and display pictures taken. 本发明不仅排除了除图片之外的其他干扰信息,而且提高了用户查看图片的效率。 The invention not only eliminates the interference of other information in addition to the picture, but also improve the efficiency of users to view pictures.

[0092] 实施例3 [0092] Example 3

[0093] 参见图3,本发明实施例提供了一种显示图片的装置,包括: [0093] Referring to Figure 3, an embodiment of the present invention provides apparatus for displaying images, comprising:

[0094] 第一获取模块301,用于获取网页的页面数据; [0094] The first acquisition module 301, a page data acquisition for the page;

[0095] 第一阻止模块302,用于根据该网页的页面数据,阻止渲染以及阻止显示该网页中除图片以外的其他页面内容; [0095] The first stop module 302, the page data according to the page, and preventing blocking rendering to display other pages except the contents of the page image;

[0096] 第一显示模块303,用于渲染并显示该网页中的图片。 [0096] The first display module 303 for rendering and displaying the web page image.

[0097] 优选地,第一阻止模块302包括: [0097] Preferably, the first blocking module 302 comprises:

[0098] 构建单元,用于根据该网页的页面数据,构建该网页的DOM树; [0098] construction unit, according to the page data of the page, the page DOM tree constructed;

[0099] 删除单元,用于从该网页的DOM树中删除除图片节点以外的其他节点,以实现阻止渲染以及阻止显示该网页中除图片以外的其他页面内容。 [0099] deleting unit for deleting a node other than the node picture from the Web page's DOM tree, to achieve render prevent and deter other pages display the contents of the web page in addition to the picture.

[0100] 优选地,第一显示模块303包括: [0100] Preferably, the first display module 303 comprises:

[0101] 第一获取单元,用于从该网页的DOM树包括的图片节点中获取描述该网页的页面主题的图片对应的图片节点; [0101] a first obtaining unit, configured to obtain images relating to the node description page corresponding to the page image from the image node of the DOM tree includes a page of;

[0102] 第二获取单元,用于根据描述该网页的页面主题的图片对应的图片节点,获取描述该网页的页面主题的图片的图片数据; [0102] a second obtaining unit configured to image the subject of the node according to the description page corresponding to the page images, page for a description of the subject matter of the picture page of image data;

[0103] 显示单元,用于根据描述该网页的页面主题的图片的图片数据,渲染并显示描述该网页的页面主题的图片。 [0103] a display unit for picture data describes what the page is a picture of the page, the page rendering and display picture describing the theme of the page.

[0104] 优选地,第一获取单元包括: [0104] Preferably, the first acquiring unit comprises:

[0105] 识别子单元,用于从该网页的DOM树包括的图片节点中识别出该网页中的商标图片对应的图片节点、该网页中的表情图片对应的图片节点和该网页中的广告图片对应的图片节点; [0105] Image sub-node identification unit for identifying a node of the page image corresponding to the image of the mark image from the page node included in the DOM tree, the page image corresponding to the expression of the page and the ad images corresponding picture node;

[0106] 去除子单元,用于从该网页的DOM树包括的图片节点中去除识别出的图片节点; [0106] removing sub-unit, for the image node of the DOM tree includes a page of image removing identified node;

[0107] 第一确定子单元,用于将保留的图片节点确定为描述该网页的页面主题的图片对应的图片节点。 [0107] a first determining sub-unit, the nodes determined to retain the images of the page description page theme pictures for the corresponding image nodes.

[0108] 进一步地,如果该网页为套图网页序列中的网页,该套图网页序列包括排列的多个网页,且该套图网页序列中的每个网页的页面主题都相同, [0108] Further, if the page is a set of pages in the sequence of FIG page, the set of sequences comprises a plurality of web pages FIG arranged, and the set of FIG page sequence page themes of each page are the same,

[0109] 该装置还包括: [0109] The apparatus further comprises:

[0110] 第二获取模块,用于获取该网页在套图网页序列中的下一网页的页面数据; [0110] a second obtaining module, configured to obtain page data set of the page in FIG next page sequence page;

[0111] 第二阻止模块,用于根据下一网页的页面数据,阻止渲染以及阻止显示下一网页中除图片以外的其他页面内容; [0111] The second blocking module for the page data for the next page, and to prevent blocking render page content to display other images other than the next page;

[0112] 第二显示模块,用于渲染并显示下一网页中的图片。 [0112] The second display module configured to render and display the next page of image.

[0113] 优选地,第二获取模块包括: [0113] Preferably, the second acquiring module comprises:

[0114] 第三获取单元,用于从该网页的DOM树中获取锚节点,该锚节点包括预设关键词,该预设关键词为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”; [0114] The third acquisition unit configured to acquire the page from the anchor node in the DOM tree, the anchor node comprises a preset keyword, the keyword default is "next", "next page", "next Zhang, "" lower sheet "," next map "," the map "or" AutoPlay ";

[0115] 确定单元,用于将锚节点中存储的网页的URL确定为该网页在套图网页序列中的下一网页的URL ; [0115] determination unit, URL anchor node stored in the page determined as the URL for the web page of FIG sequence set a next page;

[0116] 第四获取单元,用于根据下一网页的URL获取下一网页的页面数据。 [0116] The fourth acquiring unit, configured to obtain page data for the next page according to the URL of the next page.

[0117] 优选地,确定单元包括: [0117] Preferably, the determining unit comprises:

[0118] 比较子单元,用于将该网页的URL的第一部分和第二部分分别与锚节点中存储的网页的URL的第一部分和第二部分进行比较,网页的URL的第一部分包括协议类型、服务器地址、端口号、路径和文件名,网页的URL的第二部分包括一个或多个查询参数; [0118] comparing sub-unit, the first portion of the URL for the page and comparing the first portion of the URL, the URL of the page, respectively the first portion of the page stored in the anchor node and the second portion comprises a second protocol type the server address, URL of the second part of the port number, the path and file name, a web page including one or more query parameters;

[0119] 第二确定子单元,用于如果该网页的URL的第一部分与锚节点中存储的网页的URL的第一部分相同且该网页的URL的第二部分中存在至少一个查询参数与锚节点中存储的网页的URL的第二部分中的查询参数相同,则将锚节点中存储的网页的URL确定为该网页在套图网页序列中的下一网页的URL。 [0119] The second determining sub-unit, if for the same page and the second portion of the first portion of the URL is the URL of the web page with the URL anchor node of the first portion of the page stored in the presence of at least one query parameter anchor node the same query parameters in the second portion of the URL stored in the page, URL anchor page will be stored in the node determines that the URL for the web page in FIG jacket of the next page in the sequence.

[0120] 在本发明实施例中,获取网页的页面数据;根据网页的页面数据,阻止渲染以及阻止显示网页中除图片以外的其他页面内容;以及,渲染并显示网页中的图片。 [0120] In an embodiment of the present invention, the page data acquired web page; page according to the page data, and to prevent display blocking render other content pages other than the page image; and a, rendering and displaying web page image. 不仅排除了除图片之外的其他干扰信息,而且提高了用户查看图片的效率。 Not only the exclusion of other interference information in addition to the picture, but also improve the efficiency of users to view pictures.

[0121] 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 [0121] Those of ordinary skill in the art may understand that the above embodiments all or part of the steps may be implemented by hardware, by a program instruction may be relevant hardware, the program may be stored in a computer-readable storage medium in the above-mentioned storage medium may be a read-only memory, magnetic or optical disk.

[0122] 以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0122] The foregoing is only preferred embodiments of the present invention, not intended to limit the present invention within the spirit and principle of the present invention, any modification, equivalent replacement, or improvement, it should be included in the present within the scope of the invention.

Claims (14)

  1. 1.一种显示图片的方法,其特征在于,所述方法包括: 获取网页的页面数据; 根据所述网页的页面数据,阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容; 以及,渲染并显示所述网页中的图片。 1. A method for displaying images, wherein the method comprises: obtaining page data page; the web page according to the page data, and to prevent blocking render other content display page other than the web page image; and rendering and displaying the web page in the picture.
  2. 2.如权利要求1所述的方法,其特征在于,所述根据所述网页的页面数据,阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容,包括: 根据所述网页的页面数据,构建所述网页的文件对象模型DOM树; 从所述网页的DOM树中删除除图片节点以外的其他节点,以实现阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容。 2. The method according to claim 1, wherein said data page according to the web page, rendering, and to prevent display block other page content other than the web page images, comprising: the page of the page data, build the web page document object model DOM tree; delete a node other than the node pictures from the web page DOM tree in order to achieve prevent and block other page content rendering displaying the web page in addition to the picture.
  3. 3.如权利要求1所述的方法,其特征在于,所述渲染并显示所述网页中的图片,包括: 从所述网页的DOM树包括的图片节点中获取描述所述网页的页面主题的图片对应的图片节点; 根据描述所述网页的页面主题的图片对应的图片节点,获取描述所述网页的页面主题的图片的图片数据; 根据描述所述网页的页面主题的图片的图片数据,渲染并显示描述所述网页的页面主题的图片。 3. The method according to claim 1, wherein said rendering and displaying the web page image, comprising: obtaining a page description relating to the web page from the web page image node included in the DOM tree image corresponding to the image nodes; node based on the image of the subject matter described web page images corresponding to the acquired image of the web page of the subject matter described picture data; based on the image of the subject matter described in the web page of picture data, rendering and describes what the page displays the web page of pictures.
  4. 4.如权利要求3所述的方法,其特征在于,所述从所述网页的DOM树包括的图片节点中获取描述所述网页的页面主题的图片对应的图片节点,包括: 从所述网页的DOM树包括的图片节点中识别出所述网页中的商标图片对应的图片节点、所述网页中的表情图片对应的图片节点和所述网页中的广告图片对应的图片节点;从所述网页的DOM树包括的图片节点中去除所述识别出的图片节点; 并将保留的图片节点确定为描述所述网页的页面主题的图片对应的图片节点。 4. The method according to claim 3, wherein said image acquiring subject matter described node page of the web page image corresponding to the image from the web page node included in the DOM tree, comprising: from the web image node included in the DOM tree node identified in the web page image corresponding to the image of the mark, the web page emoticon images corresponding node and the page image corresponding to the image advertisement node; from the web DOM tree node includes a picture in picture removing the identified node; reservation image and describes what the page determined as a node of the web page image corresponding to the image nodes.
  5. 5.如权利要求1所述的方法,其特征在于,如果所述网页为套图网页序列中的网页,所述套图网页序列包括排列的多个网页,且所述套图网页序列中的每个网页的页面主题都相同, 所述获取网页的页面数据之后,还包括: 获取所述网页在所述套图网页序列中的下一网页的页面数据; 根据所述下一网页的页面数据,阻止渲染以及阻止显示所述下一网页中除图片以外的其他页面内容; 以及,渲染并显示所述下一网页中的图片。 5. The method according to claim 1, wherein, if the page is a cover page in the sequence in FIG page, the web page of FIG sleeve comprises a plurality of pages arranged in series, and the sleeve of FIG pages every page sequence the theme of the page are the same, the web page data is acquired, the method further comprising: acquiring the web page data for the next page in the page sequence of FIG sleeve; based on the page data of the next page, and rendering prevent prevent the display of the other content of the page to the next page in addition to the picture; and, the next web page rendering and display of pictures.
  6. 6.如权利要求5所述的方法,其特征在于,所述获取所述网页在所述套图网页序列中的下一网页的页面数据,包括: 从所述网页的DOM树中获取锚节点,所述锚节点包括预设关键词,所述预设关键词为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”; 将所述锚节点中存储的网页的统一资源定位符URL确定为所述网页在所述套图网页序列中的下一网页的URL ; 根据所述下一网页的URL获取所述下一网页的页面数据。 6. The method according to claim 5, wherein said acquiring the web page data in the page sequence of the sleeve of FIG next page, comprising: acquiring from the anchor node of the DOM tree web, the anchor node includes a predetermined keyword, the keyword is preset "next", "next page", "next", "lower sheet", "next map", "the map" or "AutoPlay"; web page uniform resource stored in the anchor node locator (URL) is determined to be the next URL page in the web page of the sleeve of FIG sequence; obtained according to the URL of the next page the next page of the page data.
  7. 7.如权利要求6所述的方法,其特征在于,所述将所述锚节点中存储的网页的URL确定为所述网页在所述套图网页序列中的下一网页的URL,包括: 将所述网页的URL的第一部分和第二部分分别与所述锚节点中存储的网页的URL的第一部分和第二部分进行比较,所述网页的URL的第一部分包括协议类型、服务器地址、端口号、路径和文件名,所述网页的URL的第二部分包括一个或多个查询参数; 如果所述网页的URL的第一部分与所述锚节点中存储的网页的URL的第一部分相同且所述网页的URL的第二部分中存在至少一个查询参数与所述锚节点中存储的网页的URL的第二部分中的查询参数相同,则将所述锚节点中存储的网页的URL确定为所述网页在所述套图网页序列中的下一网页的URL。 7. The method according to claim 6, wherein the web page URL will be stored in the anchor node identified as the next URL page in the web page of the sleeve of FIG sequence, comprising: a first portion of the URL page URL and the first and second portions, respectively, a first portion of the URL stored in the node web page comparing the anchor and a second portion, said web page including protocol type, server address, port the second part of the URL of the number, the path and file name of the web page comprises one or more query parameters; if the first part of the URL of the same web page with the anchor node of the first portion of the web page of the URL and the stored same URL exists at least one query parameter stored in the anchor node a second page of the URL of the page of said second portion of the query parameters, URL anchor node will be stored in the page is determined by said URL web page in the set of pictures in the sequence of the next page.
  8. 8.—种显示图片的装置,其特征在于,所述装置包括: 第一获取模块,用于获取网页的页面数据; 第一阻止模块,用于根据所述网页的页面数据,阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容; 第一显示模块,用于渲染并显示所述网页中的图片。 8.- kinds of image display apparatus, wherein, said means comprising: a first acquiring module, for acquiring web page data; a first blocking means for the web page according to the page data, and to prevent blocking rendering displaying another page other than the web page content of the image; first display module, for rendering and displaying the web page image.
  9. 9.如权利要求8所述的装置,其特征在于,所述第一阻止模块包括: 构建单元,用于根据所述网页的页面数据,构建所述网页的文件对象模型DOM树; 删除单元,用于从所述网页的DOM树中删除除图片节点以外的其他节点,以实现阻止渲染以及阻止显示所述网页中除图片以外的其他页面内容。 9. The apparatus according to claim 8, wherein said first blocking module comprising: a construction unit, according to the web page data to construct the object model of the Web page document DOM tree; deleting unit, It is used to delete a node other than the node pictures from the web page DOM tree in order to achieve prevent and block other page content rendering displaying the web page in addition to the picture.
  10. 10.如权利要求8所述的装置,其特征在于,所述第一显示模块包括: 第一获取单元,用于从所述网页的DOM树包括的图片节点中获取描述所述网页的页面主题的图片对应的图片节点; 第二获取单元,用于根据描述所述网页的页面主题的图片对应的图片节点,获取描述所述网页的页面主题的图片的图片数据; 显示单元,用于根据描述所述网页的页面主题的图片的图片数据,渲染并显示描述所述网页的页面主题的图片。 10. The apparatus according to claim 8, wherein said first display module comprises: a first acquisition unit configured to acquire images from a web page describing the node of the DOM tree of the web page included in a page theme picture image corresponding to the node; a second acquisition unit configured to image the subject matter described node according to the page image corresponding to the web page, the page image acquisition of the subject matter described web page image data; a display unit for the description pictures of the web page theme picture data, rendering and display pictures page describing the theme of the web page.
  11. 11.如权利要求10所述的装置,其特征在于,所述第一获取单元包括: 识别子单元,用于从所述网页的DOM树包括的图片节点中识别出所述网页中的商标图片对应的图片节点、所述网页中的表情图片对应的图片节点和所述网页中的广告图片对应的图片节点; 去除子单元,用于从所述网页的DOM树包括的图片节点中去除所述识别出的图片节占.第一确定子单元,用于将保留的图片节点确定为描述所述网页的页面主题的图片对应的图片节点。 11. The apparatus according to claim 10, wherein the first obtaining unit comprises: an identification sub-unit for identifying the node from the web page images included in the DOM tree of the web page image trademark picture corresponding node, the page emoticon image node and the corresponding page image corresponding to the image advertisement node; removing sub-unit, for removing a node from the web page images included in the DOM tree identified image section representing the first determining sub-unit, configured to retain the image of the image node is a node determines the subject matter described in the page corresponding to the page images.
  12. 12.如权利要求8所述的装置,其特征在于,如果所述网页为套图网页序列中的网页,所述套图网页序列包括排列的多个网页,且所述套图网页序列中的每个网页的页面主题都相同, 所述装置还包括: 第二获取模块,用于获取所述网页在所述套图网页序列中的下一网页的页面数据;第二阻止模块,用于根据所述下一网页的页面数据,阻止渲染以及阻止显示所述下一网页中除图片以外的其他页面内容; 第二显示模块,用于渲染并显示所述下一网页中的图片。 12. The apparatus according to claim 8, wherein, if the page is a cover page in the sequence in FIG page, the web page of FIG sleeve comprises a plurality of pages arranged in series, and the sleeve of FIG pages every page sequence the theme of the page are the same, the apparatus further comprising: a second acquiring module, for acquiring the web page data in the page sequence jacket FIG next web page; a second blocking module for the next web page data, preventing rendering and displaying the content pages block other page other than a next image; a second display module, for rendering and displaying the next page of image.
  13. 13.如权利要求12所述的装置,其特征在于,所述第二获取模块包括: 第三获取单元,用于从所述网页的DOM树中获取锚节点,所述锚节点包括预设关键词,所述预设关键词为“下一页”、“下页”、“下一张”、“下张”、“下一图”、“下图”或“自动播放”; 确定单元,用于将所述锚节点中存储的网页的统一资源定位符URL确定为所述网页在所述套图网页序列中的下一网页的URL ; 第四获取单元,用于根据所述下一网页的URL获取所述下一网页的页面数据。 13. The apparatus of claim 12, wherein the second acquiring module comprises: a third acquisition unit configured to acquire from the anchor node of the DOM tree of the page, the anchor node includes a preset key word, the predetermined keyword is "next", "next page", "next", "lower sheet", "next map", "the map" or "AutoPlay"; determining means, the anchor node for stored page uniform resource locator (URL) is determined to be the URL of the web page in FIG sleeve next web page in the sequence; fourth acquiring unit, according to the next page get the page URL of the next page of data.
  14. 14.如权利要求13所述的装置,其特征在于,所述确定单元包括: 比较子单元,用于将所述网页的URL的第一部分和第二部分分别与所述锚节点中存储的网页的URL的第一部分和第二部分进行比较,所述网页的URL的第一部分包括协议类型、服务器地址、端口号、路径和文件名,所述网页的URL的第二部分包括一个或多个查询参数; 第二确定子单元,用于如果所述网页的URL的第一部分与所述锚节点中存储的网页的URL的第一部分相同且所述网页的URL的第二部分中存在至少一个查询参数与所述锚节点中存储的网页的URL的第二部分中的查询参数相同,则将所述锚节点中存储的网页的URL确定为所述网页在所述套图网页序列中的下一网页的URL。 14. The apparatus according to claim 13, wherein said determining unit comprises: a comparing subunit, the URL for the first portion and the second portion of the web page with the anchor node are stored comparing a first portion and a second portion, the first portion of the URL page includes a protocol type, server address, port number, the path and file name of the URL of the web page URL of the second portion comprises one or more queries parameters; and a second determining sub-unit, for at least one query parameter, if the same page and the second portion of the first portion of the URL is the URL of the web page URL with the first portion of the anchor node of the web page stored in the presence of the same query parameters to the anchor node of the page stored in the second portion of the URL, the page stored in anchor node then the URL of the web page is determined to be set in the next sequence of FIG web page URL.
CN 201310719924 2013-12-24 2013-12-24 Picture display method and picture display device CN104731824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310719924 CN104731824A (en) 2013-12-24 2013-12-24 Picture display method and picture display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310719924 CN104731824A (en) 2013-12-24 2013-12-24 Picture display method and picture display device

Publications (1)

Publication Number Publication Date
CN104731824A true true CN104731824A (en) 2015-06-24

Family

ID=53455721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310719924 CN104731824A (en) 2013-12-24 2013-12-24 Picture display method and picture display device

Country Status (1)

Country Link
CN (1) CN104731824A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037067B1 (en) * 2008-11-14 2011-10-11 United Services Automobile Association (Usaa) Systems and methods for tracking user activity at website
CN102567407A (en) * 2010-12-22 2012-07-11 北京北大方正电子有限公司 Method and system for collecting forum reply increment
CN102810110A (en) * 2012-05-07 2012-12-05 北京京东世纪贸易有限公司 Method and system for acquiring web text data
CN102819556A (en) * 2012-06-28 2012-12-12 优视科技有限公司 Method and device for viewing pictures
CN103092834A (en) * 2011-10-27 2013-05-08 腾讯科技(深圳)有限公司 Method and client-side device for browsing pictures of web pages
CN103425644A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Method and device for extracting pictures in webpage content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037067B1 (en) * 2008-11-14 2011-10-11 United Services Automobile Association (Usaa) Systems and methods for tracking user activity at website
CN102567407A (en) * 2010-12-22 2012-07-11 北京北大方正电子有限公司 Method and system for collecting forum reply increment
CN103092834A (en) * 2011-10-27 2013-05-08 腾讯科技(深圳)有限公司 Method and client-side device for browsing pictures of web pages
CN102810110A (en) * 2012-05-07 2012-12-05 北京京东世纪贸易有限公司 Method and system for acquiring web text data
CN103425644A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Method and device for extracting pictures in webpage content
CN102819556A (en) * 2012-06-28 2012-12-12 优视科技有限公司 Method and device for viewing pictures

Similar Documents

Publication Publication Date Title
US7945852B1 (en) Strategies for annotating digital maps
US20090049070A1 (en) Web-based social network badges
US20110191321A1 (en) Contextual display advertisements for a webpage
US20100123908A1 (en) Systems and methods for viewing and printing documents including animated content
US20070067493A1 (en) System and method for hosting images embedded in external websites
US20100313149A1 (en) Aggregating dynamic visual content
US20090307603A1 (en) Dynamic content delivery to network-enabled static
US20110235858A1 (en) Grouping Digital Media Items Based on Shared Features
US20090307571A1 (en) Image acquisition from dynamic content for delivery to network-enabled static display devices
US20100329642A1 (en) Dynamic Icons Associated with Remote Content
CN101706796A (en) Method and device for showing webpage resources
Boulos et al. Web GIS in practice VIII: HTML5 and the canvas element for interactive online mapping
CN101944104A (en) Evaluation method and equipment for importance of webpage sub-blocks
CN101977233A (en) Method and system for leading mobile terminal to browse webpage in reading mode
JP2004102803A (en) Bulletin board system and method for displaying information
CN102024028A (en) Method and equipment for distinctly displaying main contents of webpage on mobile terminal
CN102202173A (en) Photo automatically naming method and device thereof
CN1905701A (en) Method and system for issuing network message to mobile terminal apparatus
US20070162428A1 (en) Monetization of multimedia queries
CN102033917A (en) Webpage browsing method for mobile terminal and mobile terminal applying same
US20110191328A1 (en) System and method for extracting representative media content from an online document
US20130254231A1 (en) Gathering and contributing content across diverse sources
CN102930263A (en) Information processing method and device
US20160034437A1 (en) Mobile social content-creation application and integrated website
JP2008226202A (en) Information processor, information processing method and program

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination