CN105094653B - A kind of localization method and device of content of pages - Google Patents
A kind of localization method and device of content of pages Download PDFInfo
- Publication number
- CN105094653B CN105094653B CN201410190743.XA CN201410190743A CN105094653B CN 105094653 B CN105094653 B CN 105094653B CN 201410190743 A CN201410190743 A CN 201410190743A CN 105094653 B CN105094653 B CN 105094653B
- Authority
- CN
- China
- Prior art keywords
- index
- content
- touch point
- screen
- current screen
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The present invention is suitable for internet area, provides the localization method and device of a kind of content of pages.The described method includes: monitoring the sliding touch-screen event in index region, the index region is for showing at least one index;When listening to sliding touch-screen event, the distance of assigned indexes in current screen touch point to index region is determined;It is each in the distance drawn according to the current screen touch point to index region middle finger standing wire and the index region being obtained ahead of time to index the height for occupying the page, determine the corresponding index in the current screen touch point;According to the corresponding index positioning webpage content in the current screen touch point and show.The present invention can be improved the accuracy rate that index is clicked.
Description
Technical field
The invention belongs to internet area more particularly to the localization methods and device of a kind of content of pages.
Background technique
Currently, in Wireless Application Protocol (Wireless Application Protocol, a Wap) class portal website
The information of multiple websites is typically included, for the ease of quick locating websites, relative index can be arranged in portal website, when user's point
The information of website corresponding with indexing can be shown by hitting terminal screen after indexing.
As shown in Figure 1, the title of multiple websites is listed on the middle position of terminal screen when browsing webpage now,
Index slip " A B C D E F H J M N P Q S T W Z " is shown in the left position of terminal screen.The index slip is
According to the arrangement of the sequencing of 26 English alphabets, first phonetic of each English alphabet and the Chinese for the website listed
It is corresponding, but since terminal screen is too small, hidden parts index.In Fig. 1, there is the Chinese of a website in the website listed
First phonetic be X, the Chinese of the website such as listed is " News Network ", then after the X for clicking index slip, will find this
" X " corresponding index content: " News Network ".Certainly, if being " X " there are also the initial of the Chinese of other websites, at end
It also shows that come on the screen of end.
Since the screen of terminal screen, especially mobile terminal is usually smaller, therefore the sky between two adjacent indexes
White position is also smaller, when switching two adjacent indexes using existing method, is easy to click other indexes, to reduce
The accuracy rate clicked.
Summary of the invention
The embodiment of the invention provides a kind of localization methods of content of pages when browsing webpage, it is intended to solve existing method
In, user clicks the too low problem of the index accuracy rate of the page indexed in region when browsing web sites.
The embodiments of the present invention are implemented as follows, and a kind of localization method of content of pages, the method includes the following steps:
The sliding touch-screen event in index region is monitored, the index region is for showing at least one index;
When listening to sliding touch-screen event, the distance of assigned indexes in current screen touch point to index region is determined;
The distance drawn according to the current screen touch point to index region middle finger standing wire and the index being obtained ahead of time
It is each in region to index the height for occupying the page, determine the corresponding index in the current screen touch point;
According to the corresponding index positioning webpage content in the current screen touch point and show.
The another object of the embodiment of the present invention is to provide a kind of positioning device of content of pages, and described device includes:
Monitoring unit, for monitoring the sliding touch-screen event in index region, the index region is for showing at least one
Index;
The metrics calculation unit of touch point and assigned indexes, for determining current screen when listening to sliding touch-screen event
The distance of assigned indexes in curtain touch point to index region;
Index judging unit, for according to the current screen touch point to the distance drawn of index region middle finger standing wire and in advance
It is each in the index region first obtained to index the height for occupying the page, determine the corresponding rope in the current screen touch point
Draw;
Content of pages display unit, for according to the corresponding index positioning webpage content in the current screen touch point and showing
Show.
In embodiments of the present invention, when browsing webpage, due to index region listen to sliding touch-screen event when, the page
Content also carries out corresponding scrolling display, therefore when switching two adjacent indexes, only need to be without clicking specific index
Index slides touch screen in region, by calculating current touch point at a distance from designated position, so that it is determined that the position of current touch point
It sets, judges the index position where it to improve the accuracy rate that index is clicked.
Detailed description of the invention
Fig. 1 is the display schematic diagram of the index that the prior art provides and content of pages;
Fig. 2 is a kind of flow chart of the localization method for content of pages that first embodiment of the invention provides;
Fig. 3 is a kind of signal of the touch point of first embodiment of the invention offer at a distance from the coordinate points that the page is chosen
Figure;
Fig. 4 is the signal that a kind of amplification that first embodiment of the invention provides shows the corresponding index in current screen touch point
Figure;
Fig. 5 is that one kind that second embodiment of the invention provides listens to before sliding touch-screen event, the display of content of pages
Schematic diagram;
Fig. 6 is the corresponding index in a kind of current screen touch point that second embodiment of the invention provides when being " M ", in the page
The display schematic diagram of appearance;
Fig. 7 is the corresponding index in a kind of current screen touch point that second embodiment of the invention provides when being " Q ", in the page
The display schematic diagram of appearance;
Fig. 8 is a kind of structure chart of the positioning device for content of pages that third embodiment of the invention provides;
Fig. 9 is a kind of part of the relevant intelligent terminal of positioning device for content of pages that fourth embodiment of the invention provides
Structure chart.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 2 shows a kind of flow charts of the localization method of content of pages of first embodiment of the invention offer, need
Bright, the page refers to any page of internet site, alternatively referred to as webpage, and content is in the page of online real-time update
Hold.Details are as follows:
Step S21 monitors the sliding touch-screen event in index region, and the index region is for showing at least one index.
In the step, index region can be set the index region and be located at screen for showing one or more indexes
Left also can be set the right that the index region is located at screen, be not construed as limiting herein.Wherein, the index of the present embodiment can
The first letter of pinyin in first Chinese of website locating for each content of pages is thought, such as the website locating for content of pages
When for " News Network ", using the first letter of pinyin " X " of " new " as index;Certainly, if first of website locating for content of pages
Word is number or symbol, then the number or symbol can also be used as index, be not construed as limiting herein.Further, the present embodiment
Index region in the index that occurs be to be generated in real time according to the website actually found, it is rather than pre-generated, such as in advance
26 letter A to Z of index slip are first generated, then when user clicks some index, may be searched less than corresponding website.And this reality
The index slip for applying example generates in real time, therefore each index corresponds at least one website.
Preferably, can classify to the type of website, index of the classification results as the present embodiment.For example, educating
In the website of class, it may include: Chinese education is online, middle National IP Network, Chinese Higher school student Information Network etc..
As another embodiment of the present invention, in step S21, before the step of monitoring the sliding touch-screen event in index region,
Include the following steps:
The web site name of website locating for A1, searched page content.
A2, index content is generated according to the web site name.
It whether there is identical index content in the index content that A3, judgement generate, and if it exists, then delete in same index
Extra index content in appearance only retains an index content in same index content, if it does not exist, retains all of generation
Index content.
A4, the index content of reservation is ranked up, and be stored in array of indexes in order.
In above-mentioned steps A1~A4, after searching out multiple web site names, generated further according to web site name and default rule
Index content.Wherein, default rule includes: that the first letter of pinyin in first Chinese according to Chinese website title is raw
At index content;Index content is generated according to the initial of the first word of English website;The class according to web site name
Type generates index content etc..For example, the phonetic lead-in in first Chinese that default rule is according to web site name
When mother generates, if the web site name obtained is " News Network ", it is according to the index content that the web site name " News Network " generates
X.When multiple index contents of generation are there are when identical index content, only retain one in same index content, such as basis
The index content that web site name " net of liking to be beautiful " generates is A, is A according to the index content that web site name is " secret " generation, then only
Retain an index content A.After deleting extra index content, to remaining index content in a certain order into
Row sequence, for example, sort when index content is letter b, C, F, A according to 26 alphabetical sequencings, obtained sequence knot
Fruit is A, B, C, F, then by the index content deposit array of indexes after sequence, i.e., is entered in first addressed memory of array of indexes
" A " enters " B " in second addressed memory of array of indexes, subsequent and so on.
By thread monitor index region touch-screen event, including monitor start touch-screen event, sliding touch-screen event and
Terminate touch-screen event.
Step S22 determines assigned indexes in current screen touch point to index region when listening to sliding touch-screen event
Distance.
In the step, assigned indexes can be index either one or two of in index area domain, such as can be in index area domain
First index.First index indexed in region can be first index in index area domain from top to bottom, can also be with
For from top to bottom first index in index region, referring to Fig. 1, indexing first index in region can be A, can also be with
For Z.
In order to which assigned indexes in current screen touch point and index region are unified in the same coordinate system, work as in calculating
Forth screen touch point to page index region in assigned indexes apart from when, a page location can be preassigned and calculated, have
Body:
B1, distance of the current screen touch point to page designated position on screen vertical direction is determined.
It should be noted that designated position refers to any one predetermined position in the index region of the page, lead to
The fixed point of the page often shown for terminal screen.
Preferably, the page designated position includes any point in the extension plane for index region vertical direction, or
Index any point in region.Wherein, the page here refers to the page in website, and referring to Fig.1, the lines of the overstriking of Fig. 1 are
Index the extension plane in region vertical direction northwards direction.
Wherein, when page designated position is any point in the extension plane for indexing region vertical direction, step B1, really
Settled forth screen touch point to page designated position on screen vertical direction apart from the step of specifically include:
B11, ordinate of the current screen touch point on screen vertical direction is obtained, and obtains the index region and hangs down
Histogram to extension plane in any point ordinate.
In the step, any point indexed in the extension plane of region vertical direction is usually taken to be the one of the screen upper left corner
Point, point M1 as shown in figure 1, can obtain the coordinate of the M1 point in advance, close further according to the position of the M1 point and current screen touch point
It is to determine the coordinate of the current screen touch point, and then obtain the ordinate of two points.Wherein, the coordinate of the step uses horizontal seat
Mark and ordinate indicate.
B12, ordinate and index region Vertical Square by the current screen touch point on screen vertical direction
To the ordinate of extension plane subtract each other, obtained absolute value is current screen touch point to the extension for indexing region vertical direction
Distance of any point on screen vertical direction in plane.
As shown in figure 3, the distance between arrow be index region vertical direction extensions plane in choose any with work as
The distance of forth screen touch point in vertical direction.
B2, distance of the assigned indexes to page designated position on screen vertical direction in index region is determined.
Wherein, the distance for indexing assigned indexes to page designated position in region can predefine, subsequent true to accelerate
The speed of the distance of assigned indexes in settled forth screen touch point to index region.
B3, according to distance of the current screen touch point to page designated position on screen vertical direction and described
Distance of the assigned indexes to page designated position on screen vertical direction in region is indexed, determines current screen touch point to rope
Draw distance of the assigned indexes on screen vertical direction in region.
When page designated position is to index any point in region, the B3, arrived according to the current screen touch point
Page designated position on screen vertical direction distance and the index region in assigned indexes shielding to page designated position
Distance in curtain vertical direction determines the distance of the first index in current screen touch point to index region in screen vertical direction
On step specifically include:
B31, judge that whether index region middle finger standing wire draws with current screen touch point all in the same of page designated position
Side;
Referring to Fig. 1, it is assumed that the assigned indexes in index region are A, and current screen touch point is C, and page designated position is
B then indexes region middle finger standing wire and draws the two sides for being in page designated position with current screen touch point.
B32, index region in refer to standing wire draw with current screen touch point all in page designated position the same side when,
The index region middle finger standing wire is guided into distance of the page designated position on screen vertical direction and the current screen touches
It touches and a little subtracts each other to distance of the page designated position on screen vertical direction, obtained difference is that index region middle finger standing wire draws
To distance of the current screen touch point on screen vertical direction;
B33, index region in refer to standing wire draw be in the two sides of page designated position with current screen touch point when, by institute
It states index region middle finger standing wire and guides to distance of the page designated position on screen vertical direction and the current screen touch point
It is added to distance of the page designated position on screen vertical direction, it is obtaining and guide to institute for index region middle finger standing wire
State distance of the current screen touch point on screen vertical direction.
Step S23 according to the current screen touch point to the distance drawn of index region middle finger standing wire and is obtained ahead of time
It is each in the index region to index the height for occupying the page, determine the corresponding index in the current screen touch point.
In the step, height and the corresponding page contracting of the height that each index in index region occupies the page is stored in advance
Put ratio, when page zoom-in and zoom-out ratio difference, it is each index occupy the page height it is different, to the same page zoom-in and zoom-out ratio, often
The height that a index occupies the page is all identical, so that the index size of presentation is identical.
Wherein, it according to the current screen touch point to the distance drawn of index region middle finger standing wire and is obtained ahead of time
The step of each index occupies the height of the page in the index region, determines the corresponding index in current screen touch point tool
Body includes:
C1, calculate the current screen touch point to the index region middle finger standing wire draw on screen vertical direction away from
The ratio of the height of the page is occupied from each index in the index region that is obtained ahead of time;
C2, according to the ratio and the assigned indexes
The corresponding index content in array of indexes searches the corresponding index in current screen touch point in the array of indexes
In corresponding index content.
For example, any point in the extension plane that page designated position is index region vertical direction as shown in Figure 1,
Assigned indexes are to index the index of region from top to bottom first, i.e., serial number 1 of the assigned indexes in array of indexes when, it is false
If the vertical range of screen touch point to the point above the page subtracts the index region middle finger standing wire obtained in advance and guides on the page
The vertical range of side's point is 800 pixels, each to index that occupy the height of the page be 200 pixels, then by 800/200=4, then table
Bright current touch point is corresponding to be indexed as the 4+1=5 index in index region.Index is stored in order in array of indexes
The index content that region occurs, the index that array of indexes serial number 5 is searched in the array of indexes are then found by taking Fig. 1 as an example
The 5th index index content be " E ".
Further, in the corresponding index in the judgement current screen touch point, institute is indexed described in index region
Screen position except, show the index, wherein it is described index region described in index where screen position except
The height that the index of display occupies the page is higher than the height that the page is occupied in index region.Due to the index of index area domain views
The limited height of the page is occupied, therefore, is confirmed whether to have selected correct index for the ease of user, when user is in index region
After having selected some to index, the other positions in index region show some index with bigger area.As shown in figure 4,
Assuming that having selected index " D ", then except the screen position where the index " D ", with bigger area display index " D ".
Step S24 according to the corresponding index positioning webpage content in the current screen touch point and is shown.
In the step, after judging the corresponding index in current screen touch point, the corresponding page is searched according to the index
Content, and show the content of pages found.
Wherein, described according to the corresponding index positioning webpage content in the current screen touch point and the step of showing is specific
Include:
D1, according to the corresponding index in the current screen touch point, search for include in web site name the index net
Station name and the corresponding chained address of the web site name searched.
The web site name and the corresponding chained address of the web site name that D2, display search.
Wherein, content of pages is usually web site name and the chained address of the website, and user passes through sliding index selection
A to index corresponding content of pages, user issues content of pages access instruction by clicking the content of pages, and system is according to reception
Content of pages access instruction search from the chained address of content of pages the information of chained address storage, and show and find
Information.For example, when clicking the chained address that content of pages is " Chinese education is online ", it is accessible to be somebody's turn to do " Chinese education is online "
Chained address particular content, such as the education landscape information in each area.
In the present embodiment, when listening to index region in the presence of sliding touch-screen event, current screen touch point is calculated to page
The distance of face designated position, and by judging that indexing region middle finger standing wire draws with whether current screen touch point refers to all in the page
It positions the same side set and determines the mode for calculating the index that current screen touch point touches, finally positioned according to determining index
Content of pages is simultaneously shown.Since when index region listens to sliding touch-screen event, content of pages also carries out corresponding roll and shows
Show, therefore when switching two adjacent indexes, without clicking specific index, only need to slide touch screen in index region, when
When sliding into target index, stopping sliding capable of checking that the target indexes corresponding content of pages, so as to accurately hit mesh
Mark index improves the accuracy rate that index is clicked.
Embodiment two:
The localization method of the content of pages provided in order to illustrate the embodiments of the present invention more clearly, below with a concrete application
Example is illustrated, and in the present embodiment, page designated position is any point in the extension plane for index region vertical direction, such as
The M1 point of Fig. 5, index region middle finger standing wire are cited as first index in index region:
Assuming that the content of pages of display is as shown in Figure 5 before index region listens to sliding touch-screen event.When listening to
Slide touch-screen event when, determine current screen touch point to M1 distance, by current screen touch point to M1 in screen vertical side
Upward distance with first in the index region obtained in advance index M1 on screen vertical direction at a distance from subtract each other, obtain
One difference occupies the height of the page according to index each in the difference, the index region being obtained ahead of time, works as described in judgement
The corresponding index in forth screen touch point, it is assumed that determine that the corresponding index in current screen touch point is " M ", then position index " M "
Content of pages simultaneously shows that the content of pages of positioning is as shown in Figure 6.After index region, which listens to, terminates touch-screen event, determine
Which index touch point touches at the end of touch screen, and content of pages is presented according to judgement result.Assuming that being touched at the end of touch screen
The index that touch arrives is Q, then the content of pages presented is as shown in Figure 7.Further, index pages record user's touch screen terminates
When the index that touches touched at the end of direct presentation user's last time touch screen and when user is again turned on the index pages
The time that user searches website again has been saved in the corresponding website of the index arrived.
Embodiment three:
Fig. 8 shows a kind of structure chart of the positioning device of content of pages of third embodiment of the invention offer, in order to just
In explanation, only parts related to embodiments of the present invention are shown.
The positioning device of the content of pages include: monitoring unit 81, touch point and assigned indexes metrics calculation unit 82,
Index judging unit 83, content of pages display unit 84.
Monitoring unit 81, for monitoring the sliding touch-screen event in index region, the index region is for showing at least one
A index.
Wherein, index can be the first letter of pinyin in first Chinese of each content of pages, or be each
The first character of a content of pages is number or symbol.
As another embodiment of the present invention, the positioning device of the content of pages includes:
Web site name search unit, the web site name for website locating for searched page content;
Index content generation unit, for generating index content according to the web site name;
Index content deletes unit, is then with the presence or absence of identical index content in the index content for judging to generate
Only retain an index content in same index content, otherwise retains all index contents of generation;
Index content storage unit is stored in array of indexes for being ranked up to the index content of reservation, and in order.
The metrics calculation unit 82 of touch point and assigned indexes, for determining current when listening to sliding touch-screen event
The distance of assigned indexes in screen touch point to index region.
Wherein, the metrics calculation unit 82 of the touch point and assigned indexes includes: that touch point and designated position distance are true
Cover half block, the first index and designated position are apart from determining module, touch point with the first index apart from determining module.
Wherein: touch point and designated position are apart from determining module, for determining current screen touch point to page specific bit
Set the distance on screen vertical direction.
When page designated position is any point in the extension plane for indexing region vertical direction, the touch point and finger
Determining positional distance determining module includes:
Ordinate determining module for obtaining ordinate of the current screen touch point on screen vertical direction, and obtains
Take the ordinate of any point in the extension plane of the index region vertical direction.
Touch point is used for the current screen touch point to designated position distance calculation module in screen vertical direction
Ordinate and the ordinate of extensions plane of the index region vertical direction subtract each other, obtained absolute value is that current screen touches
Touch the distance a little to any point in the extension plane of index region vertical direction on screen vertical direction.
Wherein: assigned indexes and designated position are apart from determining module, for assigned indexes in determining index region to the page
Distance of the designated position on screen vertical direction.The distance of assigned indexes to page designated position in the index region can be pre-
First determine.
Touch point and assigned indexes are apart from determining module, for according to the current screen touch point to page designated position
On screen vertical direction distance and the index region in assigned indexes to page designated position on screen vertical direction
Distance, determine current screen touch point to index region in distance of the assigned indexes on screen vertical direction.
When page designated position is to index any point in region, the touch point and assigned indexes are apart from determining module
Include:
Judgment module, for judging that indexing region middle finger standing wire draws with whether current screen touch point is specified all in the page
The same side of position;
Apart from determining module, for referring to that standing wire draws with current screen touch point all in page specific bit in index region
When the same side set, the index region middle finger standing wire is guided into distance and institute of the page designated position on screen vertical direction
It states current screen touch point to subtract each other to distance of the page designated position on screen vertical direction, obtained difference is the index area
Domain middle finger standing wire guides to distance of the current screen touch point on screen vertical direction;Index region in refer to standing wire draw with
When current screen touch point is in the two sides of page designated position, index region middle finger standing wire is guided into page designated position
On screen vertical direction distance and the current screen touch point to page designated position on screen vertical direction away from
From addition, obtained sum guides to the current screen touch point on screen vertical direction for index region middle finger standing wire
Distance.
Index judging unit 83, for according to the current screen touch point to the distance drawn of index region middle finger standing wire with
It is each in the index region being obtained ahead of time to index the height for occupying the page, determine the corresponding rope in the current screen touch point
Draw.
Wherein, each index size indexed in region is identical, and the index of same size presents more attractive on the screen.
Wherein, the index judging unit 83 includes:
Index number computing module draws for calculating the current screen touch point to index region middle finger standing wire
Distance on screen vertical direction occupies the ratio of the height of the page divided by index each in the index region being obtained ahead of time.
Index content searching module, for according to the ratio with the assigned indexes the corresponding index in array of indexes
Content searches the corresponding index corresponding index content in the array of indexes in current screen touch point.
Further, the positioning device of the content of pages includes: index display module.The index display module is for sentencing
When the corresponding index in the fixed current screen touch point, except the screen position where being indexed described in index region, display
The index.
Due to showing the corresponding index in current screen touch point with bigger area, user is made more clearly to work as front slide
To the position of which index.
Content of pages display unit 84 is used for according to the corresponding index positioning webpage content in the current screen touch point simultaneously
Display.
Wherein, content of pages display unit 84 includes:
Content of pages search module, for searching in web site name according to the corresponding index in the current screen touch point
It include the web site name of the index and the corresponding chained address of the web site name searched.
Content of pages display module, for showing the web site name searched and the corresponding chain ground connection of the web site name
Location.
In the embodiment of the present invention, since when index region listens to sliding touch-screen event, content of pages is also corresponded to
Scrolling display without clicking specific index, need to only be slided in index region therefore when switching two adjacent indexes
Touch screen, when sliding into target index, stopping sliding capable of checking that the target indexes corresponding content of pages, so as to accurate
Index is hit target, the accuracy rate that index is clicked is improved.
Example IV:
Fig. 9 shows the part of intelligent terminal relevant to the positioning device of content of pages provided in an embodiment of the present invention
The block diagram of structure, the intelligent terminal include the terminal that mobile phone, tablet computer PAD etc. have browsing webpage function.With reference to Fig. 9, intelligence
Energy terminal includes: memory 910, input unit 920, display unit 930, network connecting module 940, processor 950, Yi Ji electricity
The components such as source 960.It will be understood by those skilled in the art that intelligent terminal structure shown in Fig. 9 is not constituted to intelligent terminal
Restriction, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 9 to intelligent terminal:
Memory 910 can be used for storing software program and module, and processor 950 is stored in memory 910 by operation
Software program and module, thereby executing the various function application and data processing of intelligent terminal.Memory 910 can be main
Including storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one function
With program (such as sound-playing function, image player function etc.) etc.;Storage data area can store the use according to intelligent terminal
Data (such as audio data, phone directory etc.) created etc..In addition, memory 910 may include high random access storage
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid
State memory device.
Input unit 920 can be used for receiving the number or character information of input, and generates and set with the user of intelligent terminal
It sets and the related key signals of function control inputs.Specifically, input unit 920 may include touch panel 921 and other are defeated
Enter equipment 922.Touch panel 921, also referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the operation of any suitable object or attachment such as finger, stylus on touch panel 921 or near touch panel 921),
And corresponding attachment device is driven according to preset formula.Optionally, touch panel 921 may include touch detecting apparatus and
Two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give processor 950, and order that processor 950 is sent can be received and executed.Furthermore, it is possible to using
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 921.It is defeated in addition to touch panel 921
Entering unit 920 can also include other input equipments 922.Specifically, other input equipments 922 can include but is not limited to physics
One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 930 can be used for showing information input by user or the information and intelligent terminal that are supplied to user
Various menus.Display unit 930 may include display panel 931, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 931.Further, touch panel 921 can cover display panel 931, when touch panel 921 detects
After touch operation on or near it, processor 950 is sent to determine the type of touch event, is followed by subsequent processing 950 basis of device
The type of touch event provides corresponding visual output on display panel 931.Although in Fig. 9, touch panel 921 and display
Panel 931 is the input and input function for realizing intelligent terminal as two independent components, but in certain embodiments,
Can be integrated by touch panel 921 and display panel 931 and that realizes intelligent terminal output and input function.
Intelligent terminal can help user to send and receive e-mail, browse webpage and access stream by network connecting module 940
Formula media etc., it provides wireless broadband internet access for user.Although Fig. 9 shows network connecting module 940,
It is understood that itself and be not belonging to must be configured into for intelligent terminal, can according to need completely in the essence for not changing invention
In the range of and omit.
Processor 950 is the control centre of intelligent terminal, utilizes each of various interfaces and the entire intelligent terminal of connection
A part by running or execute the software program and/or module that are stored in memory 910, and calls and is stored in storage
Data in device 910 execute the various functions and processing data of intelligent terminal, to carry out integral monitoring to intelligent terminal.It can
Choosing, processor 950 may include one or more processing units;Preferably, processor 950 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 950.
Intelligent terminal further includes the power supply 960 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 950 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
Although being not shown, intelligent terminal can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 950 included by the positioning device of the content of pages is also with the following functions:
Execute the localization method of content of pages, comprising:
The sliding touch-screen event in index region is monitored, the index region is for showing at least one index;
When listening to sliding touch-screen event, the distance of assigned indexes in current screen touch point to index region is determined;
The distance drawn according to the current screen touch point to index region middle finger standing wire and the index being obtained ahead of time
It is each in region to index the height for occupying the page, determine the corresponding index in the current screen touch point;
According to the corresponding index positioning webpage content in the current screen touch point and show.
It will appreciated by the skilled person that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a computer-readable storage medium
In, the storage medium, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of localization method of content of pages, which is characterized in that the method includes the following steps:
The touch-screen event in index region is monitored by thread, including is monitored and started touch-screen event, sliding touch-screen event and end
Touch-screen event;
The sliding touch-screen event in index region is monitored, the index region is for showing at least one index;
When listening to sliding touch-screen event, the distance of assigned indexes in current screen touch point to index region is determined;
The distance drawn according to the current screen touch point to index region middle finger standing wire and the index region being obtained ahead of time
In each index occupy the height of the page, determine the corresponding index in the current screen touch point;
According to the corresponding index positioning webpage content in the current screen touch point and show.
2. the method as described in claim 1, which is characterized in that specified in the determining current screen touch point to index region
Index apart from the step of specifically include:
Determine distance of the current screen touch point to page designated position on screen vertical direction;
Determine distance of the assigned indexes to page designated position on screen vertical direction in index region;
According to the distance on screen vertical direction of the current screen touch point to page designated position and the index region
Distance of the interior assigned indexes to page designated position on screen vertical direction determines in current screen touch point to index region
Distance of the assigned indexes on screen vertical direction.
3. the method as described in claim 1, which is characterized in that in the step for monitoring the sliding touch-screen event in index region
Before rapid, include the following steps:
The web site name of website locating for searched page content;
Index content is generated according to the web site name;
Judge to whether there is identical index content in the index content generated, is one only retained in same index content
Otherwise index content retains all index contents of generation;
The index content of reservation is ranked up, and is stored in array of indexes in order.
4. method as claimed in claim 3, which is characterized in that it is described according to the current screen touch point to index region in
Assigned indexes are each in the distance on screen vertical direction and the index region being obtained ahead of time to index the height for occupying the page
Degree, the step of determining the corresponding index in the current screen touch point, specifically include:
It calculates the current screen touch point and draws distance on screen vertical direction and pre- to the index region middle finger standing wire
It is each in the index region first obtained to index the ratio for occupying the height of the page;
According to the ratio with the assigned indexes the corresponding index content in array of indexes, search current screen touch point pair
The index answered corresponding index content in the array of indexes.
5. the method as described in claim 1, which is characterized in that described fixed according to the corresponding index in the current screen touch point
Position content of pages and the step of showing specifically includes:
According to the corresponding index in the current screen touch point, search for include in web site name the index web site name and
The corresponding chained address of the web site name searched;
Show the web site name searched and the corresponding chained address of the web site name.
6. a kind of positioning device of content of pages, which is characterized in that described device includes:
Monitoring unit, for monitoring the touch-screen event in index region, including monitoring beginning touch-screen event, sliding touch screen by thread
Event and end touch-screen event, monitor the sliding touch-screen event in index region, the index region is for showing at least one
Index;
The metrics calculation unit of touch point and assigned indexes, for determining that current screen is touched when listening to sliding touch-screen event
It touches a little to the distance of assigned indexes in index region;
Index judging unit, for according to the current screen touch point to the distance drawn of index region middle finger standing wire with obtain in advance
It is each in the index region obtained to index the height for occupying the page, determine the corresponding index in the current screen touch point;
Content of pages display unit, for according to the corresponding index positioning webpage content in the current screen touch point and showing.
7. device as claimed in claim 6, which is characterized in that the metrics calculation unit packet of the touch point and assigned indexes
It includes:
Touch point and designated position are apart from determining module, for determining that current screen touch point is hung down to page designated position in screen
The upward distance of histogram;
Assigned indexes and designated position are apart from determining module, and for determining, assigned indexes exist to page designated position in index region
Distance on screen vertical direction;
Touch point and assigned indexes are apart from determining module, for being shielded according to the current screen touch point to page designated position
Curtain vertical direction on distance and it is described index region in assigned indexes to page designated position on screen vertical direction away from
From, determine current screen touch point to index region in distance of the assigned indexes on screen vertical direction.
8. device as claimed in claim 6, which is characterized in that described device includes:
Web site name search unit, the web site name for website locating for searched page content;
Index content generation unit, for generating index content according to the web site name;
Index content deletes unit, is only to protect with the presence or absence of identical index content in the index content for judging to generate
An index content in same index content is stayed, all index contents of generation are otherwise retained;
Index content storage unit is stored in array of indexes for being ranked up to the index content of reservation, and in order.
9. device as claimed in claim 8, which is characterized in that the index judging unit includes:
Index number computing module draws to index region middle finger standing wire in screen for calculating the current screen touch point
Distance in vertical direction occupies the ratio of the height of the page with each index in the index region being obtained ahead of time;
Index content searching module, for according to the ratio and the assigned indexes in array of indexes in corresponding index
Hold, searches the corresponding index corresponding index content in the array of indexes in current screen touch point.
10. device as claimed in claim 6, which is characterized in that the content of pages display unit includes:
Content of pages search module includes for searching in web site name according to the corresponding index in the current screen touch point
The corresponding chained address of web site name for having the web site name of the index and searching;
Content of pages display module, for showing the web site name searched and the corresponding chained address of the web site name.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410190743.XA CN105094653B (en) | 2014-05-07 | 2014-05-07 | A kind of localization method and device of content of pages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410190743.XA CN105094653B (en) | 2014-05-07 | 2014-05-07 | A kind of localization method and device of content of pages |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105094653A CN105094653A (en) | 2015-11-25 |
CN105094653B true CN105094653B (en) | 2019-04-02 |
Family
ID=54575228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410190743.XA Active CN105094653B (en) | 2014-05-07 | 2014-05-07 | A kind of localization method and device of content of pages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105094653B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708405A (en) * | 2016-12-07 | 2017-05-24 | 广东小天才科技有限公司 | Graph track and position combination-based content locating method, device and system |
CN106850951B (en) * | 2016-12-19 | 2020-04-28 | 北京五八信息技术有限公司 | User interest module display method and device |
CN109388737B (en) * | 2017-08-03 | 2023-03-31 | 腾讯科技(北京)有限公司 | Method and device for sending exposure data of content item and storage medium |
CN110968813A (en) * | 2019-11-29 | 2020-04-07 | 中国银行股份有限公司 | Index page display method and device |
CN111400628B (en) * | 2020-03-12 | 2023-04-07 | 腾讯科技(深圳)有限公司 | Information propagation method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101388041A (en) * | 2008-10-21 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Browsers page navigation method and system for handhold terminal |
CN101788986A (en) * | 2009-01-23 | 2010-07-28 | 沈阳晨讯希姆通科技有限公司 | Method and corresponding electronic equipment for intelligently sequencing and positioning file lists |
CN101894168A (en) * | 2010-06-30 | 2010-11-24 | 优视科技有限公司 | Method and system for layout display of web page of mobile terminal |
CN102508605A (en) * | 2011-11-10 | 2012-06-20 | 深圳市凯立德科技股份有限公司 | Multimode map movement control method and location-based service terminal |
CN102662511A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for carrying out control operation through touch screen |
CN103150119A (en) * | 2013-03-28 | 2013-06-12 | 珠海金山办公软件有限公司 | Touch screen equipment and method and system for controlling location of spreadsheet |
CN103309599A (en) * | 2012-03-15 | 2013-09-18 | 华为终端有限公司 | Touch screen sliding finding method and touch screen equipment |
CN103530052A (en) * | 2013-09-27 | 2014-01-22 | 华为技术有限公司 | Display method of interface content and user equipment |
CN103677592A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for sliding display of webpage object in webpage |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9645733B2 (en) * | 2011-12-06 | 2017-05-09 | Google Inc. | Mechanism for switching between document viewing windows |
-
2014
- 2014-05-07 CN CN201410190743.XA patent/CN105094653B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101388041A (en) * | 2008-10-21 | 2009-03-18 | 深圳市同洲电子股份有限公司 | Browsers page navigation method and system for handhold terminal |
CN101788986A (en) * | 2009-01-23 | 2010-07-28 | 沈阳晨讯希姆通科技有限公司 | Method and corresponding electronic equipment for intelligently sequencing and positioning file lists |
CN101894168A (en) * | 2010-06-30 | 2010-11-24 | 优视科技有限公司 | Method and system for layout display of web page of mobile terminal |
CN102508605A (en) * | 2011-11-10 | 2012-06-20 | 深圳市凯立德科技股份有限公司 | Multimode map movement control method and location-based service terminal |
CN103309599A (en) * | 2012-03-15 | 2013-09-18 | 华为终端有限公司 | Touch screen sliding finding method and touch screen equipment |
CN102662511A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for carrying out control operation through touch screen |
CN103677592A (en) * | 2012-09-03 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for sliding display of webpage object in webpage |
CN103150119A (en) * | 2013-03-28 | 2013-06-12 | 珠海金山办公软件有限公司 | Touch screen equipment and method and system for controlling location of spreadsheet |
CN103530052A (en) * | 2013-09-27 | 2014-01-22 | 华为技术有限公司 | Display method of interface content and user equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105094653A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094653B (en) | A kind of localization method and device of content of pages | |
US9588621B2 (en) | Touch screen controller and method for controlling thereof | |
CN102662462B (en) | Electronic installation, gesture identification method and gesture application process | |
CN107077295A (en) | A kind of method, device, electronic equipment, display interface and the storage medium of quick split screen | |
CN103064627B (en) | A kind of application management method and device | |
US20180181288A1 (en) | Method for displaying information, and terminal equipment | |
CN104541239A (en) | Text select and enter | |
CN110456953A (en) | File interface switching method and terminal device | |
CN109213396A (en) | A kind of object control method and terminal | |
CN103197885A (en) | Method for controlling mobile terminal and mobile terminal thereof | |
CN102819397A (en) | Quick browse and search method of photo album of handheld equipment | |
CN106527888A (en) | Screen-sliding page searching method and device | |
CN104991699B (en) | A kind of method and apparatus of video display control | |
CN103902174B (en) | A kind of display methods and equipment | |
CN104932807A (en) | Cursor positioning method and touch screen device | |
CN107832330A (en) | A kind of searching method and terminal device | |
CN107797722A (en) | Touch screen icon selection method and device | |
CN106775182A (en) | A kind for the treatment of method and apparatus of suspension control | |
CN103294175B (en) | A kind of electronic equipment and the method for automatic switchover input pattern thereof | |
CN106817484A (en) | The acquisition methods and mobile terminal of a kind of session information | |
CN107861684A (en) | Write recognition methods, device, storage medium and computer equipment | |
CN103279286A (en) | Electronic device and method for adjusting display scale of pictures | |
CN102750035B (en) | The determination method and apparatus of display position of cursor | |
CN104598542B (en) | The display methods and device of multimedia messages | |
CN103279276A (en) | Method and device for locating information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |