CN103577167A - Method and device for implementing animation display of page label - Google Patents

Method and device for implementing animation display of page label Download PDF

Info

Publication number
CN103577167A
CN103577167A CN201210261371.6A CN201210261371A CN103577167A CN 103577167 A CN103577167 A CN 103577167A CN 201210261371 A CN201210261371 A CN 201210261371A CN 103577167 A CN103577167 A CN 103577167A
Authority
CN
China
Prior art keywords
page
tag
animation
newly
built
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210261371.6A
Other languages
Chinese (zh)
Other versions
CN103577167B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210261371.6A priority Critical patent/CN103577167B/en
Publication of CN103577167A publication Critical patent/CN103577167A/en
Application granted granted Critical
Publication of CN103577167B publication Critical patent/CN103577167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A method for implementing the animation display of a page label comprises the following steps of obtaining an instruction for creating or closing a page label; calculating width variation of the page label; judging whether the width variation is larger than a rated value and controlling the opening or closing of the animation display of the page label according to the comparison result. According to the method for implementing the animation display of the page label, when the page label is created or closed, the width variation of the page label is calculated, whether the width variation is larger than the rated value is judged, and the closing or opening of the animation display of the page label is controlled according to the comparison result. If the width variation is smaller, even if the animation display of the page label is not closed, the animation effect is not evident. Therefore, according to the method for implementing the animation display of the page label, the opening or closing of the animation display of the page label can be controlled according to the comparison result of whether the width vibration is larger than the rated value, the animation display of the page label can be controlled to be closed when the width variation is smaller, and accordingly the consumption of system resources can be reduced. In addition, the invention further provides a device for implementing the animation display of a page label.

Description

