CN104239325A - Block positioning method and block positioning device - Google Patents

Block positioning method and block positioning device Download PDF

Info

Publication number
CN104239325A
CN104239325A CN201310239629.7A CN201310239629A CN104239325A CN 104239325 A CN104239325 A CN 104239325A CN 201310239629 A CN201310239629 A CN 201310239629A CN 104239325 A CN104239325 A CN 104239325A
Authority
CN
China
Prior art keywords
block
current
webpage
user
identified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310239629.7A
Other languages
Chinese (zh)
Other versions
CN104239325B (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 Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310239629.7A priority Critical patent/CN104239325B/en
Publication of CN104239325A publication Critical patent/CN104239325A/en
Priority to HK15103386.9A priority patent/HK1202941A1/en
Application granted granted Critical
Publication of CN104239325B publication Critical patent/CN104239325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides a block positioning method and a block positioning device. The block positioning method includes: responding to block positioning instructions including block relation and triggered by a user and acquiring a current block of a current browsing webpage of the user; according to relation, denoted by the block relation, of the current block and a to-be-positioned block, acquiring block identification of the to-be-positioned block from a preset block library; according to preset corresponding relation of the block identification and the block, positioning the to-be-positioned block on the current browsing webpage of the user. By the block positioning method or device, other blocks can be rapidly positioned according to the current block browsed by the user. Further, the other blocks can be rapidly positioned according to the current block browsed by the user, user experience can be better improved, and the user can be assisted in searching one certain or several certain blocks on the webpage conveniently and rapidly.

Description

Block localization method and device
Technical field
The application relates to internet arena, particularly for block localization method and the device of the page.
Background technology
Internet (Internet) is the global network using the computing machine that communicates mutually of common statements to be formed by connecting by some, i.e. the International Computer Network that forms according to certain communications protocol of wide area network, LAN (Local Area Network) and unit.During the user to view Internet page, a page may comprise the information of many similar content, such as: the product details etc. that the page is shown, and when the information of every bar content is more, show that wall scroll content just may take more than half screen of the display screen that user uses or more.And on the page, the number of every bar content or quantity of information size are also unfixed.Generally, show that a page display area of a content is called a block.
Prior art is when realizing the location of the block in the page, generally just to some the HTML (HTML (Hypertext Markup Language) in this webpage before auto-building html files, Hypertext Markup Language) label (each block corresponding in webpage) sets mark, such as title (name) or sequence number (id), so when locating each block in this webpage, the mark just can directly selected according to user uses anchor point to navigate to each corresponding block.Wherein, anchor point refers to by using name or id attribute, creates the bookmark of a webpage inside, is namely the link pointing to each block that each bar content is corresponding in webpage.
But prior art is when realizing, because the mark that its each block is corresponding all just set before auto-building html files, so cannot modify after auto-building html files, so the location of block can only be carried out according to the mark set, cannot position according to the block at the current content place of browsing of user.
In a word, the technical matters needing those skilled in the art urgently to solve at present is exactly: a kind of block localization method of the proposition how can innovate, to solve the problem that cannot position according to the block at the current web page contents place of browsing of user in prior art.
Invention block
Technical problems to be solved in this application are to provide a kind of block localization method, in order to solve the problem that cannot position according to the current Web page area browsed of user in prior art.
Present invention also provides a kind of block locating device, in order to ensure said method implementation and application in practice.
In order to solve the problem, this application discloses a kind of block localization method, comprising:
In response to the block positioning instruction of the block relation that comprises that user triggers, obtain the current current block browsing webpage of user;
According to the relation of the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned;
According to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
Optionally, described default pool of blocks is set up in the following manner:
Determine the current block sets to be positioned browsing webpage of described user;
According to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, it is each block setting area to be positioned block identification;
Be saved to accordingly in pool of blocks with its side-play amount offsetTop by the block-identified of each block to be positioned described, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
Optionally, the current current block browsing webpage of described acquisition user, comprising:
Obtain user current browse the current block of webpage return pixel value scrollTop, described in return pixel value and represent and be hidden in from the described current height value browsing the pixel count webpage of coboundary above scroll bar of webpage;
Determine to return corresponding block-identified of side-play amount that pixel value mates most with described;
The block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
Optionally, the corresponding relation of the block-identified and block that described foundation is preset, locate described block to be positioned current the browsing on webpage of user, comprising:
The described current anchor point value browsing webpage is revised as the block-identified of described block to be positioned;
Trigger browser and locate described block to be positioned according to amended anchor point value current the browsing on webpage of user.
Disclosed herein as well is another block localization method, comprising:
Receive the block positioning instruction comprising block to be positioned that user triggers;
The block-identified of described block to be positioned is obtained from the pool of blocks preset;
According to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
This application discloses a kind of block locating device, comprising:
Obtain block module, for the block positioning instruction of the block relation that comprises triggered in response to user, the current current block browsing webpage of acquisition user;
Obtain identification module, for the relation according to the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned;
Locating module, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
Optionally, described default pool of blocks is by setting up with lower module:
Determination module, for determining the current block sets to be positioned browsing webpage of described user;
Module is set, for according to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, be each block setting area to be positioned block identification;
Preserve module, for the block-identified of each block to be positioned described and its side-play amount being saved to accordingly in pool of blocks, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
Optionally, described acquisition block module comprises:
Obtain submodule, for obtain user current browse the current block of webpage return pixel value, described in return pixel value and represent and be hidden in the described current height value browsing the webpage of the top of the scroll bar of webpage;
Determining labeling submodule, returning corresponding block-identified of side-play amount that pixel value mates most for determining with described;
Determine block submodule, for the block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
Optionally, described locating module comprises:
Amendment submodule, is revised as block to be positioned for the described current anchor point value browsing webpage block-identified;
Triggers module, locates described to be positioned block according to amended anchor point value current the browsing on webpage of user for triggering browser.
Disclosed herein as well is another block locating device, comprising:
Receiver module, for receiving the block positioning instruction comprising block to be positioned that user triggers;
Obtain identification module, for obtaining the block-identified of described block to be positioned from the pool of blocks preset;
Locating module, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
Compared with prior art, the application comprises following advantage:
In this application, because first determine the current current block browsing webpage of user, therefore can according to the relation of current block and block to be positioned, determine block to be positioned, and then can according to the corresponding relation of the block-identified and block preset, directly locate described block to be positioned, so achieve the object that the current block browsed according to user carries out other block quick position current the browsing on webpage of user.Further, the current block browsed according to user carries out the quick position of other blocks, also better can promote Consumer's Experience, conveniently helps user to realize on webpage, search some or certain several block.
Certainly, the arbitrary product implementing the application might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of block localization method embodiment 1 of the application;
Fig. 2 is the process flow diagram of step 101 in the application's embodiment of the method 1;
Fig. 3 is the pool of blocks Establishing process figure preset in the application's embodiment of the method 1;
Fig. 4 is the interface schematic diagram of side-play amount in the application's embodiment of the method 1;
Fig. 5 is the process flow diagram of step 103 in the application's embodiment of the method 1;
Fig. 6 is the process flow diagram of a kind of block localization method embodiment 2 of the application;
Fig. 7 is the structured flowchart of a kind of block locating device embodiment 1 of the application;
Fig. 8 is the structured flowchart obtaining block module 701 in the application's device embodiment 1;
Fig. 9 is the structured flowchart setting up pool of blocks in the application's device embodiment 1;
Figure 10 is the structured flowchart of locating module 703 in the application's device embodiment 1;
Figure 11 is the structured flowchart of a kind of block locating device embodiment 2 of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multi-processor device, the distributed computing environment comprising above any device or equipment etc.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as ROM (read-only memory) (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computing machine comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic RAM (DRAM), the random access memory (RAM) of other types, ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc ROM (read-only memory) (CD-ROM), digital versatile disc (DVD) or other optical memory, magnetic magnetic tape cassette, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise of short duration computer readable media (transitory media), as data-signal and the carrier wave of modulation.
One of main thought of the application can comprise, by first determining the current current block browsing webpage of user, just can according to the relation of current block and block to be positioned, the block-identified of block to be positioned is got from the pool of blocks preset, and then carry out the location of block to be positioned, so just can realize the object positioned according to the block at place in the current webpage browsed of user.
With reference to figure 1, show the process flow diagram of a kind of block localization method of the application embodiment 1, can comprise the following steps:
Step 101: in response to the block positioning instruction of the block relation that comprises that user triggers, obtain the current current block browsing webpage of user.
In the present embodiment, the webpage that user is reading is currently browse webpage, and arbitrary a kind of shortcuts such as a link or button can be set for user on webpage, can be supplied to user for triggering the interface of block positioning instruction, user triggers block positioning instruction by the mode such as clickthrough or button.In addition, this block positioning instruction comprises block relation, is namely the current position relationship browsed between the current block of webpage and block to be positioned of user.Such as, current block be designated block 5, so block relation then can the previous block of current block, and namely block to be positioned is block 4.Certainly, block relation only needs to indicate the position relationship between current block and block to be positioned, and various ways can be adopted in practice to realize, and also can carry out adaptive adjustment with reference to the naming method etc. of each block to the realization of block relation.
And in actual applications, the current realization browsing the current block of webpage of concrete consumer positioning, can shown in reference diagram 2, and Fig. 2 obtains the current process flow diagram browsing the current block of webpage of user in step 101, specifically can comprise:
Step 201: obtain user current browse the current block of webpage return pixel value scrollTop, described in return the height value that pixel value represents the webpage be hidden in above the described current scroll bar browsing webpage.
First, what obtain that user browsing the current block of webpage returns pixel value (scrollTop), and this scrollTop represents the height value of the webpage be hidden in above the current scroll bar browsing webpage.When the page has scroll bar time, namely this scrollTop is the numerical value of the position of rolling needed for from the coboundary of full page to scroll bar, is namely when webpage utilizes scroll bar to be rolled to below time, is hidden in the height value of the webpage above scroll bar.This scrollTop belongs to the attribute data of the page, can directly be obtained by the association attributes parameter of this page in browser.Such as, when an initial opening page time, scroll bar does not also start to roll, this value is exactly 0, if and after opening the page, by the centre of the rolling current browse webpage of scroll bar, so this value is exactly from the page topmost to the pixel value of centre, is namely the height value of the webpage be hidden in above scroll bar.
Step 202: determine to return corresponding block-identified of side-play amount that pixel value mates most with described.
Wherein, side-play amount (offsetTop) represents, the vertical range of the coboundary of the sub-block comprised to this current block from the coboundary of current block, is also in units of pixel.
In actual applications, the block realizing positioning function is needed for all in a page, in advance the corresponding relation of the block-identified of these blocks with the offsetTop of this block can be recorded, after the scrollTop obtaining current page, compare with the offsetTop of some blocks in this current page of record again, determine and the offsetTop that scrollTop mates most, namely after being that offsetTop consistent with the numerical value of scrollTop or immediate, the block recorded in foundation current page and the corresponding relation of offsetTop, determine one corresponding with offsetTop block-identified.
It should be noted that, in the embodiment of the present application, block is relevant to html tag with sub-block, is namely a subtab just corresponding sub-block being nested in certain html tag (corresponding block) the inside.Such as, suppose the corresponding block of one section of news on webpage, the title that what a sub-block of this block was corresponding can be in news and first paragraph word, certainly, also can title only in corresponding news, block and the corresponding relation of sub-block mainly see the html tag of this webpage and the corresponding situation of subtab.Generally, can by the title of news and each paragraph corresponding html tag of specifying respectively.
Step 203: the block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
Again the block of the block-identified correspondence determined in step 202 is defined as the current current block browsing webpage of user.
Then return Fig. 1, enter step 102: according to the relation of the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned.
Determine user after the current current block browsed in webpage, from block relation, get the relation of current block and block to be positioned, then from the pool of blocks preset, determine the block-identified of described block to be positioned.
Concrete, shown in figure 3, be the Establishing process figure of default pool of blocks, specifically can comprise:
Step 301: determine the current block sets to be positioned browsing webpage of described user.
First, browse webpage for current, determine wherein all blocks needing to realize positioning function, and it can be used as the current block sets to be positioned browsing webpage.
Step 302: according to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage is each block setting area to be positioned block identification.
Because for a webpage, although it is arranged side by side that wherein each block pass is fastened, but because after web displaying order has and first has, such as, for section news of in webpage, its title must be presented at top, text is presented at below, so, according to each block to be positioned in block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, it can be each block setting area to be positioned block identification.Such as, the block showing headline in certain webpage is set to block 1, the first paragraph of this news then can be set to block 2 accordingly, the like.
Step 303: be saved to accordingly in pool of blocks with its side-play amount offsetTop by the block-identified of each block to be positioned described, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
Again the block-identified of each block to be positioned set is saved in pool of blocks accordingly with its side-play amount offsetTop, this offsetTop represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block, and offsetTop can directly directly acquire from the property parameters of the page or browser here.Such as, for one section of web page news, suppose news corresponding be a block, and the corresponding sub-block of headline, so side-play amount just represents the height value of the coboundary of this news to the coboundary of headline.Shown in figure 4,40 regions supposing in Fig. 4 are block size corresponding to news, and 41 is then the region of sub-block corresponding to the title in this news, and namely h so is wherein aforesaid side-play amount.Certainly, Fig. 4 is only a simply signal of side-play amount, should not be understood as the restriction to the embodiment of the present invention.
Then return Fig. 1, enter step 103: according to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
When determine block to be positioned block-identified after, just can according to the corresponding relation of the block-identified and block preset, to browse on webpage directly this block to be positioned of location user is current.
Concrete, shown in figure 5, be the process flow diagram of step 103, specifically can comprise:
Step 501: the described current anchor point value browsing webpage is revised as the block-identified of block to be positioned.
The block to be positioned determined according to step 102 again block-identified, is revised as the block-identified of block to be positioned by the current anchor point value browsing webpage.
Step 502: trigger browser and locate described block to be positioned according to amended anchor point value current the browsing on webpage of user.
And because browser can navigate to certain block automatically according to the anchor point value of amendment, so directly trigger the current browser browsing webpage place to locate block to be positioned according to amended anchor point value current the browsing on webpage of user.
Adopt the embodiment of the present invention, because first determine the current current block browsing webpage of user, determine the relation of current block and block to be positioned again, from the pool of blocks preset, get the block-identified of block to be positioned and position, so achieve the object positioned according to the block at place in the current webpage browsed of user.Further, the current block browsed according to user carries out the location of other blocks, also better can promote Consumer's Experience, conveniently helps user to realize the block location on webpage.
With reference to figure 6, show the process flow diagram of a kind of block localization method of the application embodiment 2, can comprise the following steps:
Step 601: what receive user's triggering comprises block-identified block positioning instruction to be positioned.
In the present embodiment, the webpage that user is reading is currently browse webpage, and also arbitrary a kind of shortcuts such as a link or button can be set for user on webpage, can be supplied to user for triggering the interface of block positioning instruction, user triggers block positioning instruction by the mode such as clickthrough or button.Wherein, directly contain to be positioned block-identified in the block positioning instruction that user triggers, such as, user's direct trigger region block identification is the location of the block to be positioned of " 5 ".
Step 602: obtain the block-identified of described block to be positioned from the pool of blocks preset.
So this step gets the block-identified of this location block again from the pool of blocks preset, such as 5 in pool of blocks corresponding block-identified be " block E ".Concrete, the process of establishing of pool of blocks, can the flow process shown in reference diagram 3.
Step 603: according to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
The corresponding relation of the block-identified and block preset again, locates described block to be positioned current the browsing on webpage of user.The realization of this step can associated description in reference example 1, does not repeat them here.
In the present embodiment, because directly got the information of block to be positioned from block positioning instruction, so can according to the corresponding relation of the block-identified and block preset, directly locate described block to be positioned current the browsing on webpage of user, so achieve directly according to block-identified object of carrying out block quick position.Further, also better can promote Consumer's Experience, conveniently help user to realize the block location on webpage.
For aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
Corresponding with the method that a kind of block of above-mentioned the application localization method embodiment 1 provides, see Fig. 7, present invention also provides a kind of block locating device embodiment 1, in the present embodiment, this device can comprise:
Obtain block module 701, for the block positioning instruction of the block relation that comprises triggered in response to user, the current current block browsing webpage of acquisition user.
Shown in figure 8, Fig. 8 is the structured flowchart of described acquisition block module 701, specifically can comprise:
Obtain submodule 801, for obtain user current browse the current block of webpage return pixel value, described in return the height value that pixel value represents the webpage be hidden in above the described current scroll bar browsing webpage.
Determining labeling submodule 802, returning corresponding block-identified of side-play amount that pixel value mates most for determining with described.
Determine block submodule 803, for the block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
Obtain identification module 702, for the relation according to the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned.
Shown in figure 9, described default pool of blocks can be passed through to set up with lower module:
Determination module 901, for determining the current block sets to be positioned browsing webpage of described user;
Module 902 is set, for according to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, be each block setting area to be positioned block identification;
Preserve module 903, for the block-identified of each block to be positioned described and its side-play amount being saved to accordingly in pool of blocks, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
Locating module 703, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
With reference to shown in Figure 10, described locating module 703 specifically can comprise:
Amendment submodule 1001, for being revised as the block-identified of block to be positioned by the described current anchor point value browsing webpage.
Triggers module 1002, locates described to be positioned block according to amended anchor point value current the browsing on webpage of user for triggering browser.
Adopt the embodiment of the present invention, because first determine the current current block browsing webpage of user, again according to the relation of current block and block to be positioned, from the pool of blocks preset, get the block-identified of block to be positioned and position, so achieve the object positioned according to the block at place in the current webpage browsed of user.Further, the current block browsed according to user carries out the location of other blocks, also better can promote Consumer's Experience, conveniently helps user to realize the block location on webpage.
Corresponding with the method that a kind of block of above-mentioned the application localization method embodiment 2 provides, see Figure 11, present invention also provides a kind of block locating device embodiment 2, in the present embodiment, this device can comprise:
Receiver module 1101, for receive user trigger comprise block-identified block positioning instruction to be positioned;
Obtain identification module 1102, for obtaining the block-identified of described block to be positioned from the pool of blocks preset;
Locating module 1103, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
In the present embodiment, because directly got the information of block to be positioned from block positioning instruction, so can according to the corresponding relation of the block-identified and block preset, directly locate described block to be positioned current the browsing on webpage of user, so achieve directly according to block-identified object of carrying out block quick position.Further, also better can promote Consumer's Experience, conveniently help user to realize the block location on webpage.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
A kind of block localization method provided the application above and device are described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this instructions block should not be construed as the restriction to the application.

Claims (10)

1. a block localization method, is characterized in that, the method comprises:
In response to the block positioning instruction of the block relation that comprises that user triggers, obtain the current current block browsing webpage of user;
According to the relation of the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned;
According to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
2. method according to claim 1, is characterized in that, described default pool of blocks is set up in the following manner:
Determine the current block sets to be positioned browsing webpage of described user;
According to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, it is each block setting area to be positioned block identification;
Be saved to accordingly in pool of blocks with its side-play amount offsetTop by the block-identified of each block to be positioned described, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
3. method according to claim 2, is characterized in that, the current current block browsing webpage of described acquisition user, comprising:
Obtain user current browse the current block of webpage return pixel value scrollTop, described in return the height value that pixel value represents the webpage be hidden in above the described current upper scroll bar browsing webpage;
Determine to return corresponding block-identified of side-play amount that pixel value mates most with described;
The block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
4. method according to claim 1, is characterized in that, the corresponding relation of the block-identified and block that described foundation is preset, and locates described block to be positioned, comprising current the browsing on webpage of user:
The described current anchor point value browsing webpage is revised as the block-identified of described block to be positioned;
Trigger browser and locate described block to be positioned according to amended anchor point value current the browsing on webpage of user.
5. a block localization method, is characterized in that, comprising:
Receive the block positioning instruction comprising block to be positioned that user triggers;
The block-identified of described block to be positioned is obtained from the pool of blocks preset;
According to the corresponding relation of the block-identified and block preset, locate described block to be positioned current the browsing on webpage of user.
6. a block locating device, is characterized in that, this device comprises:
Obtain block module, for the block positioning instruction of the block relation that comprises triggered in response to user, the current current block browsing webpage of acquisition user;
Obtain identification module, for the relation according to the described current block represented by described block relation and block to be positioned, from the pool of blocks preset, obtain the block-identified of described block to be positioned;
Locating module, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
7. device according to claim 6, is characterized in that, described default pool of blocks is by setting up with lower module:
Determination module, for determining the current block sets to be positioned browsing webpage of described user;
Module is set, for according to each block to be positioned in described block sets to be positioned in the described current DISPLAY ORDER browsed on webpage, be each block setting area to be positioned block identification;
Preserve module, for the block-identified of each block to be positioned described and its side-play amount being saved to accordingly in pool of blocks, described side-play amount represents the Vertical number of pixels comprising the coboundary of block from the coboundary of current block to described current block.
8. device according to claim 7, is characterized in that, described acquisition block module comprises:
Obtain submodule, for obtain user current browse the current block of webpage return pixel value, described in return pixel value and represent and be hidden in the described current height value browsing the webpage of the top of the scroll bar of webpage;
Determining labeling submodule, returning corresponding block-identified of side-play amount that pixel value mates most for determining with described;
Determine block submodule, for the block of the described block-identified correspondence determined is defined as the current current block browsing webpage of user.
9. device according to claim 6, is characterized in that, described locating module comprises:
Amendment submodule, is revised as block to be positioned for the described current anchor point value browsing webpage block-identified;
Triggers module, locates described to be positioned block according to amended anchor point value current the browsing on webpage of user for triggering browser.
10. a block locating device, is characterized in that, comprising:
Receiver module, for receiving the block positioning instruction comprising block to be positioned that user triggers;
Obtain identification module, for obtaining the block-identified of described block to be positioned from the pool of blocks preset;
Locating module, for the corresponding relation according to the block-identified and block preset, locates described block to be positioned current the browsing on webpage of user.
CN201310239629.7A 2013-06-17 2013-06-17 Block localization method and device Active CN104239325B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310239629.7A CN104239325B (en) 2013-06-17 2013-06-17 Block localization method and device
HK15103386.9A HK1202941A1 (en) 2013-06-17 2015-04-03 Method for locating block and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310239629.7A CN104239325B (en) 2013-06-17 2013-06-17 Block localization method and device

Publications (2)

Publication Number Publication Date
CN104239325A true CN104239325A (en) 2014-12-24
CN104239325B CN104239325B (en) 2018-02-13

Family

ID=52227415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310239629.7A Active CN104239325B (en) 2013-06-17 2013-06-17 Block localization method and device

Country Status (2)

Country Link
CN (1) CN104239325B (en)
HK (1) HK1202941A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462574A (en) * 2014-12-29 2015-03-25 北京致远协创软件有限公司 Method for locating flow chart nodes in browser window
CN105550341A (en) * 2015-12-23 2016-05-04 北京奇虎科技有限公司 Positioning method and apparatus for returning dynamic data list page
CN107102996A (en) * 2016-02-22 2017-08-29 阿里巴巴集团控股有限公司 Page positioning method and device
CN109218348A (en) * 2017-06-29 2019-01-15 华为技术有限公司 The determination method and node device of block in a kind of block chain
CN109241467A (en) * 2018-07-30 2019-01-18 阿里巴巴集团控股有限公司 A kind of determination method and device of page structure
CN111737276A (en) * 2020-07-17 2020-10-02 支付宝(杭州)信息技术有限公司 Method and system for modifying block chain data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060160531A1 (en) * 2005-01-18 2006-07-20 Samsung Electronics Co., Ltd. Method for improving communication success rate in simultaneous call trial between subscribers in mobile communication systems
CN102023894A (en) * 2010-11-18 2011-04-20 华为终端有限公司 User operation interface transformation method and terminal
CN102982088A (en) * 2012-11-01 2013-03-20 北京百度网讯科技有限公司 Method for providing feedback information of user on destination page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060160531A1 (en) * 2005-01-18 2006-07-20 Samsung Electronics Co., Ltd. Method for improving communication success rate in simultaneous call trial between subscribers in mobile communication systems
CN102023894A (en) * 2010-11-18 2011-04-20 华为终端有限公司 User operation interface transformation method and terminal
CN102982088A (en) * 2012-11-01 2013-03-20 北京百度网讯科技有限公司 Method for providing feedback information of user on destination page

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TIN: "《爱上我的iPhone 4典藏版》", 30 June 2011, 北京:人民邮电出版社 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462574A (en) * 2014-12-29 2015-03-25 北京致远协创软件有限公司 Method for locating flow chart nodes in browser window
CN104462574B (en) * 2014-12-29 2018-04-13 北京致远互联软件股份有限公司 A kind of localization method of flow chart node in browser window
CN105550341A (en) * 2015-12-23 2016-05-04 北京奇虎科技有限公司 Positioning method and apparatus for returning dynamic data list page
CN105550341B (en) * 2015-12-23 2019-05-14 北京奇虎科技有限公司 Return to the localization method and device of dynamic data list page
CN107102996A (en) * 2016-02-22 2017-08-29 阿里巴巴集团控股有限公司 Page positioning method and device
CN109218348A (en) * 2017-06-29 2019-01-15 华为技术有限公司 The determination method and node device of block in a kind of block chain
CN109218348B (en) * 2017-06-29 2020-12-01 华为技术有限公司 Method for determining blocks in block chain and node equipment
CN109241467A (en) * 2018-07-30 2019-01-18 阿里巴巴集团控股有限公司 A kind of determination method and device of page structure
CN111737276A (en) * 2020-07-17 2020-10-02 支付宝(杭州)信息技术有限公司 Method and system for modifying block chain data
CN111737276B (en) * 2020-07-17 2020-12-04 支付宝(杭州)信息技术有限公司 Method and system for modifying block chain data

Also Published As

Publication number Publication date
CN104239325B (en) 2018-02-13
HK1202941A1 (en) 2015-10-09

Similar Documents

Publication Publication Date Title
CN104239325A (en) Block positioning method and block positioning device
CN104077387B (en) A kind of web page contents display methods and browser device
TWI703463B (en) Information display method, device and intelligent terminal
KR102278657B1 (en) Automatically determining a size for a content item for a web page
CN110968824B (en) Page data processing method and device
US11170063B2 (en) User interface element for surfacing related results
CN103020156B (en) A kind of disposal route for webpage, device and equipment
CN110069683B (en) Method and device for crawling data based on browser
CN105824830B (en) Method, client and equipment for displaying page
CN106156244B (en) Information search navigation method and device
US8117531B1 (en) Interpreted language translation system and method
US20160012018A1 (en) Information processing device, information processing method, information processing program, display control device, and display control program
CN104462131A (en) Method and device for processing information issuing page
CN109543128B (en) Front-end framework project implementation method based on programming language and electronic equipment
CN109960491A (en) Application program generation method, generating means, electronic equipment and storage medium
CN103258057A (en) Method and device for displaying point of interest on electronic map interface
CN101782914A (en) Method and system for prompting web page information
WO2018010573A1 (en) Method and device for generating script
CN104166656A (en) Traffic statistic webpage display method and device
CN105373593A (en) Method and apparatus for displaying target element from webpage
CN103729439A (en) Method and device for preloading webpage
CN107391534B (en) Page display method, page file return method, page display device, page file return device and computer storage medium
CN111258577A (en) Page rendering method and device, electronic equipment and storage medium
CN106033387B (en) The method and apparatus for testing flash intrinsic controls
CN103020179A (en) Method, device and equipment for extracting webpage contents

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1202941

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant