CN102323939B - Method and device for determining background information of rearranged elements in page rearranging process - Google Patents

Method and device for determining background information of rearranged elements in page rearranging process Download PDF

Info

Publication number
CN102323939B
CN102323939B CN 201110256436 CN201110256436A CN102323939B CN 102323939 B CN102323939 B CN 102323939B CN 201110256436 CN201110256436 CN 201110256436 CN 201110256436 A CN201110256436 A CN 201110256436A CN 102323939 B CN102323939 B CN 102323939B
Authority
CN
China
Prior art keywords
reset
page
background information
ancestors
elements
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.)
Active
Application number
CN 201110256436
Other languages
Chinese (zh)
Other versions
CN102323939A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN 201110256436 priority Critical patent/CN102323939B/en
Publication of CN102323939A publication Critical patent/CN102323939A/en
Application granted granted Critical
Publication of CN102323939B publication Critical patent/CN102323939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention aims at providing a method and a device for determining background information of rearranged elements in a page rearranging process. The method comprises the following steps of: obtaining elements to be rearranged in a page to be rearranged by a network device; determining rearranged elements corresponding to the elements to be rearranged according to the page to be rearranged; obtaining parent elements of the elements to be rearranged according to the page to be rearranged; and determining the background information of the rearranged elements according to the background information corresponding to the elements to be rearranged in the parent elements and the background information of the elements to be rearranged. In comparison with the prior art, with the method and the device, the consistency of the background information of the rearranged elements to the background information of the elements to be rearranged in the page to be rearranged is ensured, simultaneously, calculated quantity for the background information of the rearranged elements is greatly reduced, and users can get better use experience while viewing web pages through a mobile device.

Description