Realize the method and apparatus of animation display page label
[technical field]
The present invention relates to browser technology field, relate to especially a kind of method and apparatus of realizing animation display page label.
[background technology]
Along with the development of network technology, the update of browser is also very fast.Some are single-page browser compared with the browser of lowest version, in a browser window, can only open a page.At present, the new browser of releasing is generally multi-page browser, in a browser window, can open a plurality of pages, a page-tag in the corresponding browser window label of each page hurdle.In browser window, often open or close a page, can be in label hurdle newly-built or page-tag that deletion is corresponding with the page, same, every newly-built or close a page-tag in label hurdle, can open or close the page corresponding with page-tag.The page-tag of clicking in label hurdle can show the page that this page-tag is corresponding in browser window.
Multi-page browser, when newly-built or deletion page-tag, generally shows change in location newly-built or page-tag that delete with animation form, same, also with animation form, adjusts the width of all the other page-tag.For example, the page-tag of newly-built 4 centimetres, multi-page browser common dynamic display page label changes to 4 centimetres from 0 centimetre gradually.
With the change in location of animation form display page label, can keep the visual picture continuity of user, and visual picture continuity contributes to user to obtain the relevance between the picture before and after changing, the operation that facilitates user to be correlated with.Yet the more system resource that need to consume with the change in location of animation form display page label, when the page-tag on label hurdle is more, change in location with animation form display page label likely can be due to the nervous phenomenon that occur that card pauses of system resource, inconvenient user's operation.
[summary of the invention]
Based on this, be necessary to provide a kind of method that realizes animation display page label that reduces system resources consumption.
A method that realizes animation display page label, comprises the following steps:
Obtain newly-built or close the instruction of page-tag;
Calculate the wide variety amount of page-tag;
The size of more described wide variety amount and ratings, and according to comparative result, control the animation demonstration of closing or opening page-tag.
Based on this, be also necessary to provide a kind of device of realizing animation display page label that reduces system resources consumption.
A device of realizing animation display page label, comprising:
Instruction acquisition module, for obtaining newly-built or closing the instruction of page-tag;
Wide variety amount computing module, for calculating the wide variety amount of page-tag;
Animation control module, for the size of more described wide variety amount and ratings, and controls the animation demonstration of closing or opening page-tag according to comparative result.
The above-mentioned method and apparatus of realizing animation display page label, when newly-built or while closing page-tag, calculate the wide variety amount of page-tag, the relatively size of wide variety amount and ratings, and the animation demonstration that page-tag was closed or opened in control according to comparative result.If wide variety amount is less, even if do not close the animation of page-tag, do not show, animation effect is also not obvious.Therefore, said method and device are controlled the animation demonstration of closing or opening page-tag according to the big or small comparative result of wide variety amount and ratings, the animation demonstration of page-tag can be compared with hour control, closed in wide variety amount, thereby the consumption of system resource can be reduced.
[accompanying drawing explanation]
Fig. 1 is the schematic flow sheet of the method that realizes animation display page label in an embodiment;
Fig. 2 is the schematic flow sheet of step that calculates the wide variety amount of page-tag in an embodiment;
Fig. 3 is the structural representation of the device of realizing animation display page label in an embodiment;
Fig. 4 is the structural representation of wide variety amount computing module in an embodiment.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of method that realizes animation display page label, comprises the following steps:
Step S10, obtains newly-built or closes the instruction of page-tag.
Concrete, in multi-page browser, when user clicks the newly-built button in label hurdle, or user while clicking the link of another webpage in a webpage, all can get the instruction of newly-built page-tag.And when user clicks the X button in some page-tag, can get the instruction of closing this page-tag and the page corresponding to this page-tag.
Step S30, the wide variety amount of calculating page-tag.
Concrete, wide variety amount is newly-built or closes the absolute value of the stand out of page-tag front and back page-tag.
As shown in Figure 2, in one embodiment, the detailed process of step S30 comprises:
Step S301, reads default page-tag initial value and obtains the available width of label in label hurdle.
Concrete, the initial value of the width that page-tag initial value is page-tag.
Concrete, in label hurdle, the available width of label is in label hurdle, to can be used for the width of display label.General display page label and newly-built button in label hurdle.In one embodiment, in label hurdle, the available width of label is width poor of newly-built button in the width on label hurdle in current browser window and label hurdle.
Step S303, judges newly-built or closes the available width whether quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to label, if so, performs step S305, if not, performs step S307.
For example, the quantity of current page label is 2, if get the instruction of newly-built page-tag, after newly-built page-tag, the quantity of page-tag is 3, closes the instruction of page-tag if get, and closing the quantity of page-tag after page-tag is 1.
In a certain concrete moment, while comprising a plurality of page-tag in label hurdle, the width of each page-tag all equates.
Step S305, calculates newly-built or closes the width of page-tag is label after page-tag available width and newly-built or close the business of the quantity of page-tag after page-tag.
Concrete, if get the instruction of newly-built page-tag, calculate the width of page-tag after newly-built page-tag and be the business of the quantity of page-tag after the available width of label in current label hurdle and newly-built page-tag; If get, close the instruction of page-tag, calculate and close the width of page-tag is label after page-tag available width and the business who closes the quantity of page-tag after page-tag.
In the present embodiment, as long as close the available width that the quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to label, calculate and close the width of page-tag is label after page-tag available width and the business who closes the quantity of page-tag after page-tag, that is, make to close the shared width of all page-tag after page-tag is the available width of label in label hurdle always.Close after page-tag, the end of the end of last new page-tag and the page-tag of closing is in same position, and the general all ends in page-tag of the X button of page-tag, therefore, the new X button of last page-tag and the X button of buttoned-up last page-tag are in same position, in this case, user can close last new page-tag as long as click identical position, do not need move operation position, for example, the position that does not need touch control operation on the position of rolling mouse clicking operation or touch-screen, thereby can improve user's operation ease.
Step S307, arranges newly-built or to close the width of page-tag after page-tag be page-tag initial value.
When newly-built or close after page-tag, when the product of the quantity of page-tag and page-tag initial value is more than or equal to the available width of label in label hurdle, and the width of page-tag is set to page-tag initial value.That is, in label hurdle during the original width of the enough display page labels of the available width of label, width that can page-tag is set to page-tag initial value.
Step S309, the wide variety amount of calculating page-tag is newly-built or closes the absolute value of the difference of the width of page-tag before and after page-tag.
Concrete, can calculate page-tag newly-built or close width poor of page-tag before and after page-tag, further, calculate poor absolute value, obtain the wide variety amount of page-tag.
Step S50, the relatively size of wide variety amount and ratings, and the animation demonstration that page-tag was closed or opened in control according to comparative result.
Concrete, if showing, the animation of page-tag is closed, newly-built or while closing page-tag, with the change in location of non-animation form display page label.
For example, the page-tag of original 45 centimeter length in label hurdle, after a newly-built page-tag, the width of page-tag becomes 4 centimetres, by the width adjustment of original page-tag, it is directly 4 centimetres, and directly show the page-tag of 4 new centimeter length, and the process that display page label does not gradually change.
Concrete, if showing, the animation of page-tag is unlocked, newly-built or while closing page-tag, with the change in location of animation form display label.For example, during the page-tag of newly-built 4 centimetres wide, display page label is from 0 centimetre of process that tapers to 4 centimetres.
The above-mentioned method that realizes animation display page label, when newly-built or while closing page-tag, calculates the wide variety amount of page-tag, the size of wide variety amount and ratings relatively, and according to comparative result, control the animation demonstration of closing or opening page-tag.If wide variety amount is less, even if do not close the animation of page-tag, do not show, animation effect is also not obvious.Therefore, said method is controlled according to the big or small comparative result of wide variety amount and ratings the animation of closing or open page-tag and is shown, the animation that hour can control closed page face label in wide variety amount shows, thereby can reduce the consumption of system resource.
In one embodiment, the detailed process of step S50 is: judge whether wide variety amount is greater than zero and is less than preset value, if so, controls the animation demonstration of closing page-tag, if not, controls the animation demonstration of opening page-tag.
Concrete, if wide variety amount equals zero, illustrate newly-built or close after page-tag, the width of page-tag is all default page-tag initial value, with animation form, shows change in location newly-built or page-tag that close.
If wide variety amount is more than or equal to preset value, can animation form show change in location newly-built or page-tag that close, and the same change in location that shows all the other page-tag with animation form.
In the present embodiment, when newly-built or while closing page-tag, calculate the wide variety amount of page-tag, only, when wide variety amount equals zero or is more than or equal to preset value, just open the animation demonstration of page-tag; If wide variety amount is greater than zero and is less than preset value, the animation of closing page-tag shows.The present embodiment is opened animation and is shown when animation effect can significantly show, and close animation when animation effect can not obviously show, shows, both can reduce the consumption of system resource, the animation effect of display page label that again can be in good time.
In one embodiment, before step S10, after opening browser, can obtain system resource index, judge that system resource index is whether in setting range, if, Mk system resource index meets unlatching animation, and if not, Mk system resource index does not meet unlatching animation.
Concrete, in one embodiment, system resource index comprises at least one in processor frequencies, memory size.
In one embodiment, the above-mentioned method that realizes animation display page label, further comprising the steps of:
When the wide variety amount of page-tag equals zero or is more than or equal to preset value, judge whether system resource index meets unlatching animation, if so, control the animation demonstration of opening page-tag, if not, control the animation demonstration of closing page-tag.
Concrete, can whether meet unlatching animation according to opening the marker for judgment system resource index of doing after browser.In the present embodiment, less when system resource, while not meeting unlatching animation, control the animation demonstration of closing page-tag, avoided because system resource is few producing the phenomenon that card pauses, user friendly operation when the change in location with animation form display label.
In one embodiment, before step S30, the above-mentioned method that realizes animation display page label is further comprising the steps of:
If get continuously the newly-built instruction of twice newly-built page-tag or close the out code of page-tag, whether be less than first threshold the interval time that judges twice newly-built instruction or out code, if not, performs step S30, if so, control the animation demonstration of closing page-tag.
Concrete, if get the instruction of newly-built page-tag, whether be less than first threshold the interval time that can judge the instruction of current newly-built page-tag and the instruction of last newly-built page-tag; If get, close the instruction of page-tag, can judge whether are less than current instruction of closing page-tag and last interval time of closing the instruction of page-tag first threshold.
In the present embodiment, if be less than first threshold twice interval time newly-built or that close the instruction of page-tag, control the animation demonstration of closing page-tag, if the interval time of user's continued operation is little, even if open the animation of page-tag, show, animation effect is also not obvious, and the animation of now closing page-tag shows and can save system resource, while avoiding user to operate, produce Caton phenomenon, user-friendly.
In one embodiment, in the interval time when twice out code, be less than first threshold and after controlling and closing the step that the animation of page-tag shows, the above-mentioned method that realizes animation display page label is further comprising the steps of:
Judge whether that the out code and continuous two the out code interval durations that get continuously over Second Threshold quantity are less than first threshold, if, whether page-tag corresponding to out code that judgement gets belongs to same group, if belong to same group, close the residue page-tag in this same group, if do not belong to same group, close all page-tag that browser is opened.
In one embodiment, if affiliated secondary or the domain name below secondary of the page corresponding to page-tag are identical, can judge that page-tag belongs to same group.In another embodiment, if the page corresponding to some page-tag is for the link redirect from the page corresponding to another page-tag comes, can judge that these two page-tag belong to same group.
In the present embodiment, when the quantity of the continuous quick closedown page-tag of user and speed reach certain value, disposablely close all page-tag that the residue page-tag of same group or browser are opened, do not need each page-tag of user's manual-lock, can simplify user's operation.In addition, in the present embodiment, when closing all page-tag that the residue page-tag of same group or browser open, when showing, the animation of page-tag closes, therefore, can almost close a plurality of page-tag to be closed simultaneously, thereby can improve the efficiency of closing page-tag, save user's time.
In one embodiment, the above-mentioned method that realizes animation display page label also comprises step: if showing, the animation of page-tag is closed, and newly-built or while closing page-tag, with the change in location of the newly-built button in non-animation form display label hurdle; If showing, the animation of page-tag is unlocked, newly-built or while closing page-tag, with the change in location of the newly-built button in animation form display label hurdle.
For example, the newly-built button in label hurdle needs primary importance to move to the second place, if the animation of page-tag shows, is closed, and directly shows that newly-built button is positioned at the second place; If the animation of page-tag shows, be unlocked, show that newly-built button moves to the process of the second place gradually from primary importance.
As shown in Figure 3, in one embodiment, a kind of device of realizing animation display page label, comprises instruction acquisition module 10, wide variety amount computing module 20 and animation control module 30, wherein:
Instruction acquisition module 10 is for obtaining newly-built or closing the instruction of page-tag.
Concrete, in multi-page browser, when user clicks the newly-built button in label hurdle, or user while clicking the link of another webpage in a webpage, all can get the instruction of newly-built page-tag.And when user clicks the X button in some page-tag, can get the instruction of closing this page-tag and the page corresponding to this page-tag.
Wide variety amount computing module 20 is for calculating the wide variety amount of page-tag.
Concrete, wide variety amount is newly-built or closes the absolute value of the stand out of page-tag front and back page-tag.
As shown in Figure 4, in one embodiment, wide variety amount computing module 20 comprises available width acquisition module 202, tag width computing module 204, variable quantity computing module 206, wherein:
Available width acquisition module 202 is for reading default page-tag initial value and obtaining the available width of label hurdle label.
Concrete, the initial value of the width that page-tag initial value is page-tag.
Concrete, in label hurdle, the available width of label is in label hurdle, to can be used for the width of display label.General display page label and newly-built button in label hurdle.In one embodiment, in label hurdle, the available width of label is width poor of newly-built button in the width on label hurdle in current browser window and label hurdle.
Tag width computing module 204 is for judging newly-built or closing the available width whether quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to described label, if, calculate newly-built or close the width of page-tag is described label after page-tag available width and newly-built or close the business of the quantity of page-tag after page-tag, if not, arrange newly-built or to close the width of page-tag after page-tag be page-tag initial value.
For example, the quantity of current page label is 2, if get the instruction of newly-built page-tag, after newly-built page-tag, the quantity of page-tag is 3, closes the instruction of page-tag if get, and closing the quantity of page-tag after page-tag is 1.
In a certain concrete moment, while comprising a plurality of page-tag in label hurdle, the width of each page-tag all equates.
Concrete, if instruction acquisition module 10 gets the instruction of newly-built page-tag, when after newly-built page-tag, the product of the quantity of page-tag and page-tag initial value is less than the available width of label in current label hurdle, tag width computing module 204 calculates the business of the quantity of page-tag after available width that the width of page-tag after newly-built page-tag is label in current label hurdle and newly-built page-tag; If instruction acquisition module 10 gets the instruction of closing page-tag, when after closing page-tag, the product of the quantity of page-tag and page-tag initial value is less than the available width of label in current label hurdle, tag width computing module 204 calculates and closes the width of page-tag is label after page-tag available width and the business who closes the quantity of page-tag after page-tag.
When newly-built or close after page-tag, when the product of the quantity of page-tag and page-tag initial value is more than or equal to the available width of label in label hurdle, the width of tag width computing module 204 page-tag is set to page-tag initial value.That is, in label hurdle, during the original width of the enough display page labels of the available width of label, the width of tag width computing module 204 page-tag is set to page-tag initial value.
In the present embodiment, as long as close the available width that the quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to label, calculate and close the width of page-tag is label after page-tag available width and the business who closes the quantity of page-tag after page-tag, that is, make to close the shared width of all page-tag after page-tag is the available width of label in label hurdle always.Close after page-tag, the end of the end of last new page-tag and the page-tag of closing is in same position, and the general all ends in page-tag of the X button of page-tag, therefore, the new X button of last page-tag and the X button of buttoned-up last page-tag are in same position, in this case, user can close last new page-tag as long as click identical position, do not need move operation position, for example, the position that does not need touch control operation on the position of rolling mouse clicking operation or touch-screen, thereby can improve user's operation ease.
Variable quantity computing module 206 is for to calculate the wide variety amount of page-tag be newly-built or close the absolute value of the difference of the width of page-tag before and after page-tag.
Concrete, it is newly-built or close width poor of page-tag before and after page-tag that variable quantity computing module 206 can calculate page-tag, further, calculates poor absolute value, obtains the wide variety amount of page-tag.
Animation control module 30 is for comparing the size of wide variety amount and ratings, and the animation demonstration that page-tag was closed or opened in control according to comparative result.
Concrete, if showing, the animation of page-tag is closed, newly-built or while closing page-tag, with the change in location of non-animation form display page label.
For example, the page-tag of original 45 centimeter length in label hurdle, after a newly-built page-tag, the width of page-tag becomes 4 centimetres, by the width adjustment of original page-tag, it is directly 4 centimetres, and directly show the page-tag of 4 new centimeter length, and the process that display page label does not gradually change.
Concrete, if showing, the animation of page-tag is unlocked, newly-built or while closing page-tag, with the change in location of animation form display label.For example, during the page-tag of newly-built 4 centimetres wide, display page label is from 0 centimetre of process that tapers to 4 centimetres.
The above-mentioned device of realizing animation display page label, when newly-built or while closing page-tag, calculates the wide variety amount of page-tag, the size of wide variety amount and ratings relatively, and according to comparative result, control the animation demonstration of closing or opening page-tag.If wide variety amount is less, even if do not close the animation of page-tag, do not show, animation effect is also not obvious.Therefore, said apparatus is controlled according to the big or small comparative result of wide variety amount and ratings the animation of closing or open page-tag and is shown, the animation that hour can control closed page face label in wide variety amount shows, thereby can reduce the consumption of system resource.
In one embodiment, animation control module 30 for judging whether wide variety amount is greater than zero and is less than preset value, if so, control the animation of closing page-tag shows, if not, controls the animation demonstration of opening page-tag.。
Concrete, if wide variety amount equals zero, illustrate newly-built or close before and after page-tag, the width of page-tag is all default page-tag initial value, with animation form, shows change in location newly-built or page-tag that close, animation effect is more obvious.If wide variety amount is more than or equal to preset value, with animation form, show change in location newly-built or page-tag that close, and the same change in location that shows all the other page-tag with animation form, animation effect is all more obvious.Therefore, the present embodiment is controlled the animation demonstration of opening page-tag in above-mentioned two situations.
In the present embodiment, when newly-built or while closing page-tag, calculate the wide variety amount of page-tag, only, when wide variety amount equals zero or is more than or equal to preset value, just open the animation demonstration of page-tag; If wide variety amount is greater than zero and is less than preset value, the animation of closing page-tag shows.The present embodiment is opened animation and is shown when animation effect can significantly show, and close animation when animation effect can not obviously show, shows, both can reduce the consumption of system resource, the animation effect of display page label that again can be in good time.
In one embodiment, when animation control module 30 also equals zero or is more than or equal to preset value for the wide variety amount when page-tag, judge whether system resource index meets unlatching animation, if, control the animation demonstration of opening page-tag, if not, control the animation demonstration of closing page-tag.
Concrete, in one embodiment, system resource index comprises at least one in processor frequencies, memory size.
In one embodiment, the above-mentioned device of realizing animation display page label also comprises: system resource mark module (not shown), be used for obtaining system resource index, judge that system resource index is whether in setting range, if, Mk system resource index meets unlatching animation, and if not, Mk system resource index does not meet unlatching animation.
Concrete, whether system resource mark module can Mk system resource index meet unlatching animation after opening browser.
Concrete, whether the marker for judgment system resource index that animation control module 30 can be done according to system resource mark module meets unlatching animation.
In the present embodiment, less when system resource, while not meeting unlatching animation, control the animation demonstration of closing page-tag, avoided because system resource is few producing the phenomenon that card pauses, user friendly operation when the change in location with animation form display label.
In one embodiment, if instruction acquisition module 10 also for getting continuously the newly-built instruction of twice newly-built page-tag or closing the out code of page-tag, judges whether be less than first threshold the interval time of twice newly-built instruction or out code.
Wide variety amount computing module 20, for being more than or equal to threshold value the interval time when twice newly-built instruction or out code, calculates the wide variety amount of page-tag.
When animation control module 30 is less than first threshold for the interval time when twice newly-built instruction or out code, control the animation demonstration of closing page-tag.
Concrete, if instruction acquisition module 10 gets the instruction of newly-built page-tag, whether be less than first threshold the interval time that can judge the instruction of current newly-built page-tag and the instruction of last newly-built page-tag; If get, close the instruction of page-tag, can judge whether are less than current instruction of closing page-tag and last interval time of closing the instruction of page-tag first threshold.
In the present embodiment, if be less than first threshold twice interval time newly-built or that close the instruction of page-tag, control the animation demonstration of closing page-tag, if the interval time of user's continued operation is little, even if open the animation of page-tag, show, animation effect is also not obvious, and the animation of now closing page-tag shows and can save system resource, while avoiding user to operate, produce Caton phenomenon, user-friendly.
In one embodiment, instruction acquisition module 10 is also less than the one one threshold value for judging whether to get continuously over the out code of Second Threshold quantity and two continuous out code interval durations.
The above-mentioned device of realizing animation display page label also comprises:
Page-tag processing module (not shown), for when getting continuously while being less than first threshold over the out code of Second Threshold quantity and continuous two out code interval durations, whether page-tag corresponding to out code that judgement gets belongs to same group, if belong to same group, close the residue page-tag in described same group, if do not belong to same group, close all page-tag that browser is opened.
In one embodiment, if affiliated secondary or the domain name below secondary of the page corresponding to page-tag are identical, can judge that page-tag belongs to same group; Or, if the page corresponding to some page-tag is the link redirect from the page corresponding to another page-tag, can judge that these two page-tag belong to same group.
In the present embodiment, when the quantity of the continuous quick closedown page-tag of user and speed reach certain value, disposablely close all page-tag that the residue page-tag of same group or browser are opened, do not need each page-tag of user's manual-lock, can simplify user's operation.In addition, in the present embodiment, when closing all page-tag that the residue page-tag of same group or browser open, when showing, the animation of page-tag closes, therefore, can almost close a plurality of page-tag to be closed simultaneously, thereby can improve the efficiency of closing page-tag, save user's time.
In one embodiment, if page-tag processing module also for the animation of page-tag, show and be closed, newly-built or while closing page-tag, with the change in location of the newly-built button in non-animation form display label hurdle; If showing, the animation of page-tag is unlocked, newly-built or while closing page-tag, with the change in location of the newly-built button in animation form display label hurdle.
For example, the newly-built button in label hurdle need to move to the second place from primary importance, if the animation of page-tag shows, is closed, and directly shows that newly-built button is positioned at the second place; If the animation of page-tag shows, be unlocked, show that newly-built button moves to the process of the second place gradually from primary importance.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can control relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (12)

