Embodiment
Graphic and embodiment below will be coordinated to describe embodiments of the present invention in detail, whereby to the present invention how application technology means solve technical matters and the implementation procedure reaching technology effect can fully understand and implement according to this.
Below first to illustrate and disclosed in this inventionly changeablely be embedded in the mark switched system identified in webpage, and with reference to shown in figure 1, Figure 1 shows that the changeable system block diagrams being embedded in the mark that identifies in webpage and switching of the present invention.
The changeable mark switched system identified in webpage that is embedded in disclosed in this invention is embedded in browser 10, and browser 10 uses in order to display web page, and in the webpage that browser 10 shows, original mark can be embedded into after default words in web page contents and paragraph, default words can be set by user, to meet the use of different users, and please refer to prior art after the default words original mark be embedded in web page contents and paragraph, no longer repeat at this.
The changeable mark switched system identified in webpage that is embedded in disclosed in this invention comprises: identification data table 11, receiver module 12, scope judge module 13, judge module 14, enquiry module 15 and replacement module 16.
Identification data table 11 is established in advance, and identification data table 11 stores at least two identification informations, each identification information at least comprises index value, mark and power function, index value is the index of each mark, mark is and is embedded in the default words in web page contents and the original mark after paragraph, in general mark is the form presenting image, power function is the power function corresponding to mark, mark is made to have keystroke characteristics, namely mark can be triggered, and when mark is triggered, the required function performed is the power function corresponding to mark.
User is at unlatching browser when browsing webpage, original mark can be embedded into after default words now in web page contents and paragraph, it should be noted that, original mark herein can be have in webpage source code, also can be that user arranges interpolation before opening webpage, this is not restricted for the embedded mode of original mark.Then, user can carry out pulling the operation chosen in the indication range of webpage, and user to pull the operation chosen can be horizontal towing selection operation, longitudinal towing selection operation or oblique towing selection operation.
In general horizontal towing selection operation is horizontal linear operating from left to right, longitudinal towing selection operation is longitudinal linear operating from top to bottom, oblique towing selection operation is oblique towing selection operation from upper left to bottom right, be only at this and illustrate it, the present invention is not as restriction.
And when user carries out pulling the operation chosen in the indication range of webpage, the interior towing of indication range that namely receiver module 12 can be received in webpage is chosen instruction and is received the range of instructions that instruction is chosen in towing, and the towing selection operation that instruction is user is chosen in towing, pull the opereating specification that the range of instructions choosing instruction is the towing selection operation of user.
When pull choose instruction be horizontal towing choose instruction time, the range of instructions that instruction is chosen in towing is the linear extent that user chooses in the towing of transverse direction, for example, user is from (50,50) laterally tow to (60,50), the linear extent that range of instructions is now " (50; 50) and (60,50) " is formed.
When pull choose instruction be longitudinal towing choose instruction time, the range of instructions that instruction is chosen in towing is the linear extent that user chooses in the towing of longitudinal direction, for example, user is from (50,50) longitudinally tow to (50,60), the linear extent that range of instructions is now " (50; 50) and (50,60) " is formed.
When pull choose instruction be oblique towing choose instruction time, the range of instructions that instruction is chosen in towing is the planar range that user chooses in oblique towing, for example, user tows to (60 from (50,50) are oblique, 60), the planar range that range of instructions is now " (50,50), (60,50), (50; 60) and (60,60) " is formed.
Then, receive towing at receiver module 12 and choose instruction and receive after towing chooses the range of instructions of instruction, namely whether scope judge module 13 decision instruction scope can be greater than the half of web displaying scope.
When pull choose instruction be horizontal towing choose instruction time, the range of instructions choosing instruction due to towing is the linear extent that user chooses in the towing of transverse direction, therefore, namely scope judge module 13 can carry out with the lateral extent of the indication range of webpage the judgement whether range of instructions be greater than the half of the indication range of webpage, for example, laterally the range of instructions of instruction is chosen in towing is " (50, 50) and (60, 50) linear extent (i.e. the linear extent of 11 units) " formed, and the indication range of webpage is " (0, 0), (149, 0), (0, 299) and (149, 299) ", namely scope judge module 13 can take out " (0, 0) to (149, 0) lateral extent (i.e. the linear extent of 150 units) " carries out the judgement whether range of instructions is greater than the half of the indication range of webpage, its result is the half that range of instructions is less than the indication range of webpage.
When pull choose instruction be longitudinal towing choose instruction time, the range of instructions choosing instruction due to towing is the linear extent that user chooses in the towing of longitudinal direction, therefore, namely scope judge module 13 can carry out with the longitudinal extent of the indication range of webpage the judgement whether range of instructions be greater than the half of the indication range of webpage, for example, longitudinally the range of instructions of instruction is chosen in towing is " (50, 50) and (50, 60) linear extent (i.e. the linear extent of 11 units) " formed, and the indication range of webpage is " (0, 0), (149, 0), (0, 299) and (149, 299) ", namely scope judge module 13 can take out " (0, 0) to (0, 299) longitudinal extent (i.e. the linear extent of 300 units) " carries out the judgement whether range of instructions is greater than the half of the indication range of webpage, its result is the half that range of instructions is less than the indication range of webpage.
When pull choose instruction be oblique towing choose instruction time, the range of instructions choosing instruction due to towing is the planar range that user chooses in oblique towing, therefore, namely scope judge module 13 can carry out with the planar range of the indication range of webpage the judgement whether range of instructions be greater than the half of the indication range of webpage, for example, the range of instructions that instruction is chosen in oblique towing is " (50, 50), (60, 50), (50, 60) and (60, 60) planar range (i.e. the planar range of 11 × 11 units) " formed, and the indication range of webpage is " (0, 0), (149, 0), (0, 299) and (149, 299) ", namely scope judge module 13 can take out " (0, 0), (149, 0), (0, 299) and (149, 299) planar range (i.e. the planar range of 150 × 300 units) " carries out the judgement whether range of instructions is greater than the half of the indication range of webpage, its result is the half that range of instructions is less than the indication range of webpage.
Then, judge module 14 judges that range of instructions is less than indication range one half of webpage when scope judge module 13, within the scope of decision instruction, whether there is original mark, namely whether have original mark within the scope of judge module 14 decision instruction is the mark and the power function that judge whether to have in range of instructions corresponding in the source code of webpage original mark, can judge whether have original mark in range of instructions.
Then, when judge module 14 judges to have original mark in range of instructions, can relend and identify corresponding index value according to inquiring in the mark of original mark and power function tagging tables of data 11 with original by enquiry module 15, and enquiry module 15 inquire with original identify corresponding index value after, replace in the module 16 index value tagging tables of data 11 that namely can inquire according to enquiry module 15 and select the identification information of next index value to replace original mark for replacing mark.
Whereby, can reach and switch being embedded in mark in web page contents, in webpage, only provide the switching of multiple mark to provide the effect of difference in functionality with the space of singular id.
And when scope judge module 13 judges that range of instructions is greater than indication range one half of webpage, now, namely original with each corresponding index value can be identified by enquiry module 15 according to inquiring in the mark of each original mark in webpage and power function tagging tables of data 11, and enquiry module 15 inquire original with each identify corresponding index value after, the identification information of the next index value of each index value is selected to replace each original mark for each replaces mark in each index value tagging tables of data 11 that namely replacement module 16 can inquire according to enquiry module 15.
Whereby, can reach and switch being embedded in all marks in web page contents simultaneously, in webpage, only provide the switching of multiple mark to provide the effect of difference in functionality with the space of singular id.
When scope judge module 13 judges that range of instructions is less than indication range one half of webpage, whether judge module 14 is except can to having except original mark judges in range of instructions, whether judge module 14 more can judge only having in range of instructions single original mark, namely judge module 14 is the mark and the power function that judge whether only to have in range of instructions corresponding in the source code of webpage single original mark, can judge, in range of instructions, whether only there is single original mark, and when judge module 14 judges the original mark in range of instructions with more than two, now namely can judge that user pulls the operation being operating as failure chosen, namely can not to replace the original mark identifying and be substituted in range of instructions.
Then, below will explain orally function mode of the present invention and flow process with an embodiment, following embodiment illustrates and is described shown in synchronous matching Fig. 1 and Fig. 2, Figure 2 shows that the changeable method flow diagram being embedded in the mark switching identified in webpage of the present invention.
Please refer to shown in Fig. 3 A and Fig. 3 B, Fig. 3 A is depicted as the changeable web page contents display schematic diagram being embedded in the mark switching identified in webpage of the present invention; Fig. 3 B is depicted as the changeable webpage source code content schematic diagram being embedded in the mark switching identified in webpage of the present invention.
The changeable mark changing method identified in webpage that is embedded in disclosed in this invention is applied in browser 10, and browser 10 uses in order to display web page 21, and in the webpage 21 that browser 10 shows, be embedded into the first original mark 32 of original mark 31, second and the 3rd original mark 33 respectively after default words " control " in webpage 21 content and default words " fortress " and paragraph, and the signal of the content of the first original mark 32 of original mark 31, second and the 3rd original mark 33 please refer to shown in Fig. 3 A and Fig. 3 B.
Then, please refer to shown in Fig. 4 A and Fig. 4 B, Fig. 4 A is depicted as the changeable towing being embedded in the mark switching identified in webpage of the present invention and selectes instruction schematic diagram; Fig. 4 B is depicted as the changeable webpage source code content schematic diagram being embedded in the mark switching identified in webpage of the present invention.
Then, the operation (i.e. dotted arrow in Fig. 4 A) that the oblique towing carrying out upper left to bottom right as user in the indication range of webpage 21 is chosen, in the indication range that namely receiver module 12 can be received in webpage 21, towing chooses instruction for " instruction is chosen in oblique towing " and receive towing and choose the range of instructions of instruction for " (50; 50), (60; 50), (50; 60) and (60,60) " (step 120).
Then, receive towing at receiver module 12 and choose instruction for " instruction is chosen in oblique towing " and receive range of instructions that towing chooses instruction for after " (50; 50), (60; 50), (50; 60) and (60; 60) " (namely range of instructions is the plane sizes of 11 × 11 units), and suppose that the indication range of webpage be " (0; 0), (149; 0), (0; 299) and (149,299) " i.e. indication range is the plane sizes of 150 × 300 units.
Scope judge module 13 can carry out the judgement (step 130) whether range of instructions is greater than the half of the indication range of webpage, in the present embodiment, namely scope judge module 13 can judge that range of instructions is less than the half of the indication range of webpage, then, when scope judge module 13 judges that range of instructions is less than indication range one half of webpage, can relend, by within the scope of judge module 14 decision instruction, whether there is original mark (step 140).
Then, please also refer to shown in Fig. 4 A, Fig. 4 B and Fig. 5, Figure 5 shows that the changeable identification data being embedded in the mark switching identified in webpage of the present invention represents intention.
Identification data table 40 is established in advance, and identification data table 40 stores the first identification information 41, second identification information 42 and the 3rd identification information 43 (step 110), and the content of the first identification information 41, second identification information 42 and the 3rd identification information 43 please refer to shown in Fig. 5, no longer repeat at this.
The source code content being webpage 21 corresponding to " (50; 50), (60; 50), (50; 60) and (60,60) " in range of instructions is the first original mark 31 " <imgsrc=" image/mag1.png " onclick=" DreyeTransAPI (); " > ", wherein, " mag1.png " is the mark 412 of the first identification information 41, and " DreyeTransAPI () " is the power function 413 of the first identification information 41, now, namely judge module 14 can judge to have the first original mark 31 in range of instructions.
Then, when judge module 14 judges to have the first original mark 31 in range of instructions, can to relend by enquiry module 15 according to the first index value 411 inquiring mark 31 original in first in the mark " mag1.png " of the first original mark 31 and power function " DreyeTransAPI () " tagging tables of data 40 corresponding is " 1 " (step 150).
Inquire the first index value 411 corresponding to mark 31 original in first for after " 1 " at enquiry module 15, replacing the first index value 411 that namely module 16 can inquire according to enquiry module 15 be that to select next second index value 421 to be second identification information 42 of " 2 " in " 1 " tagging tables of data 40 be that the first replacement identifies 51 " <imgsrc=" image/mag2.png " onclick=" DreyeTransAllAPI (); " > " replaces the first original mark 31 " <imgsrc=" image/magl.png " onclick=" DreyeTransAPI (); " > " (step 160), the replacement result that first replacement mark 51 replaces the first original mark 31 please refer to shown in Fig. 6 A and Fig. 6 B, and Fig. 6 A is depicted as the changeable replacement result display schematic diagram being embedded in the mark switching identified in webpage of the present invention; Fig. 6 B is depicted as the changeable mark being embedded in the mark switching identified in webpage of the present invention and replaces results web page source code content schematic diagram.
When scope judge module 13 judges that range of instructions is less than indication range one half of webpage, whether judge module 14 is except can to having except the first original mark 31 judges in range of instructions, whether judge module 14 more can judge only having in range of instructions the first single original mark 31, namely judge module 14 is the mark and the power function that judge whether only to have in range of instructions corresponding in the source code of webpage the first single original mark 31, can judge whether only there is in range of instructions the first single original mark 31 (step 190), and when judge module 14 judges the original mark in range of instructions with more than two, now namely can judge that user pulls the operation being operating as failure chosen, namely the first original mark 31 in range of instructions can not be substituted in the first replacement mark 51.
Then, please refer to shown in Fig. 5, Fig. 7 A and Fig. 7 B, Fig. 7 A is depicted as the changeable towing being embedded in the mark switching identified in webpage of the present invention and selectes instruction schematic diagram; Fig. 7 B is depicted as the changeable webpage source code content schematic diagram being embedded in the mark switching identified in webpage of the present invention.
The operation (i.e. dotted arrow in Fig. 7 A) that the oblique towing again carrying out upper left to bottom right as user in the indication range of webpage 21 is chosen, in the indication range that namely receiver module 12 can be received in webpage 21, towing chooses instruction for " instruction is chosen in oblique towing " and receive towing and choose the range of instructions of instruction for " (0; 0), (149; 0), (0; 299) and (149,299) ".
Then, receive towing at receiver module 12 and choose instruction for " instruction is chosen in oblique towing " and receive range of instructions that towing chooses instruction for after " (0; 0), (149; 0), (0; 299) and (149; 299) " (namely range of instructions is the plane sizes of 150 × 300 units), namely scope judge module 13 can judge that range of instructions is greater than the half (step 130) of the indication range of webpage.
And when scope judge module 13 judges that range of instructions is greater than indication range one half of webpage, now, namely can by enquiry module 15 by the first original mark 31 " <imgsrc=" image/mag1.png " onclick=" DreyeTransAPI () in webpage source code; The first index value 411 that in " > ", " mag1.png " (being the mark 412 of the first identification information 41) and " DreyeTransAPI () " (being the power function 413 of the first identification information 41) inquire mark 31 original in first corresponding is " 1 " (step 170).
Then, enquiry module 15 is by the second original mark 32 " <imgsrc=" image/mag3.png " onclick=" DreyePronAPI () in webpage source code; The 3rd index value 431 that in " > ", " mag3.png " (being the mark 432 of the 3rd identification information 43) and " DreyePronAPI () " (being the power function 433 of the 3rd identification information 41) inquire mark 32 original in second corresponding is " 3 " (step 170).
Then, enquiry module 15 is by the 3rd original mark 33 " <imgsrc=" image/mag2.png " onclick=" DreyeTransAllAPI () in webpage source code; The second index value 421 that in " > ", " mag2.png " (being the mark 422 of the second identification information 42) and " DreyeTransAllAPI () " (being the power function 423 of the second identification information 42) inquire mark 33 original in the 3rd corresponding is " 2 " (step 170).
The first index value 411 inquiring mark 31 original in first corresponding at enquiry module 15 is " 1 ", inquiring the 3rd index value 431 corresponding to mark 32 original in second is " 3 " and inquire the second index value 421 corresponding to the original mark 33 with the 3rd for after " 2 ", replacing module 16 first index value 411 that namely can inquire according to enquiry module 15 be that to select next second index value 421 to be second identification information 42 of " 2 " in " 1 " tagging tables of data 40 be that the first replacement identifies 51 " <imgsrc=" image/mag2.png " onclick=" DreyeTransAllAPI (), " > " replaces the first original mark 31 " <imgsrc=" image/mag1.png " onclick=" DreyeTransAPI (), " > " (step 180).
Then, replacing module 16 the 3rd index value 431 that namely can inquire according to enquiry module 15 be that to select next first index value 421 to be first identification information 41 of " 1 " in " 3 " tagging tables of data 40 be that the second replacement identifies 52 " <imgsrc=" image/mag1.png " onclick=" DreyeTransAPI (); " > " replaces the second original mark 32 " <imgsrc=" image/mag3.png " onclick=" DreyePronAPI (); " > " (step 180).
Then, replacing module 16 second index value 421 that namely can inquire according to enquiry module 15 be that to select next 3rd index value 431 to be the 3rd identification information 43 of " 3 " in " 2 " tagging tables of data 40 be the 3rd replacement mark 53 " <imgsrc=" image/mag3.png " onclick=" DreyePronAPI (); " > " replaces the 3rd original mark 33 " <imgsrc=" image/mag2.png " onclick=" DreyeTransAllAPI (); " > " (step 180).
First replaces mark 51 replaces the first original mark 31, second and replaces mark 52 and replace the second original mark 32 and the 3rd and replace the replacement result that mark 53 replaces the 3rd original mark 33 and please refer to shown in Fig. 8 A and Fig. 8 B, and Fig. 8 A is depicted as the changeable replacement result display schematic diagram being embedded in the mark that identifies in webpage and switching of the present invention; Fig. 8 B is depicted as the changeable mark being embedded in the mark switching identified in webpage of the present invention and replaces results web page source code content schematic diagram.
In sum, difference between known the present invention and prior art is to receive to pull in the indication range of webpage choose instruction and receive the range of instructions of pulling and choosing instruction, and whether decision instruction scope is greater than within the scope of the half of the indication range of webpage and decision instruction whether have original mark, tagging tables of data can inquire and identify corresponding index value with original, in according to index value tagging tables of data, select the identification information of next index value to replace original mark for replacing mark, and then the switchable effect of original mark after the default words/paragraph being embedded in webpage is provided.
The not function that switches of tool of the mark after being embedded in webpage words perhaps paragraph existing for prior art can be solved by this technological means, cause user to operate and read the problem of webpage inconvenience, and then reaching technology effect that the original mark after providing the default words/paragraph being embedded in webpage carries out switching.
Although embodiment disclosed in this invention as above, only described content is also not used to directly limit scope of patent protection of the present invention.Any persons of ordinary skill in the technical field of the present invention, under the prerequisite not departing from spirit and scope disclosed in this invention, can do a little change what implement in form and in details.Scope of patent protection of the present invention, still must be as the criterion with the appending claims person of defining.