The method and apparatus of the background information of element after determining in the page rearrangement process to reset
Technical field
The present invention relates to mobile internet technical field, relate in particular to a kind of technology for determine the background information of the rear element of rearrangement in page rearrangement process.
Background technology
At present, prior art for the user via mobile device, such as mobile phone, PDA etc., the access support of internet is also unfriendly.Main solution has two kinds, and a kind of is to provide the page of user's request access according to the mode identical with PC to mobile device, only the page is done flexible the processing according to the screen attribute of mobile device, i.e. full browsing pages; A kind of is layout and/or the composing that changes web page, and the full content of web page is listed as processing, i.e. simple browsing pages is as all listing demonstration vertical one.
Owing to be subject to the computing power of mobile device and the restriction of screen attribute, simple browsing pages need to be reset processing to a large amount of page elements in the web page, and when the page elements that needs to reset comprises background information, this problem more complex.In order to reduce calculated amount, or based on other considerations, existing simple browsing pages is for the page elements that needs in the web page to reset, often just in rearrangement process, filter simply its background information, these page elements are rearranged, so that finally offer in user's the simple browsing pages, after resetting in the form of expression of element and the former web page form of expression of respective element obviously different, thereby cause user's experience relatively poor.
Therefore, how a kind of technology of determining the background information of the rear element of rearrangement in page rearrangement process is provided, so that the user, can obtain the effect that represents with the similar element background information of corresponding web page in access during simple browsing pages, become one of present urgent problem.
Summary of the invention
The purpose of this invention is to provide a kind of method and apparatus for determine the background information of the rear element of rearrangement in page rearrangement process.
According to an aspect of the present invention, provide a kind of computer implemented method of determining the background information of the rear element of rearrangement in page rearrangement process, wherein, the method may further comprise the steps:
A obtains the element to be reset in the page to be reset;
B is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element;
C obtains father's element of element described to be reset according to the page described to be reset;
D is according to background information corresponding with element described to be reset in described father's element, and the background information of element described to be reset, and determines the background information of element after the described rearrangement.
According to another aspect of the present invention, also provide a kind of network equipment of determining the background information of the rear element of rearrangement in page rearrangement process, wherein, this network equipment comprises:
Element deriving means to be reset is for the element to be reset that obtains the page to be reset;
Element is determined device after resetting, and is used for according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element;
The superior node deriving means is used for according to the page described to be reset, and obtains father's element of element described to be reset;
Reset the background deriving means, be used for the background information corresponding with element described to be reset according to described father's element, and the background information of element described to be reset, determine the background information of element after the described rearrangement.
Compared with prior art, the present invention is in page rearrangement process, according to the background information of element to be reset in the page to be reset, determine the background information of this element after resetting the corresponding rearrangement of element, and owing to only need according to the background information corresponding with this element to be reset in father's element of element to be reset, and the background information of this element to be reset, the background information of element after determining to reset, the background information of element is consistent with the background information of element to be reset in the page to be reset after having guaranteed to a certain extent to reset, greatly reduced simultaneously the calculated amount to the background information of resetting rear element, and so that the user via browsing page by mobile equipment the time, obtains better experience.
Description of drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 illustrates the synoptic diagram that is used for the network equipment of the background information of element after page rearrangement process is determined to reset according to one aspect of the invention;
Fig. 2 illustrates the synoptic diagram that is used for the network equipment of the background information of element after page rearrangement process is determined to reset in accordance with a preferred embodiment of the present invention;
Fig. 3 illustrates the method flow diagram that is used for the background information of element after page rearrangement process is determined to reset according to a further aspect of the present invention;
Fig. 4 illustrates the method flow diagram that is used for the background information of element after page rearrangement process is determined to reset in accordance with a preferred embodiment of the present invention;
Fig. 5 illustrates the synoptic diagram that carries out the new page after resetting the page and rearrangement of page rearrangement according to the present invention.
Same or analogous Reference numeral represents same or analogous parts in the accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 is the equipment synoptic diagram according to one aspect of the invention, and a kind of network equipment of determining the background information of the rear element of rearrangement in page rearrangement process is shown.Wherein, the network equipment 1 comprises that element is determined device 12, superior node deriving means 13 and reset background deriving means 14 after resetting element deriving means 11, resetting.Particularly, element deriving means 11 to be reset obtains the element to be reset in the page to be reset; Element is determined device 12 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 13 obtains father's element of element described to be reset according to the page described to be reset; Reset background deriving means 14 according to background information corresponding with element described to be reset in described father's element, and the background information of element described to be reset, determine the background information of element after the described rearrangement.At this, the network equipment 1 includes but not limited to the various network services device, such as Website server, forum's server, blog server etc., and the intermediate server that communicates with the described webserver, wherein, described intermediate server includes but not limited to network host, single network server, a plurality of webserver collection or based on the set of computers of cloud computing, at this, cloud computing is a kind of of Distributed Calculation, a super virtual machine that is comprised of the loosely-coupled computing machine collection of a group.Those skilled in the art will be understood that the above-mentioned network equipment only for giving an example, and other network equipments existing or that may occur from now on also should be included in the protection domain of the present invention as applicable to the present invention, and are contained in this with way of reference.
Element deriving means 11 to be reset obtains the element to be reset in the page to be reset.At this, element described to be reset includes but not limited to any applicable to of the present invention, the page elements that positional information in simple browsing pages changes with respect to its positional information in full browsing pages, wherein, described simple browsing pages comprise the page elements of web page (or WWW page) reset after, the page that the layout that obtains changes, described full browsing pages comprises that the web website generates the page identical with the page of browsing by personal computer based on various HTML Developing tools.The page described to be reset comprises the full browsing pages that the network equipment 1 obtains by variety of way.The page elements of the page described to be reset comprises each node elements in the file structure of the page described to be reset; Described file structure includes but not limited to any applicable to of the present invention, treat according to various file structure models and to reset the file structure that the page is resolved the page to be reset of rear acquisition, play up tree-model (Render Tree) etc. such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset.Herein, reset and to refer to obtain processing mode and/or the processing procedure of corresponding simple browsing pages by to the rearranging and/or layout of page elements in the full browsing pages.
The mode that element deriving means 11 to be reset obtains element described to be reset includes but not limited to following mode:
1) obtain geological information in the page to be reset less than the page elements of predetermined value as candidate's element to be reset, if the geological information of father's element of a page elements is greater than described predetermined value in these candidates element to be reset, determine that then this page elements is element described to be reset, otherwise with this this page elements of father's element substitution as candidate's element to be reset; Repeating said process, until satisfy certain stop condition, is empty such as candidate's element to be reset.Wherein, described geological information includes but not limited to width information or the elevation information of page elements, described predetermined value can be preset by the network equipment 1 or user, or determine according to the statistics of the screen attribute of user's portable terminal, or determine according to the screen attribute of the corresponding current mobile terminal of the page to be reset.
2) obtain the page elements that geological information in the page to be reset surpasses described predetermined value, if the geological information of the daughter element of a page elements is less than described predetermined value in these page elements, then determine should (etc.) daughter element is element described to be reset, otherwise continue to obtain the Sun Yuansu of these page elements downwards, namely should (etc.) daughter element of daughter element, search downwards successively, until obtain geological information less than descendants's element of described predetermined value, should (etc.) descendants's element is element described to be reset.
Those skilled in the art will be understood that the above-mentioned mode of element to be reset of obtaining is only for giving an example; other existing or modes of obtaining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Element is determined device 12 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element.For example, as shown in Figure 5, the page on the left side is the page to be reset, page elements C, D, E are element to be reset, element determines that device 12 is according to Elements C to be reset, D, the E positional information in this page to be reset after resetting, determine wait resetting Elements C, D, the E positional information after rearrangement, thereby determine Elements C after resetting Elements C, the corresponding rearrangement of D, E ', D ', E '.
Superior node deriving means 13 obtains father's element of element described to be reset according to the page described to be reset.For example, superior node deriving means 13 is according to the file structure of the page to be reset, such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset play up tree-model (Render Tree) etc., obtain father's element of element to be reset in the page described to be reset.
Reset the background information corresponding with element described to be reset in father's element of background deriving means 14 according to element described to be reset, and the background information of element described to be reset, determine described after resetting the corresponding rearrangement of element the background information of element.For example, as shown in Figure 5, father's element of Elements C to be reset is B, reset background deriving means 14 according to Elements C to be reset shared background information in his father's element B, the i.e. background information corresponding with Elements C to be reset in this father's element B, and the background information of Elements C to be reset, the background information by background information corresponding with C in B stack C generates Elements C after resetting rearrangement corresponding to Elements C ' background information.
In a preferred embodiment of the network equipment 1 shown in Figure 1, element deriving means 11 to be reset obtains the element to be reset in the page to be reset; Element is determined device 12 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 13 obtains ancestors' element of element described to be reset according to the page described to be reset; Reset the background information corresponding with element described to be reset in each of the background deriving means 14 top-down described ancestors' elements that successively superpose, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement.
Wherein, superior node deriving means 13 obtains ancestors' element of element to be reset in the page described to be reset according to the file structure of the page to be reset.For example, superior node deriving means 13 is played up tree-model (Render Tree) according to the page to be reset, obtain one or more superior node elements that this plays up element to be reset in the tree-model (Render Tree), these superior node elements are ancestors' element of element to be reset.Those skilled in the art will be understood that the obtain manner of ancestors' element of element above-mentioned to be reset only is for example; the obtain manner of ancestors' element of other elements to be reset existing or that may occur from now on is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
The background information corresponding with element described to be reset in each of the rearrangement background deriving means 14 top-down described ancestors' elements that successively superpose, and the background information of element described to be reset, with obtain described after resetting the corresponding rearrangement of element the background information of element.For example, as shown in Figure 5, father's element of Elements C to be reset is B, grandfather's element is A, element is C ' after resetting the corresponding rearrangement of Elements C, reset that background deriving means 14 is top-down successively to obtain background information corresponding with Elements C to be reset in grandfather's elements A, the background information corresponding with Elements C to be reset in father's element B, and the background information of Elements C to be reset, and according to aforementioned obtain the order these background informations are superposeed, be about to the background information that the background information corresponding with Elements C to be reset is superimposed in grandfather's elements A and Elements C to be reset is corresponding in father's element B, background information that again will Elements C be reset is superimposed to the background information that the preceding paragraph stack obtains, with Elements C after obtaining to reset ' background information.The obtain manner that those skilled in the art will be understood that the background information of element after the above-mentioned rearrangement is only for for example; the obtain manner of the background information of element is as applicable to the present invention after other rearrangements existing or that may occur from now on; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
At this, reset background deriving means 14 according to the background information of all ancestors' elements of element to be reset, determine the background information of element after resetting the corresponding rearrangement of element, so that the background information of element is consistent with the background information of element to be reset in the page to be reset after resetting.
In another preferred embodiment of the network equipment 1 shown in Figure 1, element deriving means 11 to be reset obtains the element to be reset in the page to be reset; Element is determined device 12 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 13 travels through ancestors' element of element described to be reset according to the page described to be reset, and to obtain first ancestors' element of element described to be reset, wherein, described first ancestors' element comprises background information; Reset the background information corresponding with element described to be reset in each of the background deriving means 14 top-down described first ancestors' elements that successively superpose, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement.
For example, as shown in Figure 5, element deriving means 11 to be reset obtains the Elements C to be reset in the page to be reset; Element is determined device 12 according to this page to be reset after resetting, and determines and Elements C after resetting the corresponding rearrangement of Elements C '; Superior node deriving means 13 travels through ancestors' element of Elements C to be reset, obtain father's element B, grandfather's elements A of Elements C to be reset, wherein, this father's element B is without background information, grandfather's elements A comprises background information, and then this grandfather's elements A is first ancestors' element of Elements C to be reset; Reset the background information that background deriving means 14 will Elements C be reset and be superimposed to background information corresponding with Elements C to be reset in grandfather's elements A, obtain to reset afterwards Elements C ' background information.
At this, reset background deriving means 14 according to the first ancestors' element that comprises background information in ancestors' element of element to be reset, determine the background information of element after resetting the corresponding rearrangement of element, so that after resetting the background information of element reduced the calculated amount to the background information of resetting rear element with when the background information of element to be reset in the page to be reset is consistent.
Preferably, in another preferred embodiment of this network equipment 1 shown in Figure 1, superior node deriving means 13 obtains second ancestors' element from described first ancestors' element, wherein, the background information of described second ancestors' element comprises background colour and nearest with element level described to be reset, with the first ancestors element of described second ancestors' element as highest level.For example, father's element of Elements C to be reset is B, and grandfather's element is A, and great grandfather's element is X, and wherein, father's element B, grandfather's elements A and great grandfather's element X include background information, include background colour in the background information of grandfather's elements A and great grandfather's element X; Accordingly, superior node deriving means 13 obtains father's element B, grandfather's elements A and great grandfather's element X as first ancestors' element of Elements C to be reset, further, because of grandfather's elements A for Elements C level described to be reset nearest, background information comprises that first ancestors' element of background colour, superior node deriving means 13 obtain grandfather's elements A as second ancestors' element of Elements C to be reset; The background information that rearrangement background deriving means 14 obtains in background information corresponding with Elements C to be reset in grandfather's elements A, the father's element B and Elements C to be reset is corresponding and the background information of Elements C to be reset, and obtaining sequentially according to these background informations, superpose successively, with Elements C after resetting ' background information.
At this, reset background deriving means 14 from the first ancestors' element that comprises background information of element to be reset, determine that and background information nearest with element level to be reset comprises second ancestors' element of background colour, and from this second ancestors element, the background information corresponding with element to be reset in each first ancestors' element of top-down stack, and the corresponding background information of element to be reset, thereby the background information of element after obtaining to reset.Because the background information that the background colour of second ancestors' element can block its superior node element, so that the element to be reset that finally presents in the page to be reset can't show the background information of the superior node element of second ancestors' element, therefore, the background information of element after only determining to reset since second ancestors' element, not only so that after resetting the background information of element and the background information of element to be reset in the page to be reset be consistent representing in form, and greatly reduced calculated amount to the background information of resetting rear element.
In another preferred embodiment of the network equipment 1 shown in Figure 1, element deriving means 11 to be reset obtains the element to be reset in the page to be reset; Element is determined device 12 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 13 is according to the page described to be reset, the bottom-up first ancestors' element that obtains element described to be reset, until satisfy the preset stopping condition, wherein, described first ancestors' element comprises background information; Reset the background information corresponding with element described to be reset in each of the background deriving means 14 top-down described first ancestors' elements that successively superpose, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement.
Wherein, superior node deriving means 13 is according to the page structure of the page described to be reset, play up tree-model (Render Tree) etc. such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset, from the bottom-up ancestors' element that comprises background information that obtains element described to be reset of element described to be reset, these ancestors' elements are first ancestors' element, until satisfy the preset stopping condition, all as described background informations of first ancestors' element comprise that the number of background colour or described first ancestors' element reaches threshold value.Reset background deriving means 14 from the highest first ancestors' element of superior node deriving means 13 acquired levels, the background information corresponding with element described to be reset in top-down acquired each the first ancestors' element that successively superposes, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement.
For example, the preset stopping condition is that the background information of described first ancestors' element comprises that the number of background colour or described first ancestors' element reaches threshold value, as long as satisfy one of aforementioned preset stopping condition, superior node deriving means 13 namely stops to obtain first ancestors' element of element described to be reset; Play up tree-model (Render Tree) according to the page to be reset, father's element that superior node deriving means 13 obtains Elements C to be reset is B, and father's element B is without background information, grandfather's element is A, and the background information of grandfather's elements A comprises background colour, accordingly, superior node deriving means 13 determines that grandfather's elements A belongs to first ancestors' element of Elements C to be reset, and satisfies predetermined stoppage condition; Reset the background information that background deriving means 14 will Elements C be reset and be superimposed to background information corresponding with Elements C to be reset in grandfather's elements A, to obtain to reset afterwards Elements C ' background information.
At this, superior node deriving means 13 is obtained the operating and setting stop condition of first ancestors' element of element to be reset, so that after resetting background deriving means 14 and determining to reset during the background information of element, after guarantee resetting as much as possible the background information of element and the background information of element to be reset in the page to be reset represent pro forma consistent, simultaneously, greatly reduced the correlation computations of background information of first ancestors' element of element to be reset, improved the page of the network equipment 1 and reset the speed of response.
Preferably, described preset stopping condition includes but not limited to, below at least each:
1) background information of described first ancestors' element comprises background colour;
2) number of described first ancestors' element reaches threshold value.
At this, from bottom-up its first ancestors element that obtains of element to be reset, and these the first ancestors elements are obtained the operating and setting stop condition, when finding the first ancestors' element that comprises background colour such as higher level's node deriving means 13, namely stop the operation that this obtains first ancestors' element, perhaps the number of first ancestors' element of the element to be reset of superior node deriving means 13 acquisitions reaches threshold value, during such as 4, namely stop the operation that this obtains first ancestors' element, first ancestors' element of the element to be reset that the background information degree of correlation of element was higher after superior node deriving means 13 obtained accordingly and resets, thereby guarantee to reset background deriving means 14 background informations based on these the first ancestors elements, the accuracy of the background information of element after the rearrangement of acquisition.
Fig. 2 is equipment synoptic diagram in accordance with a preferred embodiment of the present invention, and a kind of network equipment of determining the background information of the rear element of rearrangement in page rearrangement process is shown.Wherein, the network equipment 1 comprises that element is determined device 22, superior node deriving means 23, reset background deriving means 24 and page rearrangement device 25 after resetting element deriving means 21, resetting, wherein, element deriving means 21 to be reset comprises page acquiring unit 211 to be reset, page resolution unit 212 to be reset and element determining unit 213 to be reset.Particularly, page acquiring unit 211 to be reset obtains the page described to be reset; Page resolution unit 212 to be reset is resolved the page described to be reset, to obtain the page elements of the page described to be reset; Element determining unit 213 to be reset is determined element described to be reset according to the geological information of described page elements from described page elements; Element is determined device 22 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 23 obtains ancestors' element of element described to be reset according to the page described to be reset; Reset the background information corresponding with element described to be reset in each of the background deriving means 24 top-down described ancestors' elements that successively superpose, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement; Page rearrangement device 25 is according to described page elements, the page described to be reset is reset processing, and the page after resetting with acquisition is according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset.
Wherein, element is determined device 22, superior node deriving means 23, is reset element after resetting among the performed operation of background deriving means 24 and Fig. 1 and determine device 12, superior node deriving means 13 and reset the content of the performed operation of background deriving means 14 identical or basic identical after resetting among Fig. 2, for simplicity's sake, be contained in this with way of reference, repeat no more.
Page acquiring unit 211 to be reset obtains the page described to be reset.At this, the mode that page acquiring unit 211 to be reset obtains the page described to be reset includes but not limited to following mode:
1) network equipment 1 comprises the webserver, and page acquiring unit 211 to be reset obtains in this network equipment 1 page of the page of storage or user's request access as the page described to be reset;
2) network equipment 1 comprises the intermediate server that communicates with the described webserver, and page acquiring unit 211 to be reset obtains the corresponding page as the page described to be reset according to user's accessing page request from the described webserver.
Those skilled in the art will be understood that the above-mentioned mode of the page to be reset of obtaining is only for giving an example; other existing or modes of obtaining the page to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Page resolution unit 212 to be reset is resolved the page described to be reset, to obtain the page elements of the page described to be reset.For example, 212 pairs of pages described to be reset of page resolution unit to be reset are resolved, obtain the DOM Document Object Model (DOM) of the page described to be reset or play up tree (render tree) model, the document object model (DOM) or play up the page elements that node elements in tree (render tree) model is the page described to be reset.Those skilled in the art will be understood that the obtain manner of the page elements of the page above-mentioned to be reset only is for example; the obtain manner of the page elements of other pages to be reset existing or that may occur from now on is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Element determining unit 213 to be reset is determined element described to be reset according to the geological information of described page elements from described page elements.At this, element determining unit 213 to be reset determines that the mode of element described to be reset includes but not limited to following mode:
1) obtain geological information in the page to be reset less than the page elements of predetermined value as candidate's element to be reset, if the geological information of father's element of a page elements is greater than described predetermined value in these candidates element to be reset, determine that then this page elements is element described to be reset, otherwise with this this page elements of father's element substitution as candidate's element to be reset; Repeating said process, until satisfy certain stop condition, is empty such as candidate's element to be reset.
2) obtain the page elements that geological information in the page to be reset surpasses described predetermined value, if the geological information of the daughter element of a page elements is less than described predetermined value in these page elements, then determine should (etc.) daughter element is element described to be reset, otherwise continue to obtain the Sun Yuansu of these page elements downwards, namely should (etc.) daughter element of daughter element, search downwards successively, until obtain geological information less than descendants's element of described predetermined value, should (etc.) descendants's element is element described to be reset.
Those skilled in the art will be understood that the above-mentioned mode of determining element to be reset is only for for example; other existing or modes of determining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Page rearrangement device 25 is according to described page elements, the page described to be reset is reset processing, with the page after the acquisition rearrangement, according to the page after the described rearrangement, background information in conjunction with element after the rearrangement of resetting 24 acquisitions of background deriving means generates the new page corresponding with the page described to be reset.For example, reset the background information that background deriving means 24 obtains to reset rear element; Page rearrangement device 25 is according to the page elements of the page to be reset, this page to be reset is reset processing, with the page after resetting, and substitute in this page element after corresponding the rearrangement with the background information of element after resetting, thereby generate wait resetting the new page of the page after resetting processing.Those skilled in the art will be understood that the mode of the new page that above-mentioned generation is corresponding with the page to be reset is only for giving an example; the mode of the new page that other generations existing or that may occur from now on are corresponding with the page to be reset is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In a preferred embodiment of the network equipment 1 shown in Figure 2, the network equipment 1 also comprises new page generator 26.Page acquiring unit 211 to be reset obtains user's accessing page request, and the page that will be corresponding with described accessing page request is as the page described to be reset; Page resolution unit 212 to be reset is resolved the page described to be reset, to obtain the page elements of the page described to be reset; Element determining unit 213 to be reset is determined element described to be reset according to the geological information of described page elements from described page elements; Element is determined device 22 according to the page described to be reset after resetting, determine and described after resetting the corresponding rearrangement of element element; Superior node deriving means 23 obtains ancestors' element of element described to be reset according to the page described to be reset; Reset the background information corresponding with element described to be reset in each of the background deriving means 24 top-down described ancestors' elements that successively superpose, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement; Page rearrangement device 25 is according to described page elements, the page described to be reset is reset processing, and the page after resetting with acquisition is according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset; New page generator 26 provides described new page to described user.
At this, new page generator 26 is according to the communication transport protocols of itself and user's mobile device agreement, and such as http or https, the new page that will obtain after will resetting the page of user's request access provides to the user.
Preferably, in the preferred embodiment of this network equipment 1 shown in Figure 2, element determining unit 213 to be reset is according to the geological information of page elements in the page described to be reset, and in conjunction with the screen attribute of described user's mobile device, from described page elements, determine the element to be reset of the page described to be reset.For example, element determining unit 213 to be reset is according to the screen attribute of the mobile device of the request access page to be reset, set the predetermined value of the geological information of page elements, be made as the preset width value such as the screen width with mobile device, according to this preset width value, according to the width information of page elements in this page to be reset, determine element accordingly to be reset.Those skilled in the art will be understood that the above-mentioned mode of determining element to be reset is only for for example; other existing or modes of determining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Preferably, in the preferred embodiment of this network equipment 1 shown in Figure 2, the network equipment 1 also comprises window operation responding device 27.Window operation responding device 27 obtains the window attribute of described user's mobile device, and wherein, described window attribute is corresponding with described user's page window operation, according to described window attribute, again triggers element determining unit 213 to be reset and starts corresponding operating.At this, the window attribute of mobile device comprises horizontal screen and perpendicular screen, the user adjusts the window attribute of mobile device when accession page, as being adjusted to horizontal screen from perpendicular screen, window attribute after window operation responding device 27 is adjusted according to this, determine corresponding screen width and/or height, and the screen width after will adjusting and/or highly provide to element determining unit 213 to be reset, trigger element determining unit 213 to be reset and restart the determining of element to be reset of a new round, the operation of this new round until new page generator 26 will provide to the user according to the new page that this element to be reset that redefines obtains.
Fig. 3 is method flow diagram according to a further aspect of the present invention, and a kind of computer implemented process of determining the background information of the rear element of rearrangement in page rearrangement process is shown.At this, described computing machine comprises anyly can carry out the modernized intelligent electronic device of massive values computation and various information processings automatically, at high speed according to the program of prior storage, and its hardware comprises microprocessor, FPGA, DSP, embedded device etc.
Particularly, in step S301, the network equipment 1 obtains the element to be reset in the page to be reset; In step S302, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S303, the network equipment 1 obtains father's element of element described to be reset according to the page described to be reset; In step S304, the network equipment 1 is according to background information corresponding with element described to be reset in described father's element, and the background information of element described to be reset, and determines the background information of element after the described rearrangement.At this, the network equipment 1 includes but not limited to the various network services device, such as Website server, forum's server, blog server etc., and the intermediate server that communicates with the described webserver, wherein, described intermediate server includes but not limited to network host, single network server, a plurality of webserver collection or based on the set of computers of cloud computing, at this, cloud computing is a kind of of Distributed Calculation, a super virtual machine that is comprised of the loosely-coupled computing machine collection of a group.Those skilled in the art will be understood that the above-mentioned network equipment only for giving an example, and other network equipments existing or that may occur from now on also should be included in the protection domain of the present invention as applicable to the present invention, and are contained in this with way of reference.
In step S301, the network equipment 1 obtains the element to be reset in the page to be reset.At this, element described to be reset includes but not limited to any applicable to of the present invention, the page elements that positional information in simple browsing pages changes with respect to its positional information in full browsing pages, wherein, described simple browsing pages comprise the page elements of web page (or WWW page) reset after, the page that the layout that obtains changes, described full browsing pages comprises that the web website generates the page identical with the page of browsing by personal computer based on various HTML Developing tools.The page described to be reset comprises the full browsing pages that the network equipment 1 obtains by variety of way.The page elements of the page described to be reset comprises each node elements in the file structure of the page described to be reset; Described file structure includes but not limited to any applicable to of the present invention, treat according to various file structure models and to reset the file structure that the page is resolved the page to be reset of rear acquisition, play up tree-model (Render Tree) etc. such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset.Herein, reset and to refer to obtain processing mode and/or the processing procedure of corresponding simple browsing pages by to the rearranging and/or layout of page elements in the full browsing pages.
At this, the mode that the network equipment 1 obtains element described to be reset includes but not limited to following mode:
1) obtain geological information in the page to be reset less than the page elements of predetermined value as candidate's element to be reset, if the geological information of father's element of a page elements is greater than described predetermined value in these candidates element to be reset, determine that then this page elements is element described to be reset, otherwise with this this page elements of father's element substitution as candidate's element to be reset; Repeating said process, until satisfy certain stop condition, is empty such as candidate's element to be reset.Wherein, described geological information includes but not limited to width information or the elevation information of page elements, described predetermined value can be preset by the network equipment 1 or user, or determine according to the statistics of the screen attribute of user's portable terminal, or determine according to the screen attribute of the corresponding current mobile terminal of the page to be reset.
2) obtain the page elements that geological information in the page to be reset surpasses described predetermined value, if the geological information of the daughter element of a page elements is less than described predetermined value in these page elements, then determine should (etc.) daughter element is element described to be reset, otherwise continue to obtain the Sun Yuansu of these page elements downwards, namely should (etc.) daughter element of daughter element, search downwards successively, until obtain geological information less than descendants's element of described predetermined value, should (etc.) descendants's element is element described to be reset.
Those skilled in the art will be understood that the above-mentioned mode of element to be reset of obtaining is only for giving an example; other existing or modes of obtaining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S302, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element.For example, as shown in Figure 5, the page on the left side is the page to be reset, page elements C, D, E are element to be reset, the network equipment 1 is according to Elements C to be reset, D, the E positional information in this page to be reset, determine wait resetting Elements C, D, the E positional information after rearrangement, thereby determine Elements C after resetting Elements C, the corresponding rearrangement of D, E ', D ', E '.
In step S303, the network equipment 1 obtains father's element of element described to be reset according to the page described to be reset.For example, the network equipment 1 is according to the file structure of the page to be reset, such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset play up tree-model (Render Tree) etc., obtain father's element of element to be reset in the page described to be reset.
In step S304, the background information corresponding with element described to be reset in father's element of the network equipment 1 according to element described to be reset, and the background information of element described to be reset, determine described after resetting the corresponding rearrangement of element the background information of element.For example, as shown in Figure 5, father's element of Elements C to be reset is B, the network equipment 1 is according to Elements C to be reset shared background information in his father's element B, the i.e. background information corresponding with Elements C to be reset in this father's element B, and the background information of Elements C to be reset, the background information by background information corresponding with C in B stack C generates Elements C after resetting rearrangement corresponding to Elements C ' background information.
In a preferred embodiment of process shown in Figure 3, in step S301, the network equipment 1 obtains the element to be reset in the page to be reset; In step S302, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S303, the network equipment 1 obtains ancestors' element of element described to be reset according to the page described to be reset; In step S304, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
Wherein, in step S303, the network equipment 1 obtains ancestors' element of element to be reset in the page described to be reset according to the file structure of the page to be reset.For example, the network equipment 1 is played up tree-model (Render Tree) according to the page to be reset, obtain one or more superior node elements that this plays up element to be reset in the tree-model (Render Tree), these superior node elements are ancestors' element of element to be reset.Those skilled in the art will be understood that the obtain manner of ancestors' element of element above-mentioned to be reset only is for example; the obtain manner of ancestors' element of other elements to be reset existing or that may occur from now on is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S304, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described ancestors' element that successively superposes, and the background information of element described to be reset, with obtain described after resetting the corresponding rearrangement of element the background information of element.For example, as shown in Figure 5, father's element of Elements C to be reset is B, grandfather's element is A, element is C ' after resetting the corresponding rearrangement of Elements C, the network equipment 1 is top-down successively to obtain background information corresponding with Elements C to be reset in grandfather's elements A, the background information corresponding with Elements C to be reset in father's element B, and the background information of Elements C to be reset, and according to aforementioned obtain the order these background informations are superposeed, be about to the background information that the background information corresponding with Elements C to be reset is superimposed in grandfather's elements A and Elements C to be reset is corresponding in father's element B, background information that again will Elements C be reset is superimposed to the background information that the preceding paragraph stack obtains, with Elements C after obtaining to reset ' background information.The obtain manner that those skilled in the art will be understood that the background information of element after the above-mentioned rearrangement is only for for example; the obtain manner of the background information of element is as applicable to the present invention after other rearrangements existing or that may occur from now on; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
At this, the network equipment 1 is according to the background information of all ancestors' elements of element to be reset, determine the background information of element after resetting the corresponding rearrangement of element, so that the background information of element is consistent with the background information of element to be reset in the page to be reset after resetting.
In another preferred embodiment of process shown in Figure 3, in step S301, the network equipment 1 obtains the element to be reset in the page to be reset; In step S302, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S303, the network equipment 1 travels through ancestors' element of element described to be reset according to the page described to be reset, and to obtain first ancestors' element of element described to be reset, wherein, described first ancestors' element comprises background information; In step S304, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described first ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
For example, as shown in Figure 5, in step S301, the network equipment 1 obtains the Elements C to be reset in the page to be reset; In step S302, the network equipment 1 is determined and Elements C after resetting the corresponding rearrangement of Elements C according to this page to be reset '; In step S303, the network equipment 1 travels through ancestors' element of Elements C to be reset, and obtains father's element B, grandfather's elements A of Elements C to be reset, wherein, this father's element B is without background information, and grandfather's elements A comprises background information, and then this grandfather's elements A is first ancestors' element of Elements C to be reset; In step S304, the background information that the network equipment 1 will Elements C be reset is superimposed to background information corresponding with Elements C to be reset in grandfather's elements A, Elements C after obtaining to reset ' background information.
At this, the network equipment 1 is according to the first ancestors' element that comprises background information in ancestors' element of element to be reset, determine the background information of element after resetting the corresponding rearrangement of element, so that after resetting the background information of element reduced the calculated amount to the background information of resetting rear element with when the background information of element to be reset in the page to be reset is consistent.
Preferably, in another preferred embodiment of this process shown in Figure 3, in step S303, the network equipment 1 obtains second ancestors' element from described first ancestors' element, wherein, the background information of described second ancestors' element comprises background colour and nearest with element level described to be reset, with the first ancestors element of described second ancestors' element as highest level.For example, father's element of Elements C to be reset is B, and grandfather's element is A, and great grandfather's element is X, and wherein, father's element B, grandfather's elements A and great grandfather's element X include background information, include background colour in the background information of grandfather's elements A and great grandfather's element X; Accordingly, the network equipment 1 obtains father's element B, grandfather's elements A and great grandfather's element X as first ancestors' element of Elements C to be reset, further, because of grandfather's elements A for Elements C level described to be reset nearest, background information comprises that first ancestors' element of background colour, the network equipment 1 obtain grandfather's elements A as second ancestors' element of Elements C to be reset; Subsequently, the background information that the network equipment 1 obtains in background information corresponding with Elements C to be reset in grandfather's elements A, the father's element B and Elements C to be reset is corresponding and the background information of Elements C to be reset, and obtaining sequentially according to these background informations, superpose successively, with Elements C after resetting ' background information.
At this, the network equipment 1 is from the first ancestors' element that comprises background information of element to be reset, determine that and background information nearest with element level to be reset comprises second ancestors' element of background colour, and from this second ancestors element, the background information corresponding with element to be reset in each first ancestors' element of top-down stack, and the corresponding background information of element to be reset, thereby the background information of element after obtaining to reset.Because the background information that the background colour of second ancestors' element can block its superior node element, so that the element to be reset that finally presents in the page to be reset can't show the background information of the superior node element of second ancestors' element, therefore, the background information of element after only determining to reset since second ancestors' element, not only so that after resetting the background information of element and the background information of element to be reset in the page to be reset be consistent representing in form, and greatly reduced calculated amount to the background information of resetting rear element.
In another preferred embodiment of process shown in Figure 3, in step S301, the network equipment 1 obtains the element to be reset in the page to be reset; In step S302, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S303, the network equipment 1 is according to the page described to be reset, the bottom-up first ancestors' element that obtains element described to be reset, until satisfy the preset stopping condition, wherein, described first ancestors' element comprises background information; In step S304, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described first ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
Wherein, in step S303, the network equipment 1 is according to the page structure of the page described to be reset, play up tree-model (Render Tree) etc. such as the DOM Document Object Model (DOM) of the page to be reset, the page to be reset, from the bottom-up ancestors' element that comprises background information that obtains element described to be reset of element described to be reset, these ancestors' elements are first ancestors' element, until satisfy the preset stopping condition, all as described background informations of first ancestors' element comprise that the number of background colour or described first ancestors' element reaches threshold value.In step S304, the network equipment 1 is from the highest first ancestors' element of acquired level, the background information corresponding with element described to be reset in top-down acquired each the first ancestors' element that successively superposes, and the background information of element described to be reset, to obtain the background information of element after the described rearrangement.
For example, the preset stopping condition is that the background information of described first ancestors' element comprises that the number of background colour or described first ancestors' element reaches threshold value, as long as satisfy one of aforementioned preset stopping condition, the network equipment 1 namely stops to obtain first ancestors' element of element described to be reset; Play up tree-model (Render Tree) according to the page to be reset, father's element that the network equipment 1 obtains Elements C to be reset is B, and father's element B is without background information, grandfather's element is A, and the background information of grandfather's elements A comprises background colour, accordingly, the network equipment 1 determines that grandfather's elements A belongs to first ancestors' element of Elements C to be reset, and satisfies predetermined stoppage condition; Subsequently, the background information that the network equipment 1 will Elements C be reset is superimposed to background information corresponding with Elements C to be reset in grandfather's elements A, with Elements C after obtaining to reset ' background information.
At this, operating and setting stop condition to first ancestors' element of obtaining element to be reset, so that the network equipment 1 is when determining to reset the background information of rear element, after guarantee resetting as much as possible the background information of element and the background information of element to be reset in the page to be reset represent pro forma consistent, simultaneously, greatly reduced the correlation computations of background information of first ancestors' element of element to be reset, improved the page of the network equipment 1 and reset the speed of response.
Preferably, described preset stopping condition includes but not limited to, below at least each:
1) background information of described first ancestors' element comprises background colour;
2) number of described first ancestors' element reaches threshold value.
At this, from bottom-up its first ancestors element that obtains of element to be reset, and these the first ancestors elements are obtained the operating and setting stop condition, when finding the first ancestors' element that comprises background colour such as the network equipment 1, namely stop the operation that this obtains first ancestors' element, perhaps the number of first ancestors' element of the element to be reset of the network equipment 1 acquisition reaches threshold value, during such as 4, namely stop the operation that this obtains first ancestors' element, first ancestors' element of the element to be reset that the background information degree of correlation of element was higher after the network equipment 1 obtained accordingly and resets, thereby guarantee that the network equipment 1 is based on the background information of these the first ancestors elements, the accuracy of the background information of element after the rearrangement of acquisition.
Fig. 4 is method flow diagram in accordance with a preferred embodiment of the present invention, and a kind of process of determining the background information of the rear element of rearrangement in page rearrangement process is shown.Particularly, in step S4011, the network equipment 1 obtains the page described to be reset; In step S4012, the network equipment 1 is resolved the page described to be reset, to obtain the page elements of the page described to be reset; In step S4013, the network equipment 1 is determined element described to be reset according to the geological information of described page elements from described page elements; In step S402, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S403, the network equipment 1 obtains ancestors' element of element described to be reset according to the page described to be reset; In step S404, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement; In step S405, the network equipment 1 is reset processing according to described page elements to the page described to be reset, with the page after the acquisition rearrangement, according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset.
Wherein, among Fig. 4 the network equipment 1 in step S402, step S403 and step S404 among performed operation and Fig. 3 the content of the network equipment 1 performed operation in step S302, step S303 and step S304 identical or basic identical, for simplicity's sake, be contained in this with way of reference, repeat no more.
In step S4011, the network equipment 1 obtains the page described to be reset.At this, the mode that the network equipment 1 obtains the page described to be reset includes but not limited to following mode:
1) network equipment 1 comprises the webserver, and this network equipment 1 obtains the page of the page of its storage or user's request access as the page described to be reset;
2) network equipment 1 comprises the intermediate server that communicates with the described webserver, and this network equipment 1 obtains the corresponding page as the page described to be reset according to user's accessing page request from the described webserver.
Those skilled in the art will be understood that the above-mentioned mode of the page to be reset of obtaining is only for giving an example; other existing or modes of obtaining the page to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S4012, the network equipment 1 is resolved the page described to be reset, to obtain the page elements of the page described to be reset.For example, 1 pair of page described to be reset of the network equipment is resolved, obtain the DOM Document Object Model (DOM) of the page described to be reset or play up tree (render tree) model, the document object model (DOM) or play up the page elements that node elements in tree (render tree) model is the page described to be reset.Those skilled in the art will be understood that the obtain manner of the page elements of the page above-mentioned to be reset only is for example; the obtain manner of the page elements of other pages to be reset existing or that may occur from now on is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S4013, the network equipment 1 is determined element described to be reset according to the geological information of described page elements from described page elements.At this, the network equipment 1 determines that the mode of element described to be reset includes but not limited to following mode:
1) obtains in the page to be reset geological information less than the page elements of predetermined value, if the geological information of father's element of a page elements is also less than described predetermined value in these page elements, then this father's element is element described to be reset, otherwise this page elements is element described to be reset;
2) obtain the page elements that geological information in the page to be reset surpasses described predetermined value, if the geological information of the daughter element of these page elements is less than described predetermined value, then should (etc.) daughter element is element described to be reset, if should (etc.) geological information of daughter element still surpasses described predetermined value, then continue to obtain Sun Yuansu downwards, search downwards successively, until obtain geological information less than descendants's element of described predetermined value, these descendants's elements are element described to be reset.
Those skilled in the art will be understood that the above-mentioned mode of determining element to be reset is only for for example; other existing or modes of determining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S405, the network equipment 1 is according to described page elements, the page described to be reset is reset processing, with the page after the acquisition rearrangement, according to the page after the described rearrangement, in conjunction with the background information of element after its rearrangement that in step S404, obtains, generate the new page corresponding with the page described to be reset.For example, in step S404, the background information of element after the network equipment 1 obtains to reset; In step S405, the network equipment 1 is according to the page elements of the page to be reset, this page to be reset is reset processing, with the page after the acquisition rearrangement, and substitute in this page element after corresponding the rearrangement with the background information of element after resetting, thereby generate wait resetting the page through resetting the new page after processing.Those skilled in the art will be understood that the mode of the new page that above-mentioned generation is corresponding with the page to be reset is only for giving an example; the mode of the new page that other generations existing or that may occur from now on are corresponding with the page to be reset is as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In a preferred embodiment of process shown in Figure 4, this process also comprises step S406.In step S4011, the network equipment 1 obtains user's accessing page request, and the page that will be corresponding with described accessing page request is as the page described to be reset; In step S4012, the network equipment 1 is resolved the page described to be reset, to obtain the page elements of the page described to be reset; In step S4013, the network equipment 1 is determined element described to be reset according to the geological information of described page elements from described page elements; In step S402, the network equipment 1 is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element; In step S403, the network equipment 1 obtains ancestors' element of element described to be reset according to the page described to be reset; In step S404, the background information corresponding with element described to be reset in each of the network equipment 1 top-down described ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement; In step S405, the network equipment 1 is reset processing according to described page elements to the page described to be reset, with the page after the acquisition rearrangement, according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset; In step S406, the network equipment 1 provides described new page to described user.
At this, in step S406, the network equipment 1 is according to the communication transport protocols of itself and user's mobile device agreement, and such as http or https, the new page that will obtain after will resetting the page of user's request access provides to the user.
Preferably, in the preferred embodiment of this process shown in Figure 4, in step S4013, the network equipment 1 is according to the geological information of page elements in the page described to be reset, and in conjunction with the screen attribute of described user's mobile device, from described page elements, determine the element to be reset of the page described to be reset.For example, the network equipment 1 is according to the screen attribute of the mobile device of the request access page to be reset, set the predetermined value of the geological information of page elements, be made as the preset width value such as the screen width with mobile device, according to this preset width value, according to the width information of page elements in this page to be reset, determine element accordingly to be reset.Those skilled in the art will be understood that the above-mentioned mode of determining element to be reset is only for for example; other existing or modes of determining element to be reset that may occur from now on are as applicable to the present invention; also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Preferably, in the preferred embodiment of this process shown in Figure 4, this process also comprises step S407 (not shown).In step S407, the network equipment 1 obtains the window attribute of described user's mobile device, and wherein, described window attribute is corresponding with described user's page window operation, according to described window attribute, re-executes step S4013 to the corresponding operating of step S406.At this, the window attribute of mobile device comprises horizontal screen and perpendicular screen, the user adjusts the window attribute of mobile device when accession page, as being adjusted to horizontal screen from perpendicular screen, window attribute after the network equipment 1 is adjusted according to this, determine corresponding screen width and/or height, and the screen width after will adjusting and/or height restart the determining of element to be reset of a new round from step S4013, the operation of this new round until the network equipment 1 will provide to the user according to the new page that this element to be reset that redefines obtains at step S406.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, therefore is intended to be included in the present invention dropping on the implication that is equal to important document of claim and all changes in the scope.Any Reference numeral in the claim should be considered as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.A plurality of unit of stating in system's claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (20)

  1. One kind computer implemented in page rearrangement process, determine to reset after the method for background information of element, wherein, the method may further comprise the steps:
    A obtains the element to be reset in the page to be reset;
    B is according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element;
    C obtains father's element of element described to be reset according to the page described to be reset;
    The d background information corresponding with element described to be reset in described father's element that superpose, and the background information of element described to be reset are determined the background information of element after the described rearrangement.
  2. 2. method according to claim 1, wherein, described step c comprises:
    -according to the page described to be reset, obtain ancestors' element of element described to be reset;
    Wherein, described steps d comprises:
    The background information corresponding with element described to be reset in each of-top-down described ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
  3. 3. method according to claim 1, wherein, described step c comprises:
    -according to the page described to be reset, ancestors' element of traversal element described to be reset, to obtain first ancestors' element of element described to be reset, wherein, described first ancestors' element comprises background information;
    Wherein, described steps d comprises:
    The background information corresponding with element described to be reset in each of-top-down described first ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
  4. 4. method according to claim 3, wherein, described step c also comprises:
    -from described first ancestors' element, obtain second ancestors' element, wherein, described second ancestors' element for element level described to be reset nearest, background information comprises first ancestors' element of background colour;
    -with the first ancestors element of described second ancestors' element as highest level.
  5. 5. method according to claim 3, wherein, described step c comprises:
    -according to the page described to be reset, bottom-uply obtain described first ancestors' element, until satisfy the preset stopping condition.
  6. 6. method according to claim 5, wherein, described preset stopping condition comprise following at least each:
    The background information of-described first ancestors' element comprises background colour;
    The number of-described first ancestors' element reaches threshold value.
  7. 7. each described method in 6 according to claim 1, wherein, described step a comprises:
    A1 obtains the page described to be reset;
    A2 resolves the page described to be reset, to obtain the page elements of the page described to be reset;
    A3 determines element described to be reset according to the geological information of described page elements from described page elements;
    Wherein, the method also comprises:
    -according to described page elements, the page described to be reset is reset processing, the page after resetting with acquisition;
    -according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset.
  8. 8. method according to claim 7, wherein, described step a1 comprises:
    -obtain user's accessing page request;
    -will be corresponding with described accessing page request the page as the page described to be reset;
    Wherein, the method also comprises:
    -described new page is provided to described user.
  9. 9. method according to claim 8, wherein, described step a3 comprises:
    -according to the geological information of described page elements, and in conjunction with the screen attribute of described user's mobile device, from described page elements, determine element described to be reset.
  10. 10. according to claim 8 or 9 described methods, wherein, the method also comprises:
    -obtain the window attribute of described user's mobile device, wherein, described window attribute is corresponding with described user's page window operation;
    -according to described window attribute, repeat the described step of from described page elements, determining element described to be reset and provide step to described user to described with new page.
  11. 11. a network equipment of determining the background information of the rear element of rearrangement in page rearrangement process, wherein, this network equipment comprises:
    Element deriving means to be reset is for the element to be reset that obtains the page to be reset;
    Element is determined device after resetting, and is used for according to the page described to be reset, determine and described after resetting the corresponding rearrangement of element element;
    The superior node deriving means is used for according to the page described to be reset, and obtains father's element of element described to be reset;
    Reset the background deriving means, be used for superposeing described father's element background information corresponding with element described to be reset, and the background information of element described to be reset, determine the background information of element after the described rearrangement.
  12. 12. the network equipment according to claim 11, wherein, described superior node deriving means is used for:
    -according to the page described to be reset, obtain ancestors' element of element described to be reset;
    Wherein, described rearrangement background deriving means is used for:
    The background information corresponding with element described to be reset in each of-top-down described ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
  13. 13. the network equipment according to claim 11, wherein, described superior node deriving means is used for:
    -according to the page described to be reset, ancestors' element of traversal element described to be reset, to obtain first ancestors' element of element described to be reset, wherein, described first ancestors' element comprises background information;
    Wherein, described rearrangement background deriving means is used for:
    The background information corresponding with element described to be reset in each of-top-down described first ancestors' element that successively superposes, and the background information of element described to be reset are to obtain the background information of element after the described rearrangement.
  14. 14. the network equipment according to claim 13, wherein, described superior node deriving means also is used for:
    -from described first ancestors' element, obtain second ancestors' element, wherein, described second ancestors' element for element level described to be reset nearest, background information comprises first ancestors' element of background colour;
    -with the first ancestors element of described second ancestors' element as highest level.
  15. 15. the network equipment according to claim 13, wherein, described superior node deriving means is used for:
    -according to the page described to be reset, bottom-uply obtain described first ancestors' element, until satisfy the preset stopping condition.
  16. 16. the network equipment according to claim 15, wherein, described preset stopping condition comprise following at least each:
    The background information of-described first ancestors' element comprises background colour;
    The number of-described first ancestors' element reaches threshold value.
  17. 17. each described network equipment in 16 according to claim 11, wherein, element deriving means described to be reset comprises:
    Page acquiring unit to be reset is used for obtaining the page described to be reset;
    Page resolution unit to be reset is used for resolving the page described to be reset, to obtain the page elements of the page described to be reset;
    Element determining unit to be reset is used for the geological information according to described page elements, determines element described to be reset from described page elements;
    Wherein, this network equipment also comprises page rearrangement device, and described page rearrangement device is used for:
    -according to described page elements, the page described to be reset is reset processing, the page after resetting with acquisition;
    -according to the page after the described rearrangement, in conjunction with the background information of element after the described rearrangement, generate the new page corresponding with the page described to be reset.
  18. 18. the network equipment according to claim 17, wherein, page acquiring unit described to be reset is used for:
    -obtain user's accessing page request;
    -will be corresponding with described accessing page request the page as the page described to be reset;
    Wherein, this network equipment also comprises:
    The new page generator is used for described new page is provided to described user.
  19. 19. the network equipment according to claim 18, wherein, element determining unit described to be reset is used for:
    -according to the geological information of described page elements, and in conjunction with the screen attribute of described user's mobile device, from described page elements, determine element described to be reset.
  20. 20. according to claim 18 or the 19 described network equipments, wherein, this network equipment also comprises the window operation responding device, and described window operation responding device is used for:
    -obtain the window attribute of described user's mobile device, wherein, described window attribute is corresponding with described user's page window operation;
    -according to described window attribute, again trigger element determining unit described to be reset and start corresponding operating.