1. a method that realizes animation display page label, comprises the following steps:
Obtain newly-built or close the instruction of page-tag;
Calculate the wide variety amount of page-tag;
The size of more described wide variety amount and ratings, and according to comparative result, control the animation demonstration of closing or opening page-tag.
2. the method that realizes animation display page label according to claim 1, is characterized in that, the step of the wide variety amount of described calculating page-tag is:
Read default page-tag initial value and obtain the available width of label in label hurdle;
Judge newly-built or close the available width whether quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to described label, if, calculate newly-built or close the width of page-tag is described label after page-tag available width and newly-built or close the business of the quantity of page-tag after page-tag, if not, arrange newly-built or to close the width of page-tag after page-tag be described page-tag initial value;
The wide variety amount of calculating page-tag is newly-built or closes the absolute value of the difference of the width of page-tag before and after page-tag.
3. the method that realizes animation display page label according to claim 1, is characterized in that, described method also comprises:
Judge whether system resource index meets unlatching animation, if so, control the animation demonstration of opening page-tag, if not, control the animation demonstration of closing page-tag.
4. the method that realizes animation display page label according to claim 3, is characterized in that, described obtain newly-built or close the instruction of page-tag before, also comprise:
Obtain system resource index;
Judge that described system resource index is whether in setting range, if so, Mk system resource index meets unlatching animation, and if not, Mk system resource index does not meet unlatching animation.
5. the method that realizes animation display page label according to claim 1, is characterized in that, before calculating the wide variety amount of page-tag, described method also comprises:
If get continuously the newly-built instruction of twice newly-built page-tag or close the out code of page-tag, whether be less than first threshold the interval time that judges twice newly-built instruction or out code, if not, carry out the step of the wide variety amount of described calculating page-tag, if so, control the animation demonstration of closing page-tag.
6. the method that realizes animation display page label according to claim 5, is characterized in that, in the interval time when twice out code, is less than first threshold and after controlling the step of the animation demonstration of closing page-tag, also comprises:
Judge whether to get continuously over the out code of Second Threshold quantity and two continuous out code interval durations and be less than first threshold, if, whether page-tag corresponding to out code that judgement gets belongs to same group, if belong to same group, close the residue page-tag in described same group, if do not belong to same group, close all page-tag that browser is opened.
7. a device of realizing animation display page label, is characterized in that, comprising:
Instruction acquisition module, for obtaining newly-built or closing the instruction of page-tag;
Wide variety amount computing module, for calculating the wide variety amount of page-tag;
Animation control module, for the size of more described wide variety amount and ratings, and controls the animation demonstration of closing or opening page-tag according to comparative result.
8. the device of realizing animation display page label according to claim 7, is characterized in that, described wide variety amount computing module comprises:
Available width acquisition module, for reading default page-tag initial value and obtaining the available width of label hurdle label;
Tag width computing module, for judging newly-built or closing the available width whether quantity of page-tag and the product of page-tag initial value after page-tag are more than or equal to described label, if, calculate newly-built or close the width of page-tag is described label after page-tag available width and newly-built or close the business of the quantity of page-tag after page-tag, if not, arrange newly-built or to close the width of page-tag after page-tag be described page-tag initial value
Variable quantity computing module, for to calculate the wide variety amount of page-tag be newly-built or close the absolute value of the difference of the width of page-tag before and after page-tag.
9. the device of realizing animation display page label according to claim 7, it is characterized in that, described animation control module is also for judging whether system resource index meets unlatching animation, if, control the animation demonstration of opening page-tag, if not, control the animation demonstration of closing page-tag.
10. the device of realizing animation display page label according to claim 9, it is characterized in that, described device also comprises system resource mark module, be used for obtaining system resource index, judge that described system resource index is whether in setting range, if so, Mk system resource index meets unlatching animation, if not, Mk system resource index does not meet unlatching animation.
11. devices of realizing animation display page label according to claim 7, it is characterized in that, if described instruction acquisition module also for getting continuously the newly-built instruction of twice newly-built page-tag or closing the out code of page-tag, judges whether be less than first threshold the interval time of twice newly-built instruction or out code;
Described wide variety amount computing module, for being more than or equal to threshold value the interval time when described twice newly-built instruction or out code, calculates the wide variety amount of page-tag;
Described animation control module, for when be less than first threshold the interval time of described twice newly-built instruction or out code, is controlled the animation demonstration of closing page-tag.
12. devices of realizing animation display page label according to claim 11, it is characterized in that, described instruction acquisition module is also for judging whether that the out code and continuous two the out code interval durations that get continuously over Second Threshold quantity are less than first threshold;
Described device also comprises:
Page-tag processing module, for when getting continuously while being less than first threshold over the out code of Second Threshold quantity and continuous two out code interval durations, whether page-tag corresponding to out code that judgement gets belongs to same group, if belong to same group, close the residue page-tag in described same group, if do not belong to same group, close all page-tag that browser is opened.
CN201210261371.6A 2012-07-26 2012-07-26 The method and apparatus for realizing animation display of page label Active CN103577167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210261371.6A CN103577167B (en) 2012-07-26 2012-07-26 The method and apparatus for realizing animation display of page label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210261371.6A CN103577167B (en) 2012-07-26 2012-07-26 The method and apparatus for realizing animation display of page label

