CN103324674B - Web page contents choosing method and device - Google Patents

Web page contents choosing method and device Download PDF

Info

Publication number
CN103324674B
CN103324674B CN201310196328.0A CN201310196328A CN103324674B CN 103324674 B CN103324674 B CN 103324674B CN 201310196328 A CN201310196328 A CN 201310196328A CN 103324674 B CN103324674 B CN 103324674B
Authority
CN
China
Prior art keywords
web page
page contents
page element
contents
touch position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310196328.0A
Other languages
Chinese (zh)
Other versions
CN103324674A (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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201310196328.0A priority Critical patent/CN103324674B/en
Publication of CN103324674A publication Critical patent/CN103324674A/en
Application granted granted Critical
Publication of CN103324674B publication Critical patent/CN103324674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of web page contents choosing method, including, after the web page contents selection operation on the touch-screen for detecting mobile terminal, obtain the touch position of the web page contents selection operation;Based on the touch position, it is determined that the web page element corresponding with the touch position in the web page contents currently shown;Since the web page element, according to predetermined search rule, the adjacent web page element of the web page element is sequentially scanned for;The web page element searched out and web page element corresponding with the touch position are combined, the web page contents to be selected are used as.Using this method, user can by the web page element in webpage clicking, intelligence obtains the complete information associated with the web page element and carries out corresponding operating during web page browsing, strengthens Consumer's Experience.

Description

Web page contents choosing method and device
Technical field
The application is related to mobile communication technology field, more particularly to a kind of web page contents choosing method and device.
Background technology
When webpage is browsed using touch-screen mobile phone, some special web pages member occurs in some web page contents Element, such as telephone number, network address, mailbox etc..Because these web page elements exist with text formatting, if user will be to these nets Page element carries out some corresponding operations,(Such as replicating, open, edit, sending, dial), then first have to choose content, than The selection of web page element one by one is such as carried out by the long-press page, dragging cursor and then corresponding operation is performed again.
However, for can not supporting the browser of " freely replicating " function for part, due to being unable to unrestricted choice webpage In web page element and replicated, so can not realize it is above-mentioned for web page element carry out operation.
In addition, even for the browser for supporting " freely replicating " function, needing user oneself to drag mobile phone in operation Screen cursor is chosen to web page element, and operate very time-consuming and trouble.It is additionally, since cursor on mobile terminal very It is small, drag the bad control of scope.In addition, after selection operation executed as described above, it is impossible to directly carry out one to selected web page element A little corresponding operatings.Such as, selected in webpage after a telephone number, number be first first saved in contact person, then dialed; Or network address is replicated, address field is then pasted, then network address is opened, user's progress many more manipulations are generally required in this case just may be used To achieve the goal, or even sometimes need user to exit current to browse webpage and could be operated.
The content of the invention
In view of the above problems, it is an object of the invention to provide a kind of web page contents choosing method and device, this method and dress Putting can be according to predetermined search rule, since the web page element, the automatic and intelligently adjacent net to the web page element Page element is sequentially scanned for, and is obtained the web page contents to be selected, is chosen manually without user.
According to an aspect of the present invention there is provided a kind of web page contents choosing method, including, detecting mobile terminal After web page contents selection operation on touch-screen, the touch position of the web page contents selection operation is obtained;Based on the touching position Put, it is determined that the web page element corresponding with the touch position in the web page contents currently shown;Since the web page element, According to predetermined search rule, the adjacent web page element of the web page element is sequentially scanned for;And searched out described Web page element and web page element corresponding with the touch position are combined, and are used as the web page contents to be selected.
In one or more examples of above-mentioned aspect, since the web page element, according to predetermined search rule, to institute The adjacent web page element for stating web page element sequentially scans for including:According to predetermined search rule, from the web page element Start, the adjacent web page element in the left and right sides of the web page element is sequentially scanned for.
In one or more examples of above-mentioned aspect, the predetermined search rule can include:Order obtain with it is described The character attibute identical web page element of web page element, the webpage member different from the web page element character attibute until getting Element.
In one or more examples of above-mentioned aspect, the predetermined search rule can also include:When the order is obtained When the web page elements different from the web page element character attibute taken are special symbols, continue to obtain next adjacent webpage member Element, and when the web page element searched out and web page element corresponding with the touch position are combined, remove described Special symbol.
In one or more examples of above-mentioned aspect, the predetermined search rule can also include:When the order is obtained When the number of the continuous special symbol taken is more than the first predetermined threshold, stop obtaining next adjacent web page element.
In one or more examples of above-mentioned aspect, methods described can also include according to predetermined processing mode to institute The web page contents to be selected are stated to be handled.
In one or more examples of above-mentioned aspect, the predetermined processing mode includes:To be selected described When web page contents are hyperlink, the hyperlink is opened, and when the web page contents to be selected are not hyperlink, it is raw Into the option of operation for the web page contents to be selected.
In one or more examples of above-mentioned aspect, according to predetermined processing mode to the web page contents to be selected Before processing, methods described can also include:Whether the web page contents to be selected described in identification are telephone number, network address or postal Case.
In one or more examples of above-mentioned aspect, the identification process can include:To be selected described in calculating The number of web page element in web page contents, the quantity of the web page element in the web page contents to be selected is more than second , will be described when reservation threshold and the web page contents to be selected meet telephone number rule, network address rule or regular mailbox The web page contents to be selected are identified as telephone number, network address or mailbox.
In one or more examples of above-mentioned aspect, when the web page contents to be selected are identified as telephone number When, the option of operation at least includes calling, saves as contact person, editor, replicates;When the web page contents quilt to be selected When being identified as network address, the option of operation at least includes opening, downloads, preserves, editing, replicating;When the net to be selected When page content is identified as mailbox, the option of operation at least includes hair mail, replicated.
According to another aspect of the present invention there is provided a kind of Web page content selecting device, including:Detection unit, for examining The web page contents selection operation surveyed on the touch-screen of mobile terminal;Touch position acquiring unit, for detecting mobile terminal Touch-screen on web page contents selection operation after, obtain the touch position of the web page contents selection operation;Web page element is determined Unit, for based on the touch position, it is determined that the webpage corresponding with the touch position in the web page contents currently shown Element;Search unit, for since the web page element, according to predetermined search rule, to the adjacent net of the web page element Page element is sequentially scanned for;Assembled unit, for by the web page element searched out and corresponding with the touch position Web page element is combined, and is used as the web page contents to be selected.
In one or more examples of above-mentioned aspect, the search unit is configured as since the web page element, According to predetermined search rule, the adjacent web page element in the left and right sides of the web page element is sequentially scanned for.
In one or more examples of above-mentioned aspect, described Web page content selecting device can also include web page contents Recognition unit, for recognizing whether the web page contents to be selected are telephone number, network address or mailbox.
In one or more examples of above-mentioned aspect, the web page contents recognition unit can include:Computing module, is used The number of web page element in the web page contents to be selected described in calculating;First judge module, for judge it is described will quilt Whether the quantity of the web page element in the web page contents of selection is more than the second reservation threshold;Second judge module, for judging State whether the web page contents to be selected meet telephone number rule, network address rule or mailbox rule;And identification module, use It is more than the second reservation threshold in the quantity of web page element in the web page contents to be selected and described is selected When web page contents meet telephone number rule, network address rule or regular mailbox, the web page contents to be selected are identified as Telephone number, network address or mailbox.
In one or more examples of above-mentioned aspect, the Web page content selecting device can also include:Web page contents Processing unit, for being handled according to predetermined processing mode the web page contents to be selected.
In addition, the present invention, which is also provided, a kind of includes the mobile terminal of above-mentioned Web page content selecting device.
Using the web page contents choosing method according to the present invention, by according to predetermined search rule, from the web page element Start, the adjacent web page element of the web page element sequentially scanned for, recognize web page contents, can automatically and intelligently from The web page contents to be chosen are obtained in webpage, chooses and operates manually without user, the web page browsing body of user is thus improved Test.
In order to realize above-mentioned and related purpose, one or more aspects of the invention include will be explained in below and The feature particularly pointed out in claim.Some illustrative aspects of the present invention are described in detail in following explanation and accompanying drawing. However, some modes in the various modes for the principle that the present invention only can be used that these aspects are indicated.In addition, of the invention It is intended to include all these aspects and their equivalent.
Brief description of the drawings
According to following detailed descriptions carried out referring to the drawings, above and other objects, features and advantages of the invention will become It must become apparent from.In the accompanying drawings:
Fig. 1 shows the flow chart of the web page contents choosing method according to the embodiment of the present invention;
Fig. 2 shows a kind of schematic diagram of implementation example of the predetermined search rule in Fig. 1;
Fig. 3 shows the schematic diagram of another implementation example of the predetermined search rule in Fig. 1;
Fig. 4 shows the schematic diagram of another implementation example of the predetermined search rule in Fig. 1;
Fig. 5 shows that one of the process that the web page contents to be selected are identified implements showing for example It is intended to;
Fig. 6 shows the Web page content selecting device according to the embodiment of the present invention;
Fig. 7 shows the block diagram of the web page contents recognition unit according to the embodiment of the present invention;With
Fig. 8 shows the block diagram of the mobile terminal with the Web page content selecting device according to the present invention.
Identical label indicates similar or corresponding feature or function in all of the figs.
Embodiment
Various aspects of the disclosure is described below.It is to be understood that teaching herein can have in varied form Body embodies, and any concrete structure disclosed herein, function or both are only representational.Religion based on this paper Lead, those skilled in the art it is to be understood that one aspect disclosed herein can be realized independently of any other aspect, And two or more aspects in these aspects can be combined in various manners.It is, for example, possible to use described in this paper Any number of aspect, realizes device or puts into practice method.Further, it is possible to use other structures, function or except described here One or more aspects outside or be not one or more aspects described herein 26S Proteasome Structure and Function, realize this device Or put into practice this method.In addition, any aspect described herein can include at least one element of claim.
Embodiments in accordance with the present invention are described below with reference to accompanying drawing.It should be appreciated that specific embodiment described herein Only to explain the present invention, it is not intended to limit the present invention.
Fig. 1 shows the flow chart of web page contents choosing method according to embodiments of the present invention.
As shown in figure 1, first, in step S100, the web page contents on the touch-screen for detecting mobile terminal choose behaviour After work, the touch position of the web page contents selection operation on the touch-screen of mobile terminal is obtained.In the example of the present invention In, the web page contents selection operation can be user's long-press touch-screen scheduled time, so as to trigger web page contents function of search To carry out Webpage search.The scheduled time can be the random time of the system setting of mobile terminal, such as 2 seconds.For example, When user needs to choose the web page contents in webpage, the touch-screen that user can be with long-press at the web page contents to be selected Position 2 seconds.After the touch-screen for detecting mobile terminal is long pressed 2 seconds, the touch for the mobile terminal touched by user is obtained The touch position of screen.In addition, the web page contents selection operation can be the other types of touching that user is carried out to touch-screen Operation.
Then, in step S200, based on the touch position of the acquisition, it is determined that in the web page contents currently shown with institute State the corresponding web page element of touch position.On the browser of mobile terminal during browsed web content, the touch-screen of mobile terminal Position coordinates and touch screen display web page contents position coordinates it is inconsistent.Touch panel coordinates plane is with touch-screen upper left Angle is the origin of coordinates, and it is seat that the coordinate plane of the web page contents currently shown, which is the position in the webpage upper left corner of the whole webpage, Mark origin.Therefore, when obtaining web page element, firstly, it is necessary to be web page contents by the Coordinate Conversion of touched touch position Coordinate, it is assumed that the position coordinates of touched touch-screen is(X, y), the position coordinates in the upper left corner of the webpage currently shown is (0, y1), then the coordinate of the web page contents corresponding to touched touch position be(X, y+y1).Web page contents are being obtained as above Coordinate after, based on the coordinate, corresponding with coordinate web page element is obtained from the source code of the webpage.Then, in step S300, since the web page element, according to predetermined search rule, is sequentially carried out to the adjacent web page element of the web page element Search.The search rule can be participle search rule or other suitable search rules.At one of the present invention In example, the predetermined search rule can include:Order obtains the character attibute identical webpage member with the web page element Element, until getting the web page elements different from the web page element character attibute.In other words, according to above-mentioned predetermined search rule When sequentially scanning for, from web page element corresponding with the touch position(Hereinafter referred to as focus web page element)Start, according to Order from the near to the remote, sequentially obtains adjacent web page element.If the word of acquired web page element and focus web page element Accord with attribute identical, then then obtain next web page element adjacent with the web page element, and continue whether to judge character attibute It is identical, so repeat, until the character attibute of acquired web page element is different from the character attibute of focus web page element.
Fig. 2 shows the schematic diagram of the step S300 realized based on above-mentioned predetermined search rule example.
Since focus web page element, in step S301, next adjacent webpage member of the web page element currently obtained is obtained Element.Wherein, when obtaining next adjacent web page element first, the focus web page element is used as the web page element currently obtained.
In step S302, judge acquired next adjacent web page element and focus web page element character attibute whether phase Together, if identical, step S301 is transferred to, continues to obtain next adjacent web page element;If it is different, then flow enters step S400。
In the example of the present invention, the character attibute of focus web page element can include Chinese attribute, non-Chinese category Property.Or, the character attibute can also include number attribute, alphabetical attribute, Hanzi attribute etc..
In addition, in another example of the present invention, above-mentioned predetermined search rule can also be revised as further comprising:Work as institute When the web page elements different from the web page element character attibute for stating order acquisition are special symbols, continue to obtain next adjacent Web page element.When being scanned for according to amended predetermined search rule, acquired web page element and focus are being judged The character attibute of web page element is not it is also desirable to determine whether that the order is obtaining with the web page element character attibute Whether different web page elements is special symbol.
Fig. 3 shows the schematic diagram of the step S300 realized based on above-mentioned predetermined search rule example.Compared with Fig. 2, Fig. 3 difference is to add adds step S303 after step S302.It is simple in order to illustrate, below only to not It is described with part.
The character attibute and the focus for next adjacent web page element that the order is obtained are judged in step s 302 When the character attibute of web page element is different, in step S303, judge whether next adjacent web page element is special symbol, such as Fruit is then to be transferred to step S301, continues to obtain next adjacent web page element of the web page element currently obtained;If it is not, then stream Journey enters step S400.
In the present invention, the special symbol can be the symbol set in advance such as "-" or "-" or ", " or space.
In another example of the present invention, the predetermined search rule can further include:When the order is obtained Continuous special symbol number more than the first predetermined threshold when, stop obtaining next adjacent web page element.Described first makes a reservation for Threshold value can be any integer value of system or user's setting.For example, in the example of the present invention, the first predetermined valve Value can be set to 1.
Fig. 4 shows the schematic diagram of the step S300 realized based on above-mentioned predetermined search rule example.Compared with Fig. 3, Fig. 4 difference, which is only in that after step S303, also add step S304 and step S305.
When next adjacent web page element that the acquisition is judged in step S303 is special symbol, in step S304, Whether the special symbol for judging the acquisition is the special symbol being continuously acquired.If the special symbol continuously acquired, then It is transferred to step S305;If it is not, then being transferred to step S301, continue to obtain next adjacent web page element.
In step S305, judge described in the number of special symbol that continuously acquires whether more than the first predetermined threshold.At this In invention, the number of the special symbol continuously acquired for example can be by setting a counter to be counted.Count The initial value of device is arranged to 0, and after a special symbol is obtained every time, counter adds 1.
If the number of the special symbol continuously acquired is not above the first predetermined threshold, step S301 is transferred to, Continue to obtain next adjacent web page element.If it exceeds the first predetermined threshold, then flow enters step S400.
In addition, in the example of the present invention, since the web page element, to the adjacent webpage of the web page element Element is sequentially scanned for, and can be the adjacent net in left side or right side to the web page element since the web page element Page element sequentially scans for or the adjacent web page element in the left and right sides of the web page element is sequentially scanned for. Specifically since the web page element, obtaining next adjacent element in order one by one.
In step S400, the web page element searched out and web page element corresponding with the touch position are combined, It is used as the web page contents to be selected.For example, the present invention an example in, by the web page element searched out and with institute The combination of touch position corresponding web page element is stated to refer to the web page element searched out and corresponding with the touch position Web page element according to the sequential combination on webpage together.In the example of the present invention, the adjacent webpage obtained when order When element includes the special symbol, by the web page element searched out and web page element corresponding with the touch position During combination, in addition to remove the special symbol.In the particularly preferred embodiment of the present invention, methods described can also include According to predetermined processing mode, the web page contents to be selected are handled.
In the example of the present invention, the predetermined process mode can include:In the webpage to be selected When holding for hyperlink, the hyperlink is opened, and when the web page contents to be selected are not hyperlink, generation is directed to The option of operation of the web page contents to be selected.Specifically, by the web page element searched out and with the touching The corresponding web page element combination in position, after the web page contents to be selected, judges that this web page contents to be selected is not It is hyperlink, if it is, opening the hyperlink;If it is not, then generation is for the web page contents to be selected Option of operation.For example, after judging that this web page contents to be selected is not hyperlink, for the webpage to be selected Content generation includes the actions menu of option of operation(Or action pane).The actions menu can use the form of floating window. In the example of the present invention, the actions menu can be indicated in after generation by the web page contents to be selected Side.Or, the actions menu can also not shown after generation, but be clicked in the web page contents to be selected Just show afterwards.
The present invention another example in, according to predetermined processing mode to the web page contents to be selected at Before reason, methods described can also include:Whether the web page contents to be selected described in identification are telephone number, network address or postal Case.Fig. 5 shows the schematic diagram of an example according to the identification process.
As shown in figure 5, in step S501, calculate described in web page element included in the web page contents to be selected Number.
Then, in step S502, whether the quantity of the web page element in the web page contents to be selected described in judgement is more than Second predetermined threshold.If the quantity of the web page element in the web page contents to be selected is more than the second reservation threshold, Proceed to step S503, otherwise into step S505, flow terminates.Second predetermined threshold can be system or user's setting Any integer value.For example, in the example of the present invention, second reservation threshold can be set to 5.
In step S503, judge whether the web page contents to be selected meet telephone number rule, network address rule Then or mailbox rule.If it is determined that meeting telephone number rule, network address rule or mailbox rule, then in step S504, by institute State the web page contents to be selected and be identified as telephone number, network address or mailbox;Otherwise step S505 is entered, generation is for described The option of operation for the web page contents to be selected.
In the example of the present invention, judge that the method whether numeral obtained meets telephone number rule can be: Judge whether the digital number obtained is 8 or 11.If it is, confirming that this Serial No. obtained is phone number Code.As in above-mentioned example " 0-2-1,1-2-3-4-5-6-7-8 " digital number are 11, then " 0-2-1,1-2-3-4-5-6- 7-8 " can be identified as telephone number " 02112345678 ".
In the example of the present invention, judging whether acquired ascii character meets the method for network address rule can be with It is:The masterplate of matching is set up for common network address representation, for example:“http:* .*** ", be with keyword “http:" represent network address." www.***** ", is the network address represented with keyword " www. ".
The ascii character sequence of acquisition is matched with each template set up, if the match is successful, it is yes to return to answer. Such as to " www.yahoo.com " this ascii character sequence, we check " www. " this keyword, it is possible to confirm this Individual character string illustrates network address.
It is described when the web page contents to be selected are identified as telephone number in another example of the present invention Option of operation at least includes calling, saves as contact person, editor, replicates;When the web page contents to be selected are identified as During network address, the option of operation at least includes opening, downloads, preserves, editing, replicating;When the web page contents to be selected When being identified as mailbox, the option of operation at least includes hair mail, replicated.
In the example of the present invention, when the option of operation is clicked on by user, mobile terminal makes corresponding operating.
According to the web page contents choosing method of the present embodiment, by according to predetermined search rule, being opened from the web page element Begin, the adjacent web page element of the web page element is sequentially scanned for, recognize web page contents, can be automatically and intelligently from net The web page contents to be chosen are obtained in page, chooses and operates manually without user, the web browsing experience of user is thus improved.
In addition, using the web page contents choosing method according to the present invention, can be after web page contents be chosen, generation one is Arrange corresponding option of operation so that user can carry out sequence of operations directly in webpage to the web page contents of selection, so that Further improve the web browsing experience of user.
Illustrated with reference to specific example.
For example there is " telephone number 021-12345678 in webpage.", user clicks on screen, the corresponding webpage member of touch position Element is " 3 ", and since " 3 ", web page element adjacent to its left and right sides is sequentially scanned for.The attribute of " 3 " is numeral, now will Order obtain " 3 " on the right side of be all number attribute " 4 ", " 5 ", " 6 ", " 7 ", " 8 ", when get behind " 8 " "." when, Due to judge "." attribute be not number attribute, while nor special symbol, so now stop continuing obtaining "." behind Adjacent web page element;At the same time, to being that adjacent web page element is also sequentially searched on the left of " 3 ", order acquisition " 2 ", " 1 ", when getting "-", although the attribute of "-" is different from " 3 ", but because "-" belongs to special symbol, and the company now obtained The number of continuous special symbol is no more than the first predetermined threshold 1, so continuing scan for its adjacent web page element, obtain, directly To Chinese character " words " is got, because the attribute of " words " is different from " 3 ", " talk about " simultaneously nor special symbol, so now stopping Continue a upper adjacent element for acquisition " words ".When the web page element of both sides, which is obtained, to be stopped, " the 021- got is judged Whether 12345678 " web page element reaches the second threshold values, because " 021-12345678 " character number reaches the second threshold values 5, So next judging whether " 021-12345678 " of the acquisition meets telephone number rule, network address rule or mailbox rule Then.Due to judging that " 021-12345678 " meets telephone regulation, so " 021-12345678 " is identified as telephone number, this When, can be shown on screen the option of operation on an actions menu, actions menu at least include calling, save as contact person, Editor, duplication.When user clicks on " calling " option, then directly the telephone number is called, mobile terminal screen enters Enter dial-up interface.
Fig. 6 is the structural representation of the Web page content selecting device 30 of the embodiment of the present invention.As shown in figure 3, the present invention is real Detection unit 310, touch position acquiring unit 320, web page element determination can be included by applying the Web page content selecting device 30 of example Unit 330, search unit 340 and assembled unit 350.
Detection unit 310 on the touch-screen of mobile terminal for detecting whether perform web page contents selection operation.At this In one example of invention, the web page contents selection operation for example can be user's long-press touch-screen scheduled time, such as 2 Second.In addition, the other types of touching operation that the web page contents selection operation can be user to be carried out to touch-screen.In detection To after user's long-press touch-screen 2 seconds, determine that user sends execution web page contents selection operation.In the other examples of the present invention, Other suitable modes can also be taken to determine that user sends execution web page contents selection operation.
Touch position acquiring unit 320 is used for the web page contents selection operation on the touch-screen for detecting mobile terminal Afterwards, the touch position of the web page contents selection operation is obtained.
Web page element determining unit 330 be used for be based on the touch position, it is determined that in the web page contents currently shown with The corresponding web page element of the touch position.The specific determination process of web page element may be referred to choose above for web page contents The description that method is carried out, is no longer described herein.
Search unit 340 is used for since the web page element, according to predetermined search rule, to the phase of the web page element Adjacent web page element is sequentially scanned for.In the present invention, the search unit can be configured as since the web page element, The adjacent web page element in left side or right side to the web page element is sequentially scanned for, or is configured as to webpage member The adjacent web page element in the left and right sides of element is sequentially scanned for.Specific search procedure and predetermined search rule with above for webpage The description of content selection method is identical, no longer describes herein.
Assembled unit 350 is used for the web page element searched out and web page element group corresponding with the touch position Close, be used as the web page contents to be selected.In the present invention, by the web page element searched out and with the touch position During corresponding web page element combination, remove the special symbol.
In another example of the present invention, the Web page content selecting device 30 can also include:Web page contents are recognized Unit 360.Web page contents recognition unit 360 is used to recognize whether the web page contents to be selected are telephone number, network address Or mailbox.
Fig. 7 shows the block diagram of an implementation example of web page contents recognition unit 360.
As shown in fig. 7, web page contents recognition unit 360 can include:Computing module 361, described will be chosen for calculating The number of the web page element included in web page contents taken;First judge module 362, for judging the net to be selected Whether the quantity of the web page element in page content is more than the second reservation threshold;Second judge module 363, for judge it is described will quilt Whether the web page contents of selection meet telephone number rule, network address rule or mailbox rule;And identification module 364, for The quantity of web page element in the web page contents to be selected is more than the second reservation threshold and the webpage to be selected When content meets telephone number rule, network address rule or regular mailbox, the web page contents to be selected are identified as phone Number, network address or mailbox.
In another example of the present invention, the first judge module 362 and the second judge module 363 can not be included in In the web page contents recognition unit 360, and it is provided in outside the web page contents recognition unit 360.In addition, first judges The judge module 363 of module 362 and second can also be realized using same judge module.
In the example of the present invention, the Web page content selecting device 30 can also include:Web page contents processing is single Member 370, for being handled according to predetermined processing mode the web page contents to be selected.Wherein, it is described predetermined Processing mode can, when the web page contents to be selected are hyperlink, open the hyperlink, and want described When the web page contents being selected not are hyperlink, option of operation of the generation for the web page contents to be selected.
Fig. 8 shows the block diagram of the mobile terminal 40 according to the present invention.As shown in figure 8, mobile terminal includes Fig. 6 Shown in Web page content selecting device 30.In addition, the Web page content selecting device 30 shown in mobile terminal 40 can also be wrapped Include the various modifications of the Web page content selecting device 30 shown in Fig. 6.
In addition, typically, mobile terminal of the present invention can be various hand-held terminal devices, such as smart phone, honeybee Cellular telephone, personal digital assistant(PDA), tablet PC, Vehicular navigation system or notebook mobile phone etc., therefore the guarantor of the present invention Shield scope should not limit as certain certain types of mobile terminal.
In addition, the method according to the invention is also implemented as the computer program performed by CPU.In the computer journey When sequence is performed by CPU, the above-mentioned functions limited in the method for performing the present invention.For example, can be with according to the mobile terminal of the present invention It is implemented as storing in one or more processors, and the memory being connected with the one or more processors, the memory The computer program of instruction with each step defined in the method that can cause the computing device present invention.
In addition, above method step and system unit can also utilize controller and cause controller real for storing The computer readable storage devices of the computer program of existing above-mentioned steps or Elementary Function are realized.For example, according to the shifting of the present invention Dynamic terminal may be implemented as one or more processors, and the memory being connected with the one or more processors, and this is deposited The computer of instruction of the storage with each step defined in the method that can cause the computing device present invention in reservoir Program.
In addition, it should be appreciated that computer readable storage devices as described herein(For example, memory)Can be volatile Property memory or nonvolatile memory, or both volatile memory and nonvolatile memory can be included.It is used as example Son and it is nonrestrictive, nonvolatile memory can include read-only storage(ROM), programming ROM(PROM), electrically programmable ROM(EPROM), electrically erasable programmable ROM(EEPROM)Or flash memory.Volatile memory can include arbitrary access Memory(RAM), the RAM can serve as external cache.Nonrestrictive as an example, RAM can be with more The form of kind is obtained, such as synchronous random access memory(DRAM), dynamic ram(DRAM), synchronous dram(SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM(ESDRAM), synchronization link DRAM(SLDRAM)And directly Rambus RAM(DRRAM). The storage device of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, the various illustrative logical blocks with reference to described by disclosure herein, mould Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate This interchangeability of part and software, the function with regard to various exemplary components, square, module, circuit and step it is entered General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application Design constraint to whole system.Those skilled in the art can in a variety of ways realize described for every kind of concrete application Function, but this realize that decision should not be interpreted as causing a departure from the scope of the present.
Various illustrative logical blocks, module and circuit with reference to described by disclosure herein, which can be utilized, to be designed to The following part of function described here is performed to realize or perform:General processor, digital signal processor(DSP), special collection Into circuit(ASIC), field programmable gate array(FPGA)Or other PLDs, discrete gate or transistor logic, point Any combinations of vertical nextport hardware component NextPort or these parts.General processor can be microprocessor, but alternatively, processing Device can be any conventional processors, controller, microcontroller or state machine.Processor can also be implemented as computing device Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP core or any Other this configurations.
The step of method with reference to described by disclosure herein or algorithm, can be directly contained in hardware, be held by processor In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storages Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its In the storage medium of its form.Exemplary storage medium is coupled to processor so that processor can be from the storage medium Middle reading information writes information to the storage medium.In an alternative, the storage medium can be with processor collection Into together.Processor and storage medium may reside within ASIC.ASIC may reside within user terminal.In a replacement In scheme, processor and storage medium can be resident in the user terminal as discrete assembly.
In one or more exemplary designs, the function can be real in hardware, software, firmware or its any combination It is existing.If realized in software, the function can be stored in as one or more instructions or code computer-readable Transmitted on medium or by computer-readable medium.Computer-readable medium includes computer-readable storage medium and communication media, The communication media includes helping to be sent to computer program into any medium of another position from a position.Storage medium It can be any usable medium that can be accessed by a general purpose or special purpose computer.It is nonrestrictive as an example, the computer Computer-readable recording medium can include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic Property storage device, or can be used for carrying or storage form for instruct or data structure needed for program code and can Any other medium accessed by universal or special computer or universal or special processor.In addition, any connection can It is properly termed as computer-readable medium.If for example, using coaxial cable, optical fiber cable, twisted-pair feeder, digital subscriber line (DSL)Or the wireless technology of such as infrared ray, radio and microwave to send software from website, server or other remote sources, Then the wireless technology of above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared elder generations, radio and microwave is included in The definition of medium.As used herein, disk and CD include compact disk(CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disk generally magnetically reproduce data, and CD utilizes laser optics ground reproduce data.On The combination for stating content should also be as being included in the range of computer-readable medium.
The side that application interface is controlled by drag gesture according to the present invention is described in an illustrative manner above with reference to accompanying drawing Method and device.It will be understood by those skilled in the art, however, that applying boundary by double finger controls for what the invention described above was proposed The method and device in face, can also make various improvement on the basis of present invention is not departed from.Therefore, protection of the invention Scope should be determined by the content of appended claims.

Claims (8)

1. a kind of web page contents choosing method, including,
After web page contents selection operation on the touch-screen for detecting mobile terminal, touching for the web page contents selection operation is obtained Touch position;
Based on the touch position, it is determined that the corresponding web page element of the touch position in the web page contents currently shown;
Since the corresponding web page element of the touch position, according to predetermined search rule, net corresponding to the touch position The adjacent web page element in the left and right sides of page element is sequentially scanned for;And
By the web page element searched out and the corresponding web page element combination of the touch position, as in the webpage to be selected Hold,
Wherein, the predetermined search rule includes:
Order obtains the character attibute identical web page element of corresponding with touch position web page element, until getting and The different web page element of the corresponding web page element character attibute of the touch position;
Wherein, methods described also includes:
Whether the web page contents to be selected described in identification are telephone number, network address or mailbox;And
The web page contents to be selected are handled according to predetermined processing mode.
2. web page contents choosing method according to claim 1, wherein, the predetermined search rule also includes:
When the different web page element of the web page element character attibute corresponding from the touch position that the order is obtained is specific During symbol, continue to obtain next adjacent web page element, and
When the web page element searched out and the corresponding web page element of the touch position are combined, remove the specific symbol Number.
3. web page contents choosing method according to claim 2, wherein, the predetermined search rule also includes:
When the number for the continuous special symbol that the order is obtained is more than the first predetermined threshold, stop obtaining next adjacent webpage Element.
4. web page contents choosing method as claimed in claim 1, wherein, the predetermined processing mode includes:
When the web page contents to be selected are hyperlink, the hyperlink is opened, and
When the web page contents to be selected are not hyperlink, operation of the generation for the web page contents to be selected Option.
5. web page contents choosing method as claimed in claim 1, wherein, the identification process includes:
The number of web page element in the web page contents to be selected described in calculating,
The quantity of web page element in the web page contents to be selected is more than the second reservation threshold and described is selected Web page contents when meeting telephone number rule, network address rule or mailbox regular, the web page contents to be selected are recognized For telephone number, network address or mailbox.
6. web page contents choosing method according to claim 5, in addition to:
When the web page contents to be selected are identified as telephone number, the option of operation at least includes calling, preserved For contact person, editor, replicate;
When the web page contents to be selected are identified as network address, the option of operation at least includes opening, downloads, protects Deposit, edit, replicate;
When the web page contents to be selected are identified as mailbox, the option of operation at least includes hair mail, replicated.
7. a kind of Web page content selecting device, including:
Detection unit, the web page contents selection operation on touch-screen for detecting mobile terminal;
Touch position acquiring unit, after the web page contents selection operation on the touch-screen for detecting mobile terminal, is obtained The touch position of the web page contents selection operation;
Web page element determining unit, for based on the touch position, it is determined that the touching in the web page contents currently shown The corresponding web page element in position;
Search unit, for since the web page element, according to predetermined search rule, webpage corresponding to the touch position The adjacent web page element in the left and right sides of element is sequentially scanned for;
Assembled unit, for the web page element searched out and the corresponding web page element of the touch position to be combined, as will quilt The web page contents of selection;
Wherein, the predetermined search rule includes:
Order obtains the character attibute identical web page element of corresponding with touch position web page element, until getting and The different web page element of the corresponding web page element character attibute of the touch position,
Wherein, the Web page content selecting device also includes:
Web page contents recognition unit, for recognizing whether the web page contents to be selected are telephone number, network address or mailbox; And
Web page contents processing unit, for being handled according to predetermined processing mode the web page contents to be selected.
8. Web page content selecting device as claimed in claim 7, wherein, the web page contents recognition unit includes:
Computing module, the number for calculating the web page element in the web page contents to be selected;
First judge module, for judging whether the quantity of the web page element in the web page contents to be selected is more than second Reservation threshold;
Second judge module, for judge the web page contents to be selected whether meet telephone number rule, network address rule, Or mailbox rule;And
Identification module, for the web page element in the web page contents to be selected quantity be more than the second reservation threshold and When the web page contents to be selected meet telephone number rule, network address rule or mailbox regular, to be selected described Web page contents are identified as telephone number, network address or mailbox.
CN201310196328.0A 2013-05-24 2013-05-24 Web page contents choosing method and device Active CN103324674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310196328.0A CN103324674B (en) 2013-05-24 2013-05-24 Web page contents choosing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310196328.0A CN103324674B (en) 2013-05-24 2013-05-24 Web page contents choosing method and device

Publications (2)

Publication Number Publication Date
CN103324674A CN103324674A (en) 2013-09-25
CN103324674B true CN103324674B (en) 2017-09-15

Family

ID=49193417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310196328.0A Active CN103324674B (en) 2013-05-24 2013-05-24 Web page contents choosing method and device

Country Status (1)

Country Link
CN (1) CN103324674B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750661B (en) * 2013-12-30 2018-09-28 腾讯科技(深圳)有限公司 A kind of method and apparatus that selected words and phrases are carried out to text
CN104462319B (en) * 2014-12-01 2017-12-26 百度在线网络技术(北京)有限公司 The treating method and apparatus of information in webpage
CN105786930B (en) * 2014-12-26 2019-11-26 北京奇虎科技有限公司 Based on the searching method and device for touching interaction
CN106033291A (en) * 2015-03-13 2016-10-19 阿里巴巴集团控股有限公司 Method and device for copying text in intelligent terminal
CN106202215A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 A kind of processing method showing element and mobile terminal
CN106326453A (en) * 2016-08-26 2017-01-11 乐视控股(北京)有限公司 In-page search method and device
CN107608802A (en) * 2017-09-11 2018-01-19 深圳天珑无线科技有限公司 A kind of information processing method, device, terminal and computer-readable recording medium
CN109543174B (en) * 2017-09-21 2023-05-09 广州腾讯科技有限公司 Text selection method, text selection device, computer readable storage medium and computer equipment
CN111104626B (en) * 2018-10-26 2023-11-24 北京易数科技有限公司 Information storage method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123635A (en) * 2006-08-11 2008-02-13 深圳市爱科信实业发展有限公司 Fixed phone calling method for screen word capturing
CN102929925A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Search method and device based on browsing content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101243449A (en) * 2005-06-16 2008-08-13 文字点击有限公司 Method and system for automated initiation of search queries from computer displayed content
KR20110091379A (en) * 2010-02-05 2011-08-11 삼성전자주식회사 Method and apparatus for selecting hyperlinks
US20110225152A1 (en) * 2010-03-15 2011-09-15 Microsoft Corporation Constructing a search-result caption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123635A (en) * 2006-08-11 2008-02-13 深圳市爱科信实业发展有限公司 Fixed phone calling method for screen word capturing
CN102929925A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Search method and device based on browsing content

Also Published As

Publication number Publication date
CN103324674A (en) 2013-09-25

Similar Documents

Publication Publication Date Title
CN103324674B (en) Web page contents choosing method and device
CN105786930B (en) Based on the searching method and device for touching interaction
US10417492B2 (en) Conversion of static images into interactive maps
US20180329801A1 (en) Detecting and correcting layout anomalies in real-time
CN106575291A (en) Detecting selection of digital ink
US9134833B2 (en) Electronic apparatus, method, and non-transitory computer-readable storage medium
KR20180008480A (en) System and method for extracting and sharing application-related user data
CN105580384A (en) Actionable content displayed on a touch screen
EP2891041B1 (en) User interface apparatus in a user terminal and method for supporting the same
CN104246678A (en) Device, method, and graphical user interface for sharing a content object in a document
CN104951497A (en) Method and apparatus for constructing documents
CN103995802A (en) Method and equipment for managing electronic book notes
CN105378728A (en) Apparatus and method for representing and manipulating metadata
CN104572803B (en) For handling the device and method of information list in terminal installation
US10049114B2 (en) Electronic device, method and storage medium
CN107656693A (en) A kind of method and device that cursor position is determined in touch-screen
CN105446572A (en) Text-editing method and device used for screen display device
CN106095261A (en) A kind of method and apparatus adding notes on an electronic device
US20140089841A1 (en) Device and method for providing application interface based on writing input
KR102125212B1 (en) Operating Method for Electronic Handwriting and Electronic Device supporting the same
US20140079317A1 (en) Electronic apparatus and handwritten document processing method
KR20150023151A (en) Electronic device and method for executing application thereof
CN104516674A (en) Word processing method and device
CN106953913A (en) A kind of information-pushing method and mobile terminal
CN107220377B (en) Search method, electronic device, and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083, Haidian District, Beijing, Fu Cheng Road, No. 28 excellent building, block A, floor 12

Applicant after: Excelle View Technology Co., Ltd.

Address before: 100080 Beijing City, Haidian District Suzhou Street No. 29 building 16 room 10-20 Scandinavia

Applicant before: Excelle View Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201230

Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100083 12 / F, block a, Yousheng building, 28 Chengfu Road, Haidian District, Beijing

Patentee before: UC MOBILE Ltd.