CN 201110256436 2011-08-31 2011-08-31 Method and device for determining background information of rearranged elements in page rearranging process Active CN102323939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110256436 CN102323939B (en) 2011-08-31 2011-08-31 Method and device for determining background information of rearranged elements in page rearranging process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110256436 CN102323939B (en) 2011-08-31 2011-08-31 Method and device for determining background information of rearranged elements in page rearranging process

Publications (2)

Publication Number Publication Date
CN102323939A CN102323939A (en) 2012-01-18
CN102323939B true CN102323939B (en) 2013-05-29

Family

ID=45451682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110256436 Active CN102323939B (en) 2011-08-31 2011-08-31 Method and device for determining background information of rearranged elements in page rearranging process

Country Status (1)

Country Link
CN (1) CN102323939B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927341B (en) * 2014-03-27 2017-12-26 广州华多网络科技有限公司 A kind of method and device for obtaining scene information
CN105488057B (en) * 2014-09-17 2020-04-03 腾讯科技(深圳)有限公司 Page element processing method and device
CN106326251B (en) * 2015-06-23 2019-05-17 阿里巴巴集团控股有限公司 The full-scale adaptation method and device of object to be presented
CN106156371B (en) * 2016-08-31 2020-03-06 浪潮(北京)电子信息产业有限公司 Method and device for realizing complete background picture of webpage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587490A (en) * 2009-07-01 2009-11-25 优视动景(北京)技术服务有限公司 Web page rearrangement processing method and acting server
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004068320A2 (en) * 2003-01-27 2004-08-12 Vincent Wen-Jeng Lue Method and apparatus for adapting web contents to different display area dimensions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587490A (en) * 2009-07-01 2009-11-25 优视动景(北京)技术服务有限公司 Web page rearrangement processing method and acting server
CN101778168A (en) * 2010-02-05 2010-07-14 中国电信股份有限公司 Method and system for optimization display of wed pages on browser of mobile terminal