Publications (2)

Publication Number Publication Date
CN103577167A true CN103577167A (en) 2014-02-12
CN103577167B CN103577167B (en) 2017-10-27

Family

ID=50049024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210261371.6A Active CN103577167B (en) 2012-07-26 2012-07-26 The method and apparatus for realizing animation display of page label

Country Status (1)

Country Link
CN (1) CN103577167B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
CN104020924A (en) * 2014-05-21 2014-09-03 小米科技有限责任公司 Label establishing method and device and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692679A (en) * 2009-10-10 2010-04-07 魏新成 Method for performing mobile browsing through link window and content window
CN101777065A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Multi-page browser for mobile communication equipment terminals and application method thereof
US20110264996A1 (en) * 2003-06-03 2011-10-27 Norris Iii Forbes Holten Flexible, dynamic menu-based web-page architecture

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264996A1 (en) * 2003-06-03 2011-10-27 Norris Iii Forbes Holten Flexible, dynamic menu-based web-page architecture
CN101692679A (en) * 2009-10-10 2010-04-07 魏新成 Method for performing mobile browsing through link window and content window
CN101777065A (en) * 2009-12-31 2010-07-14 优视科技有限公司 Multi-page browser for mobile communication equipment terminals and application method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955476A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method and device for drawing page tab head in browser and browser
WO2015149561A1 (en) * 2014-03-31 2015-10-08 北京奇虎科技有限公司 Method and apparatus for drawing page tab header in browser
CN104020924A (en) * 2014-05-21 2014-09-03 小米科技有限责任公司 Label establishing method and device and terminal

