Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 illustrates the equipment synoptic diagram that is used for web page content according to one aspect of the invention.Portable terminal 1 comprises body matter deriving means 11, percent information deriving means 12, convergent-divergent treatingapparatus 13 and body matter display device 14.At this; Portable terminal 1 includes but not limited to any that can carry out man-machine interaction through keyboard, telepilot, touch pad or voice-operated device with the user and have electronic equipments such as the function of surfing the web; Like smart mobile phone, PDA, POS machine, vehicle-mounted computer etc., its screen size is far smaller than the display sizes of desktop computer usually.
As shown in Figure 1, at first, body matter deriving means 11 obtains the body matter in the pending webpage.
Particularly, body matter deriving means 11 answers Event triggered in real time or termly from the web page storage storehouse of portable terminal 1 or third party device, to obtain the body matter in pending webpage and this pending webpage.At this, said body matter means to be needed in the webpage to focus on the content to user's displaying, includes but not limited to:
1) picture;
2) video;
3) word content piece.
Those skilled in the art will be understood that the aforementioned body content is merely for example, and other body matters existing or that possibly 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 as applicable to the present invention.
In an example; The API that body matter deriving means 11 provides according to third party device (API); Answer Event triggered in real time or termly to send the request message that receives the body matter in certain pending webpage, and receive the body matter in this pending webpage that this third party device returns in response to this request message to this third party device; Or the body matter of third party device active in portable terminal 1 certain pending webpage of propelling movement, the body matter that webpage deriving means 11 receives in these pending webpages.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the body matter in the pending webpage is merely for example; Other existing or modes of obtaining the body matter in the pending webpage that possibly 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.
Then; Percent information deriving means 12 is according to first pre-defined rule; And the resolution of the display screen of size related information and the said portable terminal of the body matter that obtains based on body matter deriving means 11 in said webpage, obtain the demonstration scaling information of said webpage.
Particularly; At first; The identification information of body matter in the html file of this webpage in the pending webpage that percent information deriving means 12 for example obtains according to body matter deriving means 11; From the html file of this webpage, read the size related information of this body matter, and from the parameter information storehouse of portable terminal 1, inquire about the resolution of the display screen that obtains this portable terminal 1; Then, percent information deriving means 12 is according to first pre-defined rule, and based on the resolution of the display screen of the size related information of this body matter in webpage and this portable terminal 1, obtains the demonstration scaling information of this webpage.
Wherein, said first pre-defined rule includes but not limited to:
1) body matter being carried out convergent-divergent with the mode of full screen display shows;
2) guaranteeing that body matter can all be presented under the prerequisite on the display screen of portable terminal 1, carries out convergent-divergent with the displaying ratio near the body matter original size and shows.
At this, the size related information of said body matter in webpage includes but not limited to:
Wide and the high numerical value of-body matter in webpage,
Wide and high account for this webpage wide and high number percent of-body matter in webpage.
For example, when body matter was a pictures, its size related information can default to the original wide high numerical value of this picture; If the explicit wide high numerical value of demonstration that this picture is set in webpage, as shown in the picture tag attribute of the html file of this webpage, then with it as the size related information of this picture in webpage.
At this, the said mode of obtaining the demonstration scaling information of webpage includes but not limited to:
1) when first pre-defined rule comprises body matter is carried out the convergent-divergent displaying with the mode of full screen display; Percent information deriving means 12 obtain with the size of body matter (as, be unit with the pixel) zoom to display screen resolution size the demonstration scaling information of this webpage when consistent.
In an example; Body matter is of a size of 120*140 (=wide * is high); The resolution sizes of display screen is 100*100, then needs this body matter is contracted to 100*100 according to display resolution, in view of the above; The demonstration scaling information that percent information deriving means 12 obtains webpage is: wide 5/6 wide (=100/120) of former webpage that is contracted to, height is contracted to 5/7 high (=100/140) of former webpage.
2) when being included in, first pre-defined rule guarantees that body matter can all be presented under the prerequisite on the display screen; Displaying ratio with near body matter original pixels size carries out convergent-divergent, and the mode that percent information deriving means 12 obtains the demonstration scaling information of webpage includes but not limited to following situation:
A. as the wide and Gao Jun of body matter during less than display screen resolution wide and high; Then need body matter is showed with original size; Therefore the demonstration scaling information of the webpage that obtains of percent information deriving means 12 is 1: 1, and promptly wide the and height of webpage does not carry out any convergent-divergent.
B. when the wide and height of wide and the high and display screen resolution of body matter not simultaneously; Then need from wide/high and the display screen resolution of body matter wide/senior middle school; Acquisition compare numerical value little wide/high as the convergent-divergent benchmark, with the scaling of the webpage of confirming to comprise this body matter.In an example; Body matter is of a size of 100*50; Display screen resolution is 60*70, then needs the size of body matter with 60*50 shown, the demonstration scaling information of the webpage that obtains of percent information deriving means 12 is thus: wide 3/5 wide (=60/100) of former webpage that is contracted to; High and former webpage be 1: 1 at high proportion, promptly the height of webpage does not carry out convergent-divergent.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the demonstration scaling information of webpage is merely for example; The mode of other existing or demonstration scaling information of obtaining webpage that possibly 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.
Preferably, percent information deriving means 12 is according to said first pre-defined rule, and based on the resolution of the display screen of size related information and the portable terminal 1 of body matter in webpage, obtains the demonstration scaling information of this webpage being carried out the equal proportion convergent-divergent.At this, said equal proportion convergent-divergent means webpage wide and high is carried out the amplification of same ratio or dwindled, and the wide and high of the body matter in this webpage also can correspondingly be amplified with this identical ratio or dwindle.
In an example; Body matter is of a size of 100*50; Display screen resolution is 50*70; If first pre-defined rule carries out convergent-divergent for guaranteeing that body matter can all be presented under the prerequisite on the display screen with the displaying ratio near body matter original pixels size, and need the wide of body matter dwindled with identical ratio with high; Size after then this body matter dwindles should be 50*25, and the demonstration scaling information of the webpage that obtains of percent information deriving means 12 is thus: wide and high all be contracted to former webpage wide and high 1/2.
At this, portable terminal 1 carries out the demonstration scaling information of equal proportion convergent-divergent according to what percent information deriving means 12 obtained to webpage, and this webpage is carried out the equal proportion convergent-divergent, the web page contents behind the convergent-divergent can be out of shape, to guarantee user's viewing experience.
Those skilled in the art will be understood that the above-mentioned mode of obtaining web displaying scaling information is merely for example; Other existing or modes of obtaining web displaying scaling information that possibly 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.
Subsequently, the demonstration scaling information that convergent-divergent treatingapparatus 13 obtains according to percent information deriving means 12 is carried out convergent-divergent to the webpage that comprises body matter and is handled.
Particularly; The demonstration scaling information of the webpage that convergent-divergent treatingapparatus 13 obtains according to percent information deriving means 12; For example through the webpage rendering module in the browser that shows this webpage; Convergent-divergent to this webpage that comprises body matter carries out equal proportion or non-equal proportion is played up processing, with the webpage behind the acquisition convergent-divergent.In an example, the demonstration scaling information of the webpage that percent information deriving means 12 obtains is: wide and high all be contracted to former webpage wide and high 1/2; The API (API) that convergent-divergent treatingapparatus 13 is provided through the webpage rendering module in the browser that shows this webpage; Send the request message that this webpage is carried out the convergent-divergent processing to the webpage rendering module, this request message comprises this demonstration scaling information; Subsequently, this webpage rendering module is played up processing according to this request message to this webpage, with former webpage wide and high all be contracted to former webpage wide and high 1/2.
Those skilled in the art will be understood that and above-mentionedly webpage is carried out the mode that convergent-divergent handles are merely for example; Other existing or possibly occur from now on webpage is carried out mode that convergent-divergent handles 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.
Subsequently, body matter display device 14 is presented at this body matter on the display screen according to the positional information of body matter in the webpage after convergent-divergent treatingapparatus 13 convergent-divergents are handled in a predefined manner.
Particularly, body matter display device 14 is presented at this body matter on the display screen according to the upper left corner and the lower right corner position coordinates of body matter in the webpage after convergent-divergent treatingapparatus 13 convergent-divergents are handled in a predefined manner.
At this, said predetermined way includes but not limited to:
1) demonstration all over the screen;
2) show between two parties at display screen;
3) show at the display screen top;
4) show in the display screen bottom.
At this, show that in display screen the rule of said body matter includes but not limited to:
1) when predetermined way is demonstration all over the screen, then body matter display device 14 shows body matter with the starting point of the position coordinates of body matter in webpage as screen display on screen.In an example, the position coordinates in the upper left corner of the webpage after convergent-divergent is handled is (0,0); Position coordinates in the webpage of the upper left corner of body matter after convergent-divergent is handled is (50; 10), when then body matter display device 14 is presented at this body matter on the display screen of portable terminal 1, with the pixel coordinate (50 of this body matter in webpage; 10) starting point that shows as the screen upper left corner shows this webpage on screen.
2) body matter display device 14 is according to the upper left corner and the lower right corner position coordinates of body matter in the webpage after convergent-divergent is handled; Can obtain the size of this body matter; If the size of this body matter is less than the resolution of the display screen of portable terminal 1; Promptly this body matter subregion that only need take this display screen can all show; Then body matter display device 14 will show this webpage after convergent-divergent is handled with the mode that suitable user browses when being presented at this body matter on this display screen, as body matter being presented at screen centre or screen below etc.In an example; As shown in Figure 2, the position coordinates in the upper left corner of body matter in this webpage in the webpage after convergent-divergent is handled is (20,50); Then body matter display device 14 is with the point of the position coordinates in this webpage (5; 10) as the starting point of screen display, on screen, show this webpage, be illustrated in the screen centre position to guarantee this body matter.
Those skilled in the art will be understood that the above-mentioned mode that body matter is presented on the display screen is merely for example; Other existing or modes on the display screen that body matter is presented at that possibly 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, be to work continuously between body matter deriving means 11, percent information deriving means 12, convergent-divergent treating apparatus 13 and the body matter display device 14.Particularly, body matter deriving means 11 obtains the body matter in the pending webpage constantly; Percent information deriving means 12 is also constantly according to first pre-defined rule, and based on the resolution of the display screen of size related information and the said portable terminal of said body matter in said webpage, obtains the demonstration scaling information of said webpage; Convergent-divergent treating apparatus 13 carries out convergent-divergent to the said webpage that comprises said body matter and handles also constantly according to said demonstration scaling information; Body matter display device 14 also constantly according to the said positional information of body matter in the webpage after said convergent-divergent is handled through the convergent-divergent processing, is presented at said body matter on the said display screen in a predefined manner.At this; It will be understood by those skilled in the art that " continuing " be meant each device constantly carry out in the above-mentioned pending webpage body matter obtain, show the obtaining of scaling information, the convergent-divergent of webpage and the demonstration of body matter; Until satisfying predetermined stoppage condition, for example body matter deriving means 11 stops obtaining the body matter in the pending webpage in a long time.
Preferably (with reference to Fig. 1), percent information deriving means 12 be according to the size related information of body matter in webpage and the screen resolution of portable terminal, and combine the display mode of this webpage, obtains the demonstration scaling information of said webpage.
At this, the display mode of said webpage includes but not limited to:
1) horizontal screen shows, then percent information deriving means 12 will obtain according to the horizontal screen resolution of display screen and show scaling information.
2) perpendicular screen shows, then percent information deriving means 12 will obtain according to the perpendicular screen resolution of display screen and show scaling information.
3) full screen display, then percent information deriving means 12 will obtain according to the display screen resolution size and show scaling information.
4) non-full screen display, then percent information deriving means 12 will obtain at the display size that on display screen, occupies according to this webpage and show scaling information.
In an example; Body matter is of a size of 150*90, and the screen resolution that the perpendicular screen of portable terminal 1 shows is 100*150, and the screen resolution that horizontal screen shows is 150*100; Then, the display mode of this webpage shows if being horizontal screen; Then the size of body matter can all be presented on the display screen without any need for convergent-divergent, and to obtain the demonstration scaling information of corresponding webpage be 1: 1 to percent information deriving means 12 thus, and promptly wide the and height of webpage does not carry out any convergent-divergent; If the display mode of this webpage is carried out the equal proportion convergent-divergent for perpendicular screen shows and needs to webpage; Then for making this body matter all be presented on the display screen; Needing this body matter dimension shrinks be 100*60, and the demonstration scaling information of the corresponding webpage that obtains of percent information deriving means 12 is thus: webpage is wide and high all be contracted to former webpage wide and high 2/3.
Those skilled in the art will be understood that the display mode of above-mentioned webpage is merely for example, and the display mode of other webpages existing or that possibly occur from now on also should be included in the protection domain of the present invention as applicable to the present invention, and is contained in this with way of reference.
Preferably (with reference to Fig. 1); Body matter display device 14 is according to the positional information of the body matter of handling through convergent-divergent treatingapparatus 13 convergent-divergents in the webpage after convergent-divergent is handled; And the combination user related information, this body matter is presented on the display screen of portable terminal 1 with predetermined display mode.
At this, said user related information includes but not limited to:
1) user preference setting; For example; When the user preference setting illustrates user preset body matter is showed in the screen centre position; Then body matter display device 14 is according to the positional information of body matter in the webpage after convergent-divergent is handled; In conjunction with this user preference setting, this body matter is presented on the display screen centre position of portable terminal 1.
2) user's historical viewings record; For example, body matter display device 14 shows the accumulative total access times of the various display modes of body matter through user's historical viewings record is carried out statistical study on screen when obtaining this user's historical viewings webpage; And then body matter display device 14 adds up the highest display mode of access times with this body matter in history with this user and is presented on the display screen of portable terminal 1 according to the positional information of body matter in the webpage after convergent-divergent is handled.
Those skilled in the art will be understood that above-mentioned user related information is merely for example, and other user related informations existing or that possibly 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 as applicable to the present invention.
At this, the mode that body matter display device 14 is obtained this user related information includes but not limited to:
1) obtains in the left log-on message during according to the user through portable terminal 1 log-on webpage;
2) according to during the user is through portable terminal 1 browsing page by obtaining in user's historical behavior information of extracting in portable terminal 1 or the cookies information that the network equipment write down or by portable terminal 1.
Those skilled in the art will be understood that the mode of above-mentioned demonstration body matter is merely for example; The mode of other demonstration body matters existing or that possibly 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.
Fig. 3 illustrates the equipment synoptic diagram that is used for web page content in accordance with a preferred embodiment of the present invention.The network equipment 2 comprises acquisition request device 21 ', webpage deriving means 22 ', identification information device 23 ' and dispensing device 24 '.Wherein, acquisition request device 21 ' obtains the definite request of body matter from the webpage of portable terminal 1; Webpage deriving means 22 ' is confirmed request according to said body matter, obtains said webpage; Identification information device 23 ' obtains the identification information of the body matter of said webpage according to second pre-defined rule; Dispensing device 24 ' is sent to said portable terminal 1 with said identification information.The body matter deriving means 11 ' of portable terminal 1 comprises request transmitting unit 111 ', information receiving unit 112 ' and content acquiring unit 113 '.Wherein, request transmitting unit 111 ' is confirmed request to the body matter that the network equipment 2 sends said webpage; Information receiving unit 112 ' receives the identification information of the said network equipment said body matter of feedback in response to the definite request of said body matter; Content acquiring unit 113 ' obtains said body matter according to said identification information from said webpage.
At this, the said network equipment 2 includes but not limited to the cloud that computing machine, network host, single network server, a plurality of webserver collection or a plurality of server constitute.At this, cloud is by constituting based on the great amount of calculation machine of cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine of being made up of the loosely-coupled computing machine collection of a group.
At this, install 12 ', 13 ' identically with the front shown in Fig. 2 with reference to the content of the describeddevice 12,13 of Fig. 1 and 14 with 14 ' function, for for simplicity, it is contained in this with way of reference, do not give unnecessary details and do not do.
Work in coordination between each device of the portable terminal 1 and the network equipment 2, to realize the demonstration of webpage body matter.
Particularly; The request transmitting unit 111 ' of portable terminal 1 is confirmed request to the body matter that the network equipment 2 sends this webpage that obtains, and for example, can it be encapsulated as a request message; Like the http request message; And,, be sent to the network equipment 2 like http, https communication protocol through the corresponding communication agreement;
Then, the acquisition request device 21 ' of the network equipment 2 receives in real time and resolves this request message through the mode of monitoring, obtains from the body matter of the webpage of the request transmitting unit 111 ' of portable terminal 1 and confirms request;
Subsequently; Webpage deriving means 22 ' is confirmed request according to this body matter, extracts this body matter and confirms the banner information in the request, like webpage URL; And according to this banner information matching inquiry in web page repository; To obtain the pending webpage that comprises body matter, at this, said web page repository comprises banner information and pairing webpage thereof etc.;
Then, identification information device 23 ' obtains the identification information of the body matter of this webpage according to second pre-defined rule.Wherein, the identification information of said body matter is in the pairing marking language text file of webpage, is used to identify the information of body matter, includes but not limited to:
1) identification information of specific label and this label is like the ID of labels such as < div>in the html file, <img>and this label;
2) routing information of body matter in webpage that utilizes XPath to represent.At this, said XPath is a kind of language of in XML document, searching information, and it uses routing information in XML document, to carry out content navigation.
At this, said marking language text includes but not limited to:
1) HTML(Hypertext Markup Language) file;
2) extensible HyperText Markup Language (XHTML) file;
3) extend markup language (XML) file.
Wherein, said second pre-defined rule based on, but be not limited to, below at least each:
1) size related information of each web page contents in the webpage; For example; The webpage that identification information device 23 ' analyzing web page deriving means 22 ' obtains; And will be to obtain the maximum web page contents of a certain web page contents size in this webpage; Then further confirm as this web page contents and be the body matter of this webpage, and with the identification information of presentation web page size of contents as the identification information of this body matter of acquisition in this webpage in view of the above.
2) content-type information of each web page contents in the webpage; For example; Identification information device 23 ' is through resolving the domain-name information of this website, webpage place; Confirm that this webpage is the webpage in the video website; Then in view of the above with the body matter of the video content in this webpage as this webpage, and with the identification information of the video content in this webpage identification information as body matter;
3) history of the viewing area of each web page contents accumulative total number of clicks in the webpage; For example; Identification information device 23 ' extracts the banner information of this webpage; And in historical viewings record storehouse, carry out matching inquiry according to this banner information; History with the viewing area that obtains the pairing webpage of this banner information and this each web page contents of webpage is clicked record; The history of the viewing area of a certain web page contents accumulative total number of clicks surpasses predeterminedly when clicking frequency threshold value in calculate obtaining this webpage, confirms that this web page contents is a body matter, and with the identification information of this web page contents identification information as body matter.At this, the history that comprises the viewing area of banner information and pairing webpage thereof, this each web page contents of webpage in the said historical viewings record storehouse is clicked record, historical convergent-divergent record etc.
4) history of the viewing area of each web page contents accumulative total convergent-divergent number of times in the webpage; For example; Identification information device 23 ' extracts the banner information of this webpage; And in historical viewings record storehouse, carry out matching inquiry according to this banner information; Historical convergent-divergent record with the viewing area that obtains the pairing webpage of this banner information and this each web page contents of webpage; When the history of the viewing area of a certain web page contents accumulative total convergent-divergent number of times surpasses predetermined convergent-divergent frequency threshold value in calculate obtaining this webpage, confirm that this web page contents is a body matter, and with the identification information of this web page contents identification information as body matter.
Those skilled in the art will be understood that; Above-mentioned several rules not only can be used for the identification information that identification information device 23 ' obtains the body matter of webpage separately; Can also wherein any several be made up, to be used for the identification information that identification information device 23 ' obtains the body matter of webpage.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the identification information of body matter according to second pre-defined rule is merely for example; Other existing or modes of identification information of obtaining body matter according to second pre-defined rule that possibly 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.
Subsequently, dispensing device 24 ' is sent to portable terminal 1 with the identification information communication mode by appointment that identification information device 23 ' obtains;
Then, the information receiving unit 112 ' real-time listening of portable terminal 1 and reception are from the identification information of the body matter of the webpage of the network equipment 2;
Subsequently, content acquiring unit 113 ' according to should (etc.) identification information, for example from the html file of webpage, extract should (etc.) the pairing web page contents of identification information, and will be somebody's turn to do (etc.) web page contents is as the body matter of this webpage.
Those skilled in the art will be understood that the obtain manner of definite obtain manner of asking of aforementioned body content and/or webpage and/or the obtain manner of identification information and/or the mode of transmission identification information are merely for example; Other body matters existing or that possibly occur from now on confirm that obtain manner and/or the mode of sending identification information of obtain manner and/or identification information of obtain manner and/or webpage of request 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.
Those skilled in the art will be understood that also the send mode of the definite request of aforementioned body content and/or the receive mode of identification information and/or the obtain manner of body matter are merely for example; Other body matters existing or that possibly occur from now on confirm that the obtain manner of receive mode and/or body matter of send mode and/or identification information of request 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.
Fig. 4 illustrates the method flow diagram that is used for web page content according to one aspect of the invention.Portable terminal 1 includes but not limited to any that can carry out man-machine interaction through keyboard, telepilot, touch pad or voice-operated device with the user and have electronic equipments such as the function of surfing the web; Like smart mobile phone, PDA, POS machine, vehicle-mounted computer etc., its screen size is far smaller than the display sizes of desktop computer usually.
As shown in Figure 4, in step S1, portable terminal 1 obtains the body matter in the pending webpage.
Particularly, in step S1, portable terminal 1 answers Event triggered in real time or termly from the web page storage storehouse of portable terminal 1 or third party device, to obtain the body matter in pending webpage and this pending webpage.At this, said body matter means to be needed in the webpage to focus on the content to user's displaying, includes but not limited to:
1) picture;
2) video;
3) word content piece.
Those skilled in the art will be understood that the aforementioned body content is merely for example, and other body matters existing or that possibly 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 as applicable to the present invention.
In an example; In step S1; The API that portable terminal 1 provides according to third party device (API); Answer Event triggered in real time or termly to send the request message that receives the body matter in certain pending webpage, and receive the body matter in this pending webpage that this third party device returns in response to this request message to this third party device; Or the body matter of third party device active in portable terminal 1 certain pending webpage of propelling movement, the body matter that portable terminal 1 receives in this pending webpage.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the body matter in the pending webpage is merely for example; Other existing or modes of obtaining the body matter in the pending webpage that possibly 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.
Then; In step S2; Portable terminal 1 is according to first pre-defined rule, and based on the resolution of the display screen of size related information and the said portable terminal of its body matter that in step S1, obtains in said webpage, obtains the demonstration scaling information of said webpage.
Particularly; At first; In step S2; Portable terminal 1 reads the size related information of this body matter for example according to the identification information of body matter in the html file of this webpage in its pending webpage that in step S1, obtains from the html file of this webpage, and from the parameter information storehouse of portable terminal 1, inquires about the resolution of the display screen that obtains this portable terminal 1; Then, in step S2, portable terminal 1 is according to first pre-defined rule, and based on the resolution of the display screen of the size related information of this body matter in webpage and this portable terminal 1, obtains the demonstration scaling information of this webpage.
Wherein, said first pre-defined rule includes but not limited to:
1) body matter being carried out convergent-divergent with the mode of full screen display shows;
2) guaranteeing that body matter can all be presented under the prerequisite on the display screen of portable terminal 1, carries out convergent-divergent with the displaying ratio near the body matter original size and shows.
At this, the size related information of said body matter in webpage includes but not limited to:
Wide and the high numerical value of-body matter in webpage,
Wide and high account for this webpage wide and high number percent of-body matter in webpage.
For example, when body matter was a pictures, its size related information can default to the original wide high numerical value of this picture; If the explicit wide high numerical value of demonstration that this picture is set in webpage, as shown in the picture tag attribute of the html file of this webpage, then with it as the size related information of this picture in webpage.
At this, the said mode of obtaining the demonstration scaling information of webpage includes but not limited to:
1) when first pre-defined rule comprises body matter is carried out the convergent-divergent displaying with the mode of full screen display; In step S2; Portable terminal 1 obtain with the size of body matter (as, be unit with the pixel) zoom to display screen resolution size the demonstration scaling information of this webpage when consistent.
In an example; Body matter is of a size of 120*140 (=wide * is high), and the resolution sizes of display screen is 100*100, then needs this body matter is contracted to 100*100 according to display resolution; In view of the above; In step S2, the demonstration scaling information that portable terminal 1 obtains webpage is: wide 5/6 wide (=100/120) of former webpage that is contracted to, height is contracted to 5/7 high (=100/140) of former webpage.
2) when being included in, first pre-defined rule guarantees that body matter can all be presented under the prerequisite on the display screen; Displaying ratio with near body matter original pixels size carries out convergent-divergent; In step S2, the mode that portable terminal 1 obtains the demonstration scaling information of webpage includes but not limited to following situation:
A. as the wide and Gao Jun of body matter during less than display screen resolution wide and high; Then need body matter is showed with original size; Therefore in step S2, the demonstration scaling information of the webpage that portable terminal 1 obtains is 1: 1, and promptly wide the and height of webpage does not carry out any convergent-divergent.
B. when the wide and height of wide and the high and display screen resolution of body matter not simultaneously; Then need from wide/high and the display screen resolution of body matter wide/senior middle school; Acquisition compare numerical value little wide/high as the convergent-divergent benchmark, with the scaling of the webpage of confirming to comprise this body matter.In an example; Body matter is of a size of 100*50, and display screen resolution is 60*70, then needs the size of body matter with 60*50 shown; Thus in step S2; The demonstration scaling information of the webpage that portable terminal 1 obtains is: wide 3/5 wide (=60/100) of former webpage that is contracted to, high and former webpage be 1: 1 at high proportion, promptly the height of webpage does not carry out convergent-divergent.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the demonstration scaling information of webpage is merely for example; The mode of other existing or demonstration scaling information of obtaining webpage that possibly 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.
Preferably; In step S2; Portable terminal 1 is according to said first pre-defined rule, and based on the resolution of the display screen of size related information and the portable terminal 1 of body matter in webpage, obtains the demonstration scaling information of this webpage being carried out the equal proportion convergent-divergent.At this, said equal proportion convergent-divergent means webpage wide and high is carried out the amplification of same ratio or dwindled, and the wide and high of the body matter in this webpage also can correspondingly be amplified with this identical ratio or dwindle.
In an example; Body matter is of a size of 100*50; Display screen resolution is 50*70, if first pre-defined rule carries out convergent-divergent for guaranteeing that body matter can all be presented under the prerequisite on the display screen with the displaying ratio near body matter original pixels size; And need the wide of body matter dwindled with identical ratio with high; Size after then this body matter dwindles should be 50*25, and in step S2, the demonstration scaling information of the webpage that portable terminal 1 obtains is thus: wide and high all be contracted to former webpage wide and high 1/2.
At this, portable terminal 1 carries out the demonstration scaling information of equal proportion convergent-divergent according to what it obtained to webpage in step S2, this webpage is carried out the equal proportion convergent-divergent, the web page contents behind the convergent-divergent can be out of shape, to guarantee user's viewing experience.
Those skilled in the art will be understood that the above-mentioned mode of obtaining web displaying scaling information is merely for example; Other existing or modes of obtaining web displaying scaling information that possibly 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.
Subsequently, in step S3, portable terminal 1 carries out convergent-divergent to the webpage that comprises body matter and handles according to its demonstration scaling information of in step S2, obtaining.
Particularly; In step S3; Portable terminal 1 is according to the demonstration scaling information of its webpage that in step S2, obtains; For example pass through the webpage rendering intent of the browser of this webpage of demonstration, the convergent-divergent that this webpage that comprises body matter carries out equal proportion or non-equal proportion is played up processing, with the webpage behind the acquisition convergent-divergent.In an example, in step S2, the demonstration scaling information of the webpage that portable terminal 1 obtains is: wide and high all be contracted to former webpage wide and high 1/2; In step S3; The API (API) that portable terminal 1 is provided through the webpage rendering module in the browser that shows this webpage; Send the request message that this webpage is carried out the convergent-divergent processing to the webpage rendering module, this request message comprises this demonstration scaling information; Subsequently, this webpage rendering module is played up processing according to this request message to this webpage, with former webpage wide and high all be contracted to former webpage wide and high 1/2.
Those skilled in the art will be understood that and above-mentionedly webpage is carried out the mode that convergent-divergent handles are merely for example; Other existing or possibly occur from now on webpage is carried out mode that convergent-divergent handles 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.
Subsequently, in step S4, portable terminal 1 is presented at this body matter on the display screen according to the positional information in the webpage of body matter after convergent-divergent is handled in step S3 through it in a predefined manner.
Particularly, in step S4, portable terminal 1 is presented at this body matter on the display screen according to the upper left corner and lower right corner position coordinates in the webpage of body matter after convergent-divergent is handled in step S3 through it in a predefined manner.
At this, said predetermined way includes but not limited to:
1) demonstration all over the screen;
2) show between two parties at display screen;
3) show at the display screen top;
4) show in the display screen bottom.
At this, show that in display screen the rule of said body matter includes but not limited to:
1) when predetermined way is demonstration all over the screen, then in step S4, portable terminal 1 shows body matter with the starting point of the position coordinates of body matter in webpage as screen display on screen.In an example, the position coordinates in the upper left corner of the webpage after convergent-divergent is handled is (0,0); Position coordinates in the webpage of the upper left corner of body matter after convergent-divergent is handled is (50,10), then in step S4; When portable terminal 1 is presented at this body matter on the display screen of portable terminal 1; Starting point with the pixel coordinate (50,10) of this body matter in webpage shows as the screen upper left corner shows this webpage on screen.
2) in step S4; Portable terminal 1 is according to the upper left corner and the lower right corner position coordinates of body matter in the webpage after convergent-divergent is handled; Can obtain the size of this body matter, if the size of this body matter is less than the resolution of the display screen of portable terminal 1, promptly this body matter subregion that only need take this display screen can all show; Then in step S4; Portable terminal 1 will show this webpage after convergent-divergent is handled with the mode that suitable user browses when being presented at this body matter on this display screen, as body matter being presented at screen centre or screen below etc.In an example, as shown in Figure 2, the position coordinates in the upper left corner of body matter in this webpage in the webpage after convergent-divergent is handled is (20; 50); Then in step S4, portable terminal 1 is with the starting point of the point of the position coordinates in this webpage (5,10) as screen display; On screen, show this webpage, be illustrated in the screen centre position to guarantee this body matter.
Those skilled in the art will be understood that the above-mentioned mode that body matter is presented on the display screen is merely for example; Other existing or modes on the display screen that body matter is presented at that possibly 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, portable terminal 1 is to work continuously in step S1, step S2, step S3 and step S4.Particularly, in step S1, portable terminal 1 obtains the body matter in the pending webpage constantly; In step S2, portable terminal 1 is also constantly according to first pre-defined rule, and based on the resolution of the display screen of size related information and the said portable terminal of said body matter in said webpage, obtains the demonstration scaling information of said webpage; In step S3, portable terminal 1 carries out convergent-divergent to the said webpage that comprises said body matter and handles also constantly according to said demonstration scaling information; In step S4, portable terminal 1 also constantly according to the said positional information of body matter in the webpage after said convergent-divergent is handled through the convergent-divergent processing, is presented at said body matter on the said display screen in a predefined manner.At this; It will be understood by those skilled in the art that " continuing " be meant portable terminal 1 in each step, constantly carry out in the above-mentioned pending webpage body matter obtain, show the obtaining of scaling information, the convergent-divergent of webpage and the demonstration of body matter; Until satisfying predetermined stoppage condition, for example portable terminal 1 stops obtaining the body matter in the pending webpage in a long time.
Preferably (with reference to Fig. 4), in step S2, portable terminal 1 is according to the size related information of body matter in webpage and the screen resolution of portable terminal, and combines the display mode of this webpage, obtains the demonstration scaling information of said webpage.
At this, the display mode of said webpage includes but not limited to:
1) horizontal screen shows, then in step S2, portable terminal 1 will obtain according to the horizontal screen resolution of display screen and show scaling information.
2) perpendicular screen shows, then in step S2, portable terminal 1 will obtain according to the perpendicular screen resolution of display screen and show scaling information.
3) full screen display, then in step S2, portable terminal 1 will obtain according to the display screen resolution size and show scaling information.
4) non-full screen display, then in step S2, portable terminal 1 will obtain at the display size that on display screen, occupies according to this webpage and show scaling information.
In an example, body matter is of a size of 150*90, and the screen resolution that the perpendicular screen of portable terminal 1 shows is 100*150; The screen resolution that horizontal screen shows is 150*100; Then, the display mode of this webpage shows that then the size of body matter can all be presented on the display screen without any need for convergent-divergent, thus in step S2 if being horizontal screen; The demonstration scaling information that portable terminal 1 obtains corresponding webpage is 1: 1, and promptly wide the and height of webpage does not carry out any convergent-divergent; If the display mode of this webpage is carried out the equal proportion convergent-divergent for perpendicular screen shows and needs to webpage; Then for making this body matter all be presented on the display screen; Needing this body matter dimension shrinks is 100*60; In step S2, the demonstration scaling information of the corresponding webpage that portable terminal 1 obtains is thus: webpage is wide and high all be contracted to former webpage wide and high 2/3.
Those skilled in the art will be understood that the display mode of above-mentioned webpage is merely for example, and the display mode of other webpages existing or that possibly occur from now on also should be included in the protection domain of the present invention as applicable to the present invention, and is contained in this with way of reference.
Preferably (with reference to Fig. 4); In step S4; Portable terminal 1 is according to the positional information of body matter in the webpage after convergent-divergent is handled through its convergent-divergent processing in step S3, and the combination user related information, and this body matter is presented on the display screen of portable terminal 1 with predetermined display mode.
At this, said user related information includes but not limited to:
1) user preference setting; For example; When the user preference setting illustrates user preset body matter is showed in the screen centre position; Then in step S4; Portable terminal 1, is presented at this body matter on the display screen centre position of portable terminal 1 in conjunction with this user preference setting according to the positional information of body matter in the webpage after convergent-divergent is handled.
2) user's historical viewings record; For example, in step S4, portable terminal 1 shows the accumulative total access times of the various display modes of body matter through user's historical viewings record is carried out statistical study on screen when obtaining this user's historical viewings webpage; And then portable terminal 1 adds up the highest display mode of access times with this body matter in history with this user and is presented on the display screen of portable terminal 1 according to the positional information of body matter in the webpage after convergent-divergent is handled.
Those skilled in the art will be understood that above-mentioned user related information is merely for example, and other user related informations existing or that possibly 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 as applicable to the present invention.
At this, in step S4, the mode that portable terminal 1 obtains this user related information includes but not limited to:
1) obtains in the left log-on message during according to the user through portable terminal 1 log-on webpage;
2) according to during the user is through portable terminal 1 browsing page by obtaining in user's historical behavior information of extracting in portable terminal 1 or the cookies information that the network equipment write down or by portable terminal 1.
Those skilled in the art will be understood that the mode of above-mentioned demonstration body matter is merely for example; The mode of other demonstration body matters existing or that possibly 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.
Fig. 5 illustrates the method flow diagram that is used for web page content in accordance with a preferred embodiment of the present invention.In step S11 ', portable terminal 1 is confirmed request to the body matter that the network equipment 2 sends said webpage, and correspondingly, the network equipment 2 obtains from the body matter of the webpage of portable terminal 1 confirms request; In step S5 ', the network equipment 2 is confirmed request according to said body matter, obtains said webpage; In step S6 ', the network equipment 2 obtains the identification information of the body matter of said webpage according to second pre-defined rule; In step S7 ', the network equipment 2 is sent to said portable terminal 1 with said identification information; In step S12 ', portable terminal 1 receives the identification information of the said network equipment said body matter of feedback in response to the definite request of said body matter; In step S13 ', portable terminal 1 obtains said body matter according to said identification information from said webpage.
At this, the said network equipment 2 includes but not limited to the cloud that computing machine, network host, single network server, a plurality of webserver collection or a plurality of server constitute.At this, cloud is by constituting based on the great amount of calculation machine of cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine of being made up of the loosely-coupled computing machine collection of a group.
At this; The content of described portable terminal 1 in step S2, step S3 and step S4 is identical with reference to Fig. 4 with the front for the function of portable terminal shown in Fig. 51 in step S2 ', step S3 ' and step S4 '; For for simplicity, it is contained in this with way of reference, do not give unnecessary details and do not do.
Portable terminal 1 is worked in coordination in each step with the network equipment 2, to realize the demonstration of webpage body matter.
Particularly, in step S11 ', portable terminal 1 is confirmed request to the body matter that the network equipment 2 sends this webpage that obtains; For example, can it be encapsulated as a request message, like the http request message; And,, be sent to the network equipment 2 like http, https communication protocol through the corresponding communication agreement; Then, the network equipment 2 receives in real time through the mode of monitoring and resolves this request message, obtains the definite request of body matter from the webpage of portable terminal 1;
Subsequently, in step S5 ', the network equipment 2 is confirmed request according to this body matter; Extract this body matter and confirm the banner information in the request; Like webpage URL, and according to this banner information matching inquiry in web page repository, to obtain the pending webpage that comprises body matter; At this, said web page repository comprises banner information and pairing webpage thereof etc.;
Then, in step S6 ', the network equipment 2 obtains the identification information of the body matter of this webpage according to second pre-defined rule.Wherein, the identification information of said body matter is in the pairing marking language text file of webpage, is used to identify the information of body matter, includes but not limited to:
1) identification information of specific label and this label is like the ID of labels such as < div>in the html file, <img>and this label;
2) routing information of body matter in webpage that utilizes XPath to represent.At this, said XPath is a kind of language of in XML document, searching information, and it uses routing information in XML document, to carry out content navigation.
At this, said marking language text includes but not limited to:
1) HTML(Hypertext Markup Language) file;
2) extensible HyperText Markup Language (XHTML) file;
3) extend markup language (XML) file.
Wherein, said second pre-defined rule based on, but be not limited to, below at least each:
1) size related information of each web page contents in the webpage; For example; In step S6 '; The network equipment 2 is resolved its webpage that in step S5 ', obtains; And will then further confirm as the body matter of this web page contents to obtain the maximum web page contents of a certain web page contents size in this webpage for this webpage, and with the identification information of presentation web page size of contents as the identification information of this body matter of acquisition in this webpage in view of the above.
2) content-type information of each web page contents in the webpage; For example; In step S6 '; The network equipment 2 is through resolving the domain-name information of this website, webpage place; Confirm that this webpage is the webpage in the video website, then in view of the above with the body matter of the video content in this webpage as this webpage, and with the identification information of the video content in this webpage identification information as body matter;
3) history of the viewing area of each web page contents accumulative total number of clicks in the webpage; For example; In step S6 '; The network equipment 2 extracts the banner information of this webpage; And in historical viewings record storehouse, carry out matching inquiry according to this banner information, and click record with the history of the viewing area that obtains the pairing webpage of this banner information and this each web page contents of webpage, surpass predetermined when clicking frequency threshold value when calculating the history accumulative total number of clicks that obtains the viewing area of a certain web page contents in this webpage; Confirm that this web page contents is a body matter, and with the identification information of this web page contents identification information as body matter.At this, the history that comprises the viewing area of banner information and pairing webpage thereof, this each web page contents of webpage in the said historical viewings record storehouse is clicked record, historical convergent-divergent record etc.
4) history of the viewing area of each web page contents accumulative total convergent-divergent number of times in the webpage; For example; In step S6 '; The network equipment 2 extracts the banner information of this webpage; And in historical viewings record storehouse, carry out matching inquiry according to this banner information, with the historical convergent-divergent record of the viewing area that obtains the pairing webpage of this banner information and this each web page contents of webpage, when calculating the history accumulative total convergent-divergent number of times that obtains the viewing area of a certain web page contents in this webpage and surpass predetermined convergent-divergent frequency threshold value; Confirm that this web page contents is a body matter, and with the identification information of this web page contents identification information as body matter.
Those skilled in the art will be understood that; Above-mentioned several rules not only can be used for the identification information that the network equipment 2 obtains the body matter of webpage separately; Can also wherein any several be made up, to be used for the identification information that the network equipment 2 obtains the body matter of webpage.
Those skilled in the art will be understood that the above-mentioned mode of obtaining the identification information of body matter according to second pre-defined rule is merely for example; Other existing or modes of identification information of obtaining body matter according to second pre-defined rule that possibly 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.
Subsequently, in step S7 ', the network equipment 2 is sent to portable terminal 1 with its identification information that in step S6 ', obtains communication mode by appointment.
Then, in step S12 ', portable terminal 1 real-time listening and reception are from the identification information of the body matter of the webpage of the network equipment 2;
Subsequently, in step S13 ', portable terminal 1 according to should (etc.) identification information, for example from the html file of webpage, extract should (etc.) the pairing web page contents of identification information, and will be somebody's turn to do (etc.) web page contents is as the body matter of this webpage.
Those skilled in the art will be understood that the obtain manner of definite obtain manner of asking of aforementioned body content and/or webpage and/or the obtain manner of identification information and/or the mode of transmission identification information are merely for example; Other body matters existing or that possibly occur from now on confirm that obtain manner and/or the mode of sending identification information of obtain manner and/or identification information of obtain manner and/or webpage of request 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.
Those skilled in the art will be understood that also the send mode of the definite request of aforementioned body content and/or the receive mode of identification information and/or the obtain manner of body matter are merely for example; Other body matters existing or that possibly occur from now on confirm that the obtain manner of receive mode and/or body matter of send mode and/or identification information of request 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 addition; Existing browser can be carried out the above-mentioned method that is used for web page content through operation on portable terminal; To become a kind of new browser; Maybe can be through on portable terminal, moving the above-mentioned method that is used for web page content of carrying out with existing browser cooperation; With the browser plug-in as existing browser, existing browser can be the Maxthon browser of the IE browser of for example Microsoft company, the Firefox browser of Mozilla company, the Chrome browser of Google company, the company of roaming, the opera browser of Opera company, 360 browsers of 360 companies, the search dog browser of Sohu.com Inc., the TT of the Tengxun browser of company of Tengxun etc.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and under 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 accompanying claims rather than above-mentioned explanation, therefore is intended to the implication of the equivalents that drops on claim and all changes in the scope are included in the present invention.Should any Reference numeral in the claim be regarded as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " speech, and odd number is not got rid of plural number.A plurality of unit of stating in the device claim or device also can be realized through 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.