Also Published As

Publication number Publication date
CN102323939A (en) 2012-01-18

Similar Documents

Publication Publication Date Title
US10284623B2 (en) Optimized browser rendering service
CN102346778B (en) Method and equipment for providing searching result
CN106469376B (en) Risk control method and equipment
WO2019169723A1 (en) Test case selection method, device and equipment, and computer-readable storage medium
CN102521257B (en) Method and device for providing corresponding on-line picture according to thumbnail
CN103970534A (en) Method and equipment for supplying rendered page in mobile application
CN102323939B (en) Method and device for determining background information of rearranged elements in page rearranging process
CN103455315A (en) Method and equipment used for realizing screen capturing and acquiring corresponding target information
CN103309884A (en) User behavior data collecting method and system
CN104159120B (en) A kind of video image stabilization method, apparatus and system
CN104239435A (en) Distributed picture caching method based on picture thumbnail processing
CN104182403A (en) Method and equipment for loading image information
CN107408065A (en) Supervision application loads
CN103885968A (en) Method and device for providing recommended information
CN106126731A (en) A kind of method and device obtaining Elasticsearch paged data
WO2018177286A1 (en) Static resource request processing method and device
CN103365892A (en) Method and device for processing multiple contact objects
CN103077174A (en) Concurrent resource updating method and equipment
CN104991935A (en) Website attention processing method and apparatus
CN113011677A (en) Parking space arrangement optimization method based on garage and related products
CN102314498B (en) Method and equipment for implementing main identification of page
CN112333294A (en) Log merging method, device, medium and equipment
CN104346263B (en) A kind of terminal capabilities arrangement method and device
CN107038176B (en) Method, device and equipment for rendering web graph page
CN111353007A (en) Geographic element picking method, encoding method and device based on vector slice and electronic equipment

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