Also Published As

Publication number Publication date
CN103577167B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
US20190026020A1 (en) Apparatus and method for application peel
CN104731304B (en) The method of adjustment and device of CPU hopping patterns in a kind of terminal
US8347232B1 (en) Interactive user interface
US9389759B2 (en) Environment for responsive graphical designs
US9035887B1 (en) Interactive user interface
CN109445657B (en) Document editing method and device
CN101833417B (en) System for realizing agile window on mobile phone and method thereof
CN103425485A (en) Interface edition and operation system and method for ordinary users
CN107463302B (en) A kind of icon layout method of adjustment and its device
CN101908044A (en) Dynamically adjustable template and using method thereof
CN103309560A (en) Multi-interface information display method and terminal
CN103064516A (en) Page turning method and device
CN101777065A (en) Multi-page browser for mobile communication equipment terminals and application method thereof
CN105528217A (en) Partial refreshing method and device based on display list
CN103809886B (en) A kind of cursor positioning method and mobile terminal
CN108628510A (en) Content display method, device, electronic equipment and readable storage medium storing program for executing
WO2014082303A1 (en) Terminal and control method for screen backlight
AU2014200272B2 (en) Method and electronic device for displaying application
CN107463322A (en) Display control method and device, terminal installation and computer-readable recording medium
CN114564263A (en) Page layout adjusting method and device
CN103869926A (en) Power saving method and electronic device
CN103577167A (en) Method and device for implementing animation display of page label
WO2024104079A1 (en) Desktop component generation method and apparatus, electronic device, and readable storage medium
CN102650922A (en) Page operating method
CN103186636A (en) Method and system for loading readable file in mobile equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant