Summary of the invention
In view of the above problems, automatic alignment schemes and device when the purpose of this invention is to provide a kind of portable terminal web page browsing, when making the user in the process of browsing page, carry out moving of virtual mouse or page turning, browser can help the user to be alignd with the two ends, the left and right sides of mobile phone screen in the two ends, the left and right sides of certain piece content area in the webpage according to the direction of user's mobile virtual mouse automatically, thereby help the user automatically suitable browsing content to be pushed in the screen scope, to promote user's viewing experience.
According to an aspect of the present invention, the automatic alignment schemes when a kind of portable terminal web page browsing is provided comprises the steps:
According to the variation of focal position in the browser, determine the present residing content piece of described focus;
Determine the off-set value of a certain reference point of described content piece apart from the corresponding reference point of mobile terminal screen;
With the webpage corresponding off-set value of rolling, the reference point of described content piece is coincided with the corresponding reference point of mobile terminal screen.
In addition, preferably, after the present residing content piece of definite described focus, further determine the shared composing width of described content piece, judge then whether described content piece can align, if described content piece can align, then proceed the described step of determining the reference point of described content piece apart from the off-set value of the corresponding reference point of mobile terminal screen; If cannot align, then finish.
According to a further aspect in the invention, the automatic alignment means when a kind of portable terminal web page browsing is provided comprises:
Object content block analysis unit is used for determining the present residing content piece of described focus according to browsing the variation of thinking highly of the focal position;
The off-set value determining unit is used for determining the off-set value of a certain reference point of described content piece apart from the corresponding reference point of mobile terminal screen; And
Webpage alignment rolling unit is used for the webpage determined off-set value of described off-set value determining unit of rolling, so that the reference point of described content piece coincides with the high order end of the corresponding reference point of mobile phone screen.
On the one hand, the present invention also provides a kind of portable terminal that comprises display screen, browser and above-mentioned automatic alignment means again.
Utilize above-mentioned according to automatic alignment schemes of the present invention and device, determine the content piece that user's needs lock by the moving direction of controlling virtual mouse with navigation key according to the user, browser helps the user with the two ends, the left and right sides of this piece content area and the left and right sides justify align of mobile phone screen automatically then, the a certain content piece of Subscriber Locked necessary operations number of times can be reduced, user's surfing and operating experience can be greatly promoted again.And the button operation that is used for the user reduces, and correspondingly, the respective handling of program also reduces thereupon, thereby the power consumption of portable terminal is declined to a great extent.
In order to realize above-mentioned and relevant purpose, one or more aspects of the present invention comprise the feature that the back will describe in detail and particularly point out in the claims.Following explanation and accompanying drawing describe some illustrative aspects of the present invention in detail.Yet, the indication of these aspects only be some modes that can use in the variety of way of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Embodiment
Below with reference to accompanying drawing specific embodiments of the invention are described in detail.
Along with the development of touch screen technology, its application on portable terminal also more and more widely.For common portable terminal, the position of virtual mouse is exactly the focal position of its screen display content, and in the portable terminal of touch-screen type, do not have explicit virtual mouse, its focal position along with the generation of user's contact, move and locking and changing.In order more clearly to represent technical scheme of the present invention, be automatic alignment schemes and the device of example when web page browsing according to this law is described only below with the portable terminal of non-touch-screen form, undoubtedly, for the portable terminal of touch-screen form, its focal position promptly is equivalent to the virtual mouse of the portable terminal of non-touch-screen form, the locking of its focal position and move with virtual mouse determine and mobile similar, therefore, be equally applicable to the portable terminal of touch-screen form below about the statement of technical solution of the present invention.
In addition, the automatic alignment of the present invention when institute's browsed content piece being moved its off-set value apart from mobile terminal screen realize web page browsing, when determining its off-set value based on reference point can be the reference point locations that off-set value can conveniently be determined in high order end, middle position or the low order end position etc. of high order end, middle position or the low order end of content piece and corresponding mobile terminal screen, certainly, the random site of also not getting rid of other, different on only determining in the position.
Which point in the content piece to be the reference position point no matter with, automatically be offset the off-set value that its alignment shows the corresponding reference point locations of back in mobile terminal screen before the alignment as long as determined this reference point locations point, just this content piece can be moved the distance of this off-set value to the direction opposite with deviation post, make the reference point of content piece can realize aliging automatically to overlapping with the corresponding reference point of mobile terminal screen.
In the embodiment statement below, be that reference point is the method and apparatus that example illustrates automatic alignment with the high order end of content piece and the high order end of mobile terminal screen only, this scheme is equally applicable to select the automatic alignment scheme of other positions as reference point (as low order end, middle position etc.).
The process flow diagram of the automatic alignment schemes when Fig. 1 shows according to web page browsing of the present invention.
As shown in Figure 1, when the user need be by controlling portable terminals such as mobile phone navigation key with the position of virtual mouse when needing the browsed content piece to move (control in other words touch-screen with the focal position in the browser when needs browsed content piece moves), browser is determined the present residing content piece of this virtual mouse (or focus) (step S110) according to the variation of virtual mouse (or focus) position; Then, further determine the off-set value (step S120) of the high order end of this content piece apart from the mobile terminal screen high order end; After determining off-set value, be about to the webpage corresponding off-set value of rolling, so that the high order end of the high order end of described content piece and mobile phone screen coincides (step S130).
In addition, the present invention is in specific implementation process, after step S110 has determined the present residing content piece of virtual mouse, further determine the shared composing width of described content piece, judge then whether this content piece can align, if can align, then proceed the processing that step S120 determines off-set value; If cannot align, then directly finish this flow process of alignment automatically.
The judgement that whether can align for the content piece in a preferred embodiment of the invention, if the composing width of content visible is less than or equal to the width of mobile terminal screen in this content piece, thinks that then this content piece can align; Otherwise,, think that then this content piece cannot align if the composing width of content visible is greater than the width of mobile terminal screen in the content piece.In addition, for the convenience of explaining, in the following description, the content piece that also can align is referred to as the piece that aligns.
For example, if the width of mobile phone screen is 240 pixels (relatively the screen of Nokia's mobile phone of main flow all is this width mostly now), and the width of a certain content piece is 230 pixels, then mobile phone browser belongs to the alignment piece by relatively judging this content piece, promptly can adopt automatic alignment strategy of the present invention correspondingly to handle.
Particularly, determined off-set value can be with the moving direction that can determine the content piece and the various ways record of displacement in step S120, form as " offset direction+absolute drift value ", the perhaps form of " relativity shift value ", wherein, the offset direction can be determined with the input information of navigation key or the moving direction of virtual mouse, also can determine with the relative position of content piece high order end and mobile phone screen high order end.For instance, if virtual mouse is moved to the left, off-set value is 130 pixels, according to the negative right positive expression mode in a general coordinate left side, then off-set value can be recorded as " left side 130 " or " 130 "; In step S130, just can the high order end of content piece and the high order end of mobile phone screen be coincided in the other direction to the right then, can realize alignment according to the off-set value that writes down with promptly corresponding 130 pixels of rolling of webpage.
In addition, in step S103, after determining off-set value, the roll rolling operation of corresponding off-set value of webpage can there be multiple implementation, both can be to settle at one go, also can be with the mode of the multiframe animation webpage that rolls evenly, can also be that mode with the multiframe animation has the webpage that necessarily rolls post, also can be to quicken the ground rolling webpage or the like that slows down again earlier in the mode of multiframe animation, no matter adopt which kind of roll mode, as long as webpage is rolled into the high order end of determined alignment piece and the high order end of mobile phone screen coincides according to determined off-set value.
In above-mentioned mode with the multiframe animation is rolled the implementation of webpage, the terminal setting (resolution, font size etc.) of the distance that the frame number of animation can move according to the webpage needs, user's setting or portable terminal waits to determine, or can be for more than two frames, two frames.
Particularly, as example, in the browsing page process, utilize alignment strategy of the present invention that the process of the disposable rolling respective offsets of webpage value is done specifically, explained to the user below.
Fig. 2 a and Fig. 2 b are the initial demonstration synoptic diagram of webpage in mobile phone browser that a user will browse, and wherein Fig. 2 a is the demonstration synoptic diagram of the micro state of this webpage in mobile phone browser, and Fig. 2 b is the demonstration synoptic diagram of non-micro state.At this, the screen width of supposing this mobile phone is 240 pixels, and the composing width of the content piece shown in Fig. 2 b under non-micro state is 230 pixels, because the composing width of this content piece, therefore can be used alignment strategy of the present invention less than the screen width of mobile phone.
Embodiment one
Fig. 3 is the concrete application flow synoptic diagram of the embodiment of the invention one.As shown in Figure 3, because the user needs the current display position in mobile phone screen of browsed content piece to take back, so the navigation key that the user need press left moves this content piece (step S301) by the mobile virtual mouse; Browser is after identifying user's input information, promptly according to the indication of navigation key virtual mouse is moved to the left a step-length (step S302) according to the processing mode of routine, in general, virtual mouse is determined by the parameter of portable terminal itself according to the distance of the step-length that the indication of navigation key is moved, in this specific embodiment, the distance of this step-length is 12 pixels.Then, in step S303, browser determines that virtual mouse moves the content piece at place afterwards, determines the shared composing width of this content piece simultaneously, determines that promptly the composing width of this content piece is 230 pixels; Then, in step S304,, judge whether this content piece can align further by the relatively screen width of mobile phone and the composing width of this content piece; As previously mentioned, the mobile phone screen width in the present embodiment is 240 pixels, so this content piece can align, and promptly this content piece belongs to the alignment piece; After definite this content piece is for the alignment piece, enter step S305, by calculating the high order end of determining this alignment piece off-set value, in the present embodiment, suppose that this off-set value is 130 pixels apart from the mobile phone screen high order end; Then in step S306, disposable with the whole webpage above-mentioned off-set value (130 pixel) of rolling left, and the demonstration of clear screen, thus final complete content piece is presented on the mobile phone screen, so far, use the align application flow of strategy of the present invention and finish.
Fig. 4 is the display effect of network page synoptic diagram after should finishing with flow process, as shown in Figure 4, handles through alignment strategy of the present invention, and the user only need operate navigation key one time, and the alignment piece that need browse is all moved on the mobile phone screen.And if use a conventional step-length, the move operation of a step-length, move the off-set value of 130 pixels with the distance of each step-length 12 pixel, the user needs the continued operation navigation key can see the full content of alignment piece for 12 times.To recently seeing, it is wrong that the present invention can help the user to save a large amount of button grass, greatly promotes user's web page browsing speed and operating experience.
In above-mentioned application flow, if the composing width of content piece under non-micro state is greater than the width of mobile phone screen, then pass through the judgement of step S304, browser can determine that this content piece cannot align, then directly finish the align application flow of strategy of the present invention, and then adopt the conventional navigation process that strategy or other feasible browsing modes are carried out webpage of browsing according to user's operation.
In present embodiment one, described user operates the processing of aliging automatically after the step-length and just gives an example, in the operation of the automatic registration process of actual triggering can be two or more step-lengths, perhaps other more flexible friendly reference of aliging automatically of judging whether, such as just using automatic alignment, comprise rolling, page turning of the moving of virtual mouse, the page or the like so long as the focus that the user browses changes.
Embodiment two
As another example, aspect the realization of alignment roll mode, embodiment two finishes the rolling alignment operation of webpage by the at the uniform velocity animation of one 5 frame, and dynamic page rolling effect can make the user obtain to compare to previous embodiment one better web page browsing and experience.Wherein the frame number of the at the uniform velocity animation of webpage realization alignment operation can be set in advance by the user, also can preset a default value when the browser initialization, and the default value of this frame number also can be made amendment in the later stage according to the demand of oneself by the user certainly.
Fig. 5 is the concrete application flow synoptic diagram of the embodiment of the invention two.As shown in Figure 5, the navigation key pressed left of user moves this content piece (step S501); Browser is moved to the left a step-length (step S502) according to the indication of navigation key with virtual mouse; Then, browser determines that virtual mouse moves the content piece at place afterwards, determines the shared composing width (step S503) of this content piece simultaneously; Then, browser passes through to compare the screen width of mobile phone and the composing width of this content piece, and judging this content piece is (the step S504) that can align; After definite this content piece is for the alignment piece, at step S505, by calculating the high order end of determining this alignment piece off-set value apart from the mobile phone screen high order end; In step S506, by calculating the rolling distance of determining that every frame animation will be finished; In step S507, according to roll at the uniform velocity, the continuously frame number of default animation of determined rolling distance among the step S506, and after each the rolling, refresh the screen display of mobile phone, like this, after rolling the last time, refreshing, just final complete content piece is presented on the mobile phone screen, so far, uses the application flow end that the present invention aligns tactful.
More specifically, in present embodiment two, be 230 pixels if the mobile phone screen width is the composing width of 240 pixels, the determined content piece of virtual mouse, then in step S504, judge this content piece and be the alignment piece; The high order end of this alignment piece that calculates then is 130 pixels apart from the off-set value of mobile phone screen high order end, and the frame number of the animation that default webpage rolls is 5, therefore in step S506, determine that by calculating the rolling distance that every frame animation will be finished is 26 pixels (130 pixels are divided by 5), then, in step S507, start a timer, this timer triggered once every a set time (as 0.1 second), carry out the rolling webpage and refresh the operation that mobile phone screen shows after each the triggering, the distance of each rolling webpage is 26 pixels, and after the processing of the 5th frame finishes, the timeing closing device is finally by this uniform roll's webpage, the mode that clear screen shows is presented on the mobile phone screen complete content piece.
Mobile phone screen display effect in present embodiment two application processes is shown in Fig. 6 a~6e.
Equally, in present embodiment two, described user operates the processing of aliging automatically after the step-length and just gives an example, in the operation of the automatic registration process of actual triggering can be two or more step-lengths, perhaps other more flexible friendly reference of aliging automatically of judging whether, such as just using automatic alignment, comprise rolling, page turning of the moving of virtual mouse, the page or the like so long as the focus that the user browses changes.
Automatic alignment schemes when below describing in detail in conjunction with specific embodiments according to portable terminal web page browsing of the present invention.Automatic alignment schemes during above-mentioned web page browsing of the present invention can adopt software to realize, also can adopt hardware to realize, or adopt the mode of software and hardware combination to realize.
On the other hand, the corresponding automatic alignment means of automatic alignment schemes when the present invention also provides a kind of and above-mentioned web page browsing, the block diagram of the automatic alignment means 700 when Fig. 7 shows according to portable terminal web page browsing of the present invention.As shown in Figure 7, this automatic alignment means 700 comprises object content block analysis unit 710, off-set value determining unit 720 and webpage alignment rolling unit 730.Wherein, object content block analysis unit 710 also comprises object content piece determining unit and composing width determining unit (not shown), is respectively applied for present residing content piece of virtual mouse and the shared composing width of this content piece of determining portable terminal.
When the user need be by controlling portable terminals such as mobile phone navigation key with the position of virtual mouse when needs browsed content piece moves, at first, the present residing content piece of this virtual mouse is determined in 710 variations according to the virtual mouse position of object content block analysis unit.After determining the shared composing width of content piece, off-set value determining unit 720 is further determined the off-set value of the high order end of this content piece apart from the mobile terminal screen high order end.Webpage alignment rolling unit 730 is the webpage off-set value determining unit 720 determined off-set values of rolling then, so that the high order end of the high order end of described content piece and mobile phone screen coincides, and the automatic alignment when finishing web page browsing.
In addition, in a preferred embodiment of the present invention, object content block analysis unit also is used for determining the shared composing width of described content piece; And alignment means 700 also comprises alignment piece judging unit (not shown) automatically, be used for judging this content piece piece that whether aligns according to the composing width of the screen width of portable terminal and determined content piece, if the composing width of content visible is less than or equal to the width of mobile terminal screen in this content piece, think that then this content piece is the alignment piece, can adopt automatic alignment strategy of the present invention correspondingly to handle; Otherwise think that this content piece is not the alignment piece, can not adopt automatic alignment strategy of the present invention correspondingly to handle.Certainly, alignment piece judging unit also can be integrated in the object content block analysis unit 710.
Particularly, as example, current display position in mobile phone screen is taken back if the user needs the browsed content piece, then the navigation key that need press left of user moves this content piece by the mobile virtual mouse, this moment, browser was after identifying user's input information, promptly according to the indication of navigation key virtual mouse was moved to the left a step-length according to the processing mode of routine.Then, determine that by object content block analysis unit 710 virtual mouse moves the content piece at place afterwards, determines the shared composing width of this content piece simultaneously; Then, alignment piece judging unit is by the relatively screen width of mobile phone and the composing width of this content piece, judges whether this content piece can align; If this content piece belongs to the alignment piece, then further determine the off-set value of the high order end of this alignment piece by calculating apart from the mobile phone screen high order end by off-set value determining unit 720, by webpage alignment rolling unit 730 whole webpage is rolled by off-set value determining unit 720 determined off-set values at last, and the demonstration of clear screen, thereby final complete content piece is presented on the mobile phone screen.
In addition, in application process particularly, alignment means of the present invention can be set up in parallel with the browser of portable terminal in portable terminal, also can be integrated in the browser of portable terminal, and the variation of this structure does not influence enforcement of the present invention.
Automatic alignment schemes and device when as above describing according to web page browsing of the present invention in the mode of example with reference to accompanying drawing.But automatic alignment schemes and device when it will be appreciated by those skilled in the art that the web page browsing that proposes for the invention described above can also be made various improvement on the basis that does not break away from content of the present invention.Therefore, protection scope of the present invention should be determined by the content of appending claims.