CN104239325B - Block localization method and device - Google Patents

Block localization method and device Download PDF

Info

Publication number
CN104239325B
CN104239325B CN201310239629.7A CN201310239629A CN104239325B CN 104239325 B CN104239325 B CN 104239325B CN 201310239629 A CN201310239629 A CN 201310239629A CN 104239325 B CN104239325 B CN 104239325B
Authority
CN
China
Prior art keywords
block
webpage
user
identified
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310239629.7A
Other languages
Chinese (zh)
Other versions
CN104239325A (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

This application provides block localization method and device, this method includes:In response to the block positioning instruction for including block relation of user's triggering, the current block that user currently browses webpage is obtained;According to the relation of the current block represented by the block relation and block to be positioned, the block-identified of the block to be positioned is obtained from default pool of blocks;According to the default block-identified and corresponding relation of block, currently browsed in user and the block to be positioned is positioned on webpage.Pass through method or apparatus disclosed in the embodiment of the present application, it is possible to achieve the current block that is browsed according to user carries out the purpose of other block fast positionings.Further, the current block browsed according to user carries out the fast positioning of other blocks, can also preferably lift Consumer's Experience, conveniently helps user to realize and some or certain several blocks are searched on webpage.

Description

Block localization method and device
Technical field
The application is related to internet arena, more particularly to the block localization method and device for the page.
Background technology
Internet (Internet), it is the World Wide Web being formed by connecting by some computers communicated using common statement The International Computer Network that network, i.e. wide area network, LAN and unit form according to certain communications protocol.User to view Internet During the page, a page may include the information of a plurality of similar content, such as:Product details shown on the page etc., and when every When the information of bar content is more, displaying wall scroll content may take more than half screen or more of display screen used in user It is more.And on the page, the number or information content size of every content are also unfixed.Generally, one is shown One page display area of content is referred to as a block.
Prior art is when realizing the positioning of the block in the page, just to certain in the webpage usually before auto-building html files A little HTML (HTML, Hypertext Markup Language) labels (each block corresponded in webpage) Set mark, such as title (name) or sequence number (id), then when positioning each block in the webpage, it is possible to straight The mark selected according to user is connect come each block corresponding to being navigated to using anchor point.Wherein, anchor point refer to by using Name or id attributes, the bookmark inside a webpage is created, that is, be directed to the chain of each block corresponding to each bar content in webpage Connect.
But prior art is when realizing, because mark corresponding to its each block is just set before auto-building html files Alright, so can not be modified after auto-building html files, so the positioning of block can only be carried out according to the mark set, can not Positioned according to the block where the content that user currently browses.
In a word, a technical problem for needing those skilled in the art urgently to solve at present is exactly:How to innovate A kind of block localization method is proposed, in the prior art can not be according to the block where the web page contents that user currently browses with solution The problem of being positioned.
Invention block
Technical problems to be solved in this application are to provide a kind of block localization method, to solve in the prior art can not The problem of Web page area currently browsed according to user is positioned.
Present invention also provides a kind of block positioner, to ensure the realization and application of the above method in practice.
In order to solve the above problems, this application discloses a kind of block localization method, including:
In response to the block positioning instruction for including block relation of user's triggering, obtain user and currently browse the current of webpage Block;
According to the relation of the current block represented by the block relation and block to be positioned, from default pool of blocks It is middle to obtain the block-identified of the block to be positioned;
According to default block-identified with the corresponding relation of block, user currently browse positioned on webpage it is described to be positioned Block.
Optionally, the default pool of blocks is established in the following manner:
Determine that the user currently browses the block sets to be positioned of webpage;
According to each block to be positioned in the block sets to be positioned in the current display order browsed on webpage, Set for each block to be positioned block-identified;
Block-identified and its offset offsetTop of each block to be positioned is accordingly preserved to pool of blocks In, the offset represents the vertical pixel from the coboundary of current block to the coboundary comprising block of the current block Number.
Optionally, the current block for obtaining user and currently browsing webpage, including:
Obtain the return pixel value scrollTop that user currently browses the current block of webpage, the return pixel value table Show and be hidden in from the current height value for browsing the pixel count webpage above the coboundary to scroll bar of webpage;
It is determined that the offset most matched with the return pixel value is corresponding block-identified;
By the determination it is block-identified corresponding to block be defined as the current block that user currently browses webpage.
Optionally, described according to the default block-identified and corresponding relation of block, it is fixed on webpage currently to be browsed in user The position block to be positioned, including:
The current anchor point value for browsing webpage is revised as the block-identified of the block to be positioned;
Triggering browser currently browses according to amended anchor point value in user positions the block to be positioned on webpage.
Disclosed herein as well is another block localization method, including:
Receive the block positioning instruction for including block to be positioned of user's triggering;
The block-identified of the block to be positioned is obtained from default pool of blocks;
According to default block-identified with the corresponding relation of block, user currently browse positioned on webpage it is described to be positioned Block.
This application discloses a kind of block positioner, including:
Block module is obtained, for the block positioning instruction for including block relation triggered in response to user, obtains user The current current block for browsing webpage;
Mark module is obtained, for the pass according to the current block represented by the block relation and block to be positioned System, obtains the block-identified of the block to be positioned from default pool of blocks;
Locating module, for according to the default block-identified and corresponding relation of block, currently being browsed in user on webpage Position the block to be positioned.
Optionally, the default pool of blocks with lower module by being established:
Determining module, for determining that the user currently browses the block sets to be positioned of webpage;
Setup module, for currently browsing webpage described according to each block to be positioned in the block sets to be positioned On display order, set for each block to be positioned block-identified;
Preserving module, for block-identified and its offset of each block to be positioned accordingly to be preserved to block In storehouse, the offset represents the vertical picture from the coboundary of current block to the coboundary comprising block of the current block Prime number.
Optionally, the acquisition block module includes:
Acquisition submodule, the return pixel value for currently browsing the current block of webpage for obtaining user, the return picture Plain value represents to be hidden in the height value of the webpage of the top of the current scroll bar for browsing webpage;
Labeling submodule is determined, the offset for determining most to match with the return pixel value is corresponding block-identified;
Block submodule is determined, net is currently browsed for the block-identified corresponding block of the determination to be defined as into user The current block of page.
Optionally, the locating module includes:
Submodule is changed, is revised as the current anchor point value for browsing webpage by the block-identified of block to be positioned;
Submodule is triggered, is currently browsed in user according to amended anchor point value for triggering browser and institute is positioned on webpage State block to be positioned.
Disclosed herein as well is another block positioner, including:
Receiving module, for receiving the block positioning instruction for including block to be positioned of user's triggering;
Mark module is obtained, for obtaining the block-identified of the block to be positioned from default pool of blocks;
Locating module, for according to the default block-identified and corresponding relation of block, currently being browsed in user on webpage Position the block to be positioned.
Compared with prior art, the application includes advantages below:
In this application, because being first determined that user currently browses the current block of webpage, therefore can be according to working as proparea The relation of block and block to be positioned, determines block to be positioned, and then can be according to default block-identified corresponding with block Relation, directly currently browsed in user and the block to be positioned is positioned on webpage, it is achieved that being browsed according to user current Block carries out the purpose of other block fast positionings.Further, the current block browsed according to user carries out other blocks Fast positioning, can also preferably lift Consumer's Experience, conveniently help user realize searches some on webpage Or certain several block.
Certainly, any product for implementing the application it is not absolutely required to reach all the above advantage simultaneously.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of flow chart of block localization method embodiment 1 of the application;
Fig. 2 is the flow chart of the step 101 in the application embodiment of the method 1;
Fig. 3 is default pool of blocks Establishing process figure in the application embodiment of the method 1;
Fig. 4 is the interface schematic diagram of offset in the application embodiment of the method 1;
Fig. 5 is the flow chart of step 103 in the application embodiment of the method 1;
Fig. 6 is a kind of flow chart of block localization method embodiment 2 of the application;
Fig. 7 is a kind of structured flowchart of block positioner embodiment 1 of the application;
Fig. 8 is the structured flowchart that block module 701 is obtained in the application device embodiment 1;
Fig. 9 is the structured flowchart that pool of blocks is established in the application device embodiment 1;
Figure 10 is the structured flowchart of locating module 703 in the application device embodiment 1;
Figure 11 is a kind of structured flowchart of block positioner embodiment 2 of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
The application can be used in numerous general or special purpose computing device environment or configuration.Such as:Personal computer, service Device computer, handheld device or portable set, laptop device, multi-processor device including any of the above device or equipment DCE etc..
The application can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with In the local and remote computer-readable storage medium including storage device.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.Internal memory may include the volatile memory in computer-readable medium, random access memory (RAM) And/or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable Jie The example of matter.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any side Method or technology realize that information stores.Information can be computer-readable instruction, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to Herein defines, and computer-readable medium does not include of short duration computer readable media (transitory media), such as modulation Data-signal and carrier wave.
One of main thought of the application can include, by first determining that user currently browses the current block of webpage, just According to the relation of current block and block to be positioned, the block mark of to be positioned block can be got from default pool of blocks Know, and then carry out the positioning of block to be positioned, the block where in the webpage that so can be achieved with currently being browsed according to user enters The purpose of row positioning.
With reference to figure 1, a kind of flow chart of block localization method embodiment 1 of the application is shown, may comprise steps of:
Step 101:In response to the block positioning instruction for including block relation of user's triggering, obtain user and currently browse net The current block of page.
In the present embodiment, the webpage that user is reading can be user on webpage currently to browse webpage Arbitrary a kind of shortcut such as one link or button is set, user can be supplied to be used to trigger block positioning instruction Interface, user can trigger block positioning instruction by modes such as clickthrough or buttons.In addition, in the block positioning instruction It is that user currently browses position relationship between the current block of webpage and block to be positioned including block relation.For example, work as Preceding block is identified as block 5, then block relation then can be with the previous block of current block, i.e., block to be positioned is block 4.Certainly, block relation only needs to represent the position relationship between current block and block to be positioned, in practice may be used To be realized using various ways, the tune that the realization to block relation such as naming method of each block carries out adaptability can also be referred to It is whole.
And in actual applications, the specific realization for positioning user and currently browsing the current block of webpage may be referred to Fig. 2 institutes Show, Fig. 2 is that the flow chart that user currently browses the current block of webpage is obtained in step 101, can specifically be included:
Step 201:Obtain the return pixel value scrollTop that user currently browses the current block of webpage, the return Pixel value represents to be hidden in the current height value for browsing the webpage above the scroll bar of webpage.
First, the return pixel value (scrollTop) that user is browsing the current block of webpage is obtained, should ScrollTop represents to be hidden in the current height value for browsing the webpage above the scroll bar of webpage.When the page has scroll bar When, the scrollTop is from the numerical value of the position rolled needed for the coboundary to scroll bar of full page, is to work as webpage When lower section being rolled to using scroll bar, the height value for the webpage being hidden in above scroll bar.The scrollTop belongs to the page Attribute data, can be directly obtained by the association attributes parameter of the page in browser.For example, it ought initially open a page When face, scroll bar does not start to also roll, and the value is exactly 0, and if after opening the page, worked as by the rolling of scroll bar The centre of preceding browsing pages, then the value is exactly topmost to the pixel value of centre from the page, is to be hidden in above scroll bar Webpage height value.
Step 202:It is determined that the offset most matched with the return pixel value is corresponding block-identified.
Wherein, offset (offsetTop) represents, the sub-district included from the coboundary of current block to the current block The vertical range of the coboundary of block, and in units of pixel.
In actual applications, in a page it is in need realize the block of positioning function for, can be advance The offsetTop of the block-identified and block of these blocks corresponding relation is recorded, is obtaining current page ScrollTop and then compared with the offsetTop of some blocks in the current page of record, it is determined that with The offsetTop that scrollTop is most matched, it is that consistent with scrollTop numerical value or immediate offsetTop Afterwards, the corresponding relation according to block and offsetTop recorded in current page, to determine one and offsetTop It is corresponding block-identified.
It should be noted that in the embodiment of the present application, block and sub-block are related to html tag, it is nested A subtab inside certain html tag (corresponding block) just corresponds to a sub-block.For example, it is assumed that one on webpage The corresponding block of news, can be title and first paragraph word in news corresponding to a sub-block of the block, when So, the corresponding relation of title that can also only in corresponding news, block and sub-block mainly sees the html tag and son of the webpage The corresponding situation of label.Generally, the title of news and each paragraph can be corresponded to the html tag specified respectively.
Step 203:By the determination it is block-identified corresponding to block be defined as that user currently browses webpage work as proparea Block.
Again by determined in step 202 it is block-identified corresponding to block be defined as that user currently browses webpage work as proparea Block.
Fig. 1 is then returned to, into step 102:According to the current block represented by the block relation with it is to be positioned The relation of block, the block-identified of the block to be positioned is obtained from default pool of blocks.
User is determined after the current block in currently browsing webpage, got from block relation current block with The relation of block to be positioned, the block-identified of the block to be positioned is then determined from default pool of blocks.
Specifically, with reference to shown in figure 3, it is the Establishing process figure of default pool of blocks, can specifically includes:
Step 301:Determine that the user currently browses the block sets to be positioned of webpage.
Firstly, for currently browsing webpage, it is determined that wherein all blocks for needing to realize positioning function, and as The current block sets to be positioned for browsing webpage.
Step 302:Currently browsed according to each block to be positioned in the block sets to be positioned described on webpage Display order, set for each block to be positioned block-identified.
Because for a webpage, although being arranged side by side in each block relation therein, because webpage shows After showing order and having and first have, for example, for a news in webpage, its title is necessarily shown in top, and text is shown in Lower section, then, can according to each block to be positioned in block sets to be positioned in the current display order browsed on webpage It is block-identified to think that each block to be positioned is set.For example, it will show that the block of headline is arranged to block in some webpage 1, and the first paragraph of the news can then be arranged to block 2 accordingly, the like.
Step 303:By block-identified and its offset offsetTop of each block to be positioned accordingly preserve to In pool of blocks, the offset represents hanging down from the coboundary of current block to the coboundary comprising block of the current block Straight pixel count.
Block-identified and its offset offsetTop of each block to be positioned set is accordingly preserved to area again In block storehouse, the offsetTop represents hanging down from the coboundary of current block to the coboundary comprising block of the current block Straight pixel count, offsetTop is also directly directly to be acquired from the property parameters of the page or browser here.Example Such as, for a web page news, it is assumed that it is a block corresponding to news, and headline has corresponded to a sub-block, then Offset means that the coboundary of the news to the height value of the coboundary of headline.With reference to shown in figure 4, it is assumed that in Fig. 4 40 regions are block size corresponding to news, and 41 be the sub-block corresponding to the title in the news region, then its In h be foregoing offset.Certainly, Fig. 4 is only a simple signal of offset, be should not be construed as to the present invention The limitation of embodiment.
Fig. 1 is then returned to, into step 103:It is current in user according to the default block-identified and corresponding relation of block Browse and the block to be positioned is positioned on webpage.
When determine block to be positioned it is block-identified after, it is possible to according to default block-identified corresponding with block Relation, currently browsed in user and the block to be positioned is directly positioned on webpage.
Specifically, with reference to shown in figure 5, it is the flow chart of step 103, can specifically includes:
Step 501:The current anchor point value for browsing webpage is revised as the block-identified of block to be positioned.
The block to be positioned of foundation step 102 determination is block-identified again, and the anchor point value for currently browsing webpage is revised as Block to be positioned it is block-identified.
Step 502:Triggering browser according to amended anchor point value user currently browse positioned on webpage it is described undetermined Position block.
And because browser can be automatically positioned some block according to the anchor point value of modification, directly triggering currently browses Browser where webpage currently browses according to amended anchor point value in user positions block to be positioned on webpage.
The embodiment of the present invention is used, because being first determined that user currently browses the current block of webpage, then determines to work as proparea The relation of block and block to be positioned, gets the block-identified of block to be positioned and is positioned from default pool of blocks, It is achieved that the purpose that the block where in the webpage currently browsed according to user is positioned.Further, according to user The current block browsed carries out the positioning of other blocks, can also preferably lift Consumer's Experience, conveniently help user Realize the block positioning on webpage.
With reference to figure 6, a kind of flow chart of block localization method embodiment 2 of the application is shown, may comprise steps of:
Step 601:Receive user's triggering includes block-identified block positioning instruction to be positioned.
In the present embodiment, the webpage that user is reading browses webpage to be current, and can also can be with webpage Arbitrary a kind of shortcut such as one link or button is set for user, user can be supplied to be used to trigger block positioning The interface of instruction, user can trigger block positioning instruction by modes such as clickthrough or buttons.Wherein, user triggers Directly contained in block positioning instruction it is to be positioned block-identified, for example, user directly trigger it is block-identified to be positioned for " 5 " The positioning of block.
Step 602:The block-identified of the block to be positioned is obtained from default pool of blocks.
So this step gets the block-identified of the positioning block from default pool of blocks again, such as 5 in pool of blocks In it is corresponding it is block-identified be " block E ".Specifically, pool of blocks establishes process, the flow shown in Fig. 3 may be referred to.
Step 603:According to the default block-identified and corresponding relation of block, currently browsed in user and institute is positioned on webpage State block to be positioned.
The default block-identified and corresponding relation of block again, currently browses in user and the area to be positioned is positioned on webpage Block.The realization of this step may be referred to the associated description in embodiment 1, will not be repeated here.
In the present embodiment, can because directly having got the information of block to be positioned from block positioning instruction According to the default block-identified and corresponding relation of block, directly currently to be browsed in user and the area to be positioned positioned on webpage Block, it is achieved that directly according to the purpose of block-identified progress block fast positioning.Further, can also preferably be lifted Consumer's Experience, user is conveniently helped to realize the block positioning on webpage.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but It is that those skilled in the art should know, the application is not limited by described sequence of movement, because according to the application, certain A little steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, be retouched in specification The embodiment stated belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
It is corresponding with the method that a kind of block localization method embodiment 1 of above-mentioned the application is provided, referring to Fig. 7, the application A kind of block positioner embodiment 1 is additionally provided, in the present embodiment, the device can include:
Block module 701 is obtained, for the block positioning instruction for including block relation triggered in response to user, obtains and uses Family currently browses the current block of webpage.
With reference to shown in figure 8, Fig. 8 is the structured flowchart of the acquisition block module 701, can specifically be included:
Acquisition submodule 801, the return pixel value for currently browsing the current block of webpage for obtaining user, the return Pixel value represents to be hidden in the current height value for browsing the webpage above the scroll bar of webpage.
Labeling submodule 802 is determined, for determination block mark corresponding with the offset that the return pixel value most matches Know.
Block submodule 803 is determined, it is currently clear for the block-identified corresponding block of the determination to be defined as into user Look at the current block of webpage.
Mark module 702 is obtained, for according to the current block represented by the block relation and block to be positioned Relation, the block-identified of the block to be positioned is obtained from default pool of blocks.
With reference to shown in figure 9, the default pool of blocks can be by being established with lower module:
Determining module 901, for determining that the user currently browses the block sets to be positioned of webpage;
Setup module 902, for currently being browsed described according to each block to be positioned in the block sets to be positioned Display order on webpage, set for each block to be positioned block-identified;
Preserving module 903, for by block-identified and its offset of each block to be positioned accordingly preserve to In pool of blocks, the offset represents hanging down from the coboundary of current block to the coboundary comprising block of the current block Straight pixel count.
Locating module 703, for according to the default block-identified and corresponding relation of block, webpage currently to be browsed in user The upper positioning block to be positioned.
With reference to shown in figure 10, the locating module 703 can specifically include:
Submodule 1001 is changed, for the current anchor point value for browsing webpage to be revised as to the block mark of block to be positioned Know.
Submodule 1002 is triggered, is determined for triggering browser and currently being browsed in user according to amended anchor point value on webpage The position block to be positioned.
The embodiment of the present invention is used, because being first determined that user currently browses the current block of webpage, further according to working as proparea The relation of block and block to be positioned, gets the block-identified of block to be positioned and is positioned from default pool of blocks, It is achieved that the purpose that the block where in the webpage currently browsed according to user is positioned.Further, according to user The current block browsed carries out the positioning of other blocks, can also preferably lift Consumer's Experience, conveniently help user Realize the block positioning on webpage.
It is corresponding with the method that a kind of block localization method embodiment 2 of above-mentioned the application is provided, referring to Figure 11, the application A kind of block positioner embodiment 2 is additionally provided, in the present embodiment, the device can include:
Receiving module 1101, for receive user triggering include block-identified block positioning instruction to be positioned;
Mark module 1102 is obtained, for obtaining the block-identified of the block to be positioned from default pool of blocks;
Locating module 1103, for according to the default block-identified and corresponding relation of block, net currently to be browsed in user The block to be positioned is positioned on page.
In the present embodiment, can because directly having got the information of block to be positioned from block positioning instruction According to the default block-identified and corresponding relation of block, directly currently to be browsed in user and the area to be positioned positioned on webpage Block, it is achieved that directly according to the purpose of block-identified progress block fast positioning.Further, can also preferably be lifted Consumer's Experience, user is conveniently helped to realize the block positioning on webpage.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence " including one ... ", not Other identical element in the process including the key element, method, article or equipment also be present in exclusion.
A kind of block localization method and device provided herein is described in detail above, it is used herein Specific case is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands this The method and its core concept of application;Meanwhile for those of ordinary skill in the art, according to the thought of the application, specific There will be changes in embodiment and application, in summary, this specification block should not be construed as to the application's Limitation.

Claims (10)

1. a kind of block localization method, it is characterised in that this method includes:
In response to the block positioning instruction for including block relation of user's triggering, what acquisition user currently browsed webpage works as proparea Block;
According to the relation of the current block represented by the block relation and block to be positioned, obtained from default pool of blocks Take the block-identified of the block to be positioned;The default pool of blocks is used to preserve:Block-identified and its offset Corresponding relation between offsetTop, the offset represent including from the coboundary of current block to the current block The Vertical number of pixels of the coboundary of block;
According to the default block-identified and corresponding relation of block, currently browsed in user and the area to be positioned is positioned on webpage Block.
2. according to the method for claim 1, it is characterised in that the default pool of blocks is established in the following manner:
Determine that the user currently browses the block sets to be positioned of webpage;
It is each according to each block to be positioned in the block sets to be positioned in the current display order browsed on webpage Individual block to be positioned sets block-identified;
Block-identified and its offset offsetTop of each block to be positioned is accordingly preserved into pool of blocks, institute State Vertical number of pixels of the offset expression from the coboundary of current block to the coboundary comprising block of the current block.
3. according to the method for claim 2, it is characterised in that the current block for obtaining user and currently browsing webpage, Including:
The return pixel value scrollTop that user currently browses the current block of webpage is obtained, the return pixel value represents hidden Ensconce the current height value for browsing the webpage above the upper scroll bar of webpage;
It is determined that the offset most matched with the return pixel value is corresponding block-identified;
By the determination it is block-identified corresponding to block be defined as the current block that user currently browses webpage.
4. according to the method for claim 1, it is characterised in that described according to default block-identified pass corresponding with block System, currently browses in user and the block to be positioned is positioned on webpage, including:
The current anchor point value for browsing webpage is revised as the block-identified of the block to be positioned;
Triggering browser currently browses according to amended anchor point value in user positions the block to be positioned on webpage.
A kind of 5. block localization method, it is characterised in that including:
Receive the block positioning instruction for including block to be positioned of user's triggering;
The block-identified of the block to be positioned is obtained from default pool of blocks;The default pool of blocks is used to preserve:Area Corresponding relation between block identification and its offset offsetTop, the offset are represented from the coboundary of current block to institute State the Vertical number of pixels of the coboundary comprising block of current block;
According to the default block-identified and corresponding relation of block, currently browsed in user and the area to be positioned is positioned on webpage Block.
6. a kind of block positioner, it is characterised in that the device includes:
Block module is obtained, for the block positioning instruction for including block relation triggered in response to user, it is current to obtain user Browse the current block of webpage;
Mark module is obtained, for the relation according to the current block represented by the block relation and block to be positioned, The block-identified of the block to be positioned is obtained from default pool of blocks;The default pool of blocks is used to preserve:Block mark Know the corresponding relation between its offset offsetTop, the offset represents to work as from the coboundary of current block to described The Vertical number of pixels of the coboundary comprising block of preceding block;
Locating module, for according to the default block-identified and corresponding relation of block, currently browsing on webpage and positioning in user The block to be positioned.
7. device according to claim 6, it is characterised in that the default pool of blocks with lower module by being established:
Determining module, for determining that the user currently browses the block sets to be positioned of webpage;
Setup module, for currently being browsed according to each block to be positioned in the block sets to be positioned described on webpage Display order, set for each block to be positioned block-identified;
Preserving module, for block-identified and its offset of each block to be positioned accordingly to be preserved to pool of blocks In, the offset represents the vertical pixel from the coboundary of current block to the coboundary comprising block of the current block Number.
8. device according to claim 7, it is characterised in that the acquisition block module includes:
Acquisition submodule, the return pixel value for currently browsing the current block of webpage for obtaining user, the return pixel value Expression is hidden in the height value of the webpage of the top of the current scroll bar for browsing webpage;
Labeling submodule is determined, the offset for determining most to match with the return pixel value is corresponding block-identified;
Block submodule is determined, webpage is currently browsed for the block-identified corresponding block of the determination to be defined as into user Current block.
9. device according to claim 6, it is characterised in that the locating module includes:
Submodule is changed, is revised as the current anchor point value for browsing webpage by the block-identified of block to be positioned;
Submodule is triggered, currently browses on webpage in user according to amended anchor point value for triggering browser and is treated described in positioning Position block.
A kind of 10. block positioner, it is characterised in that including:
Receiving module, for receiving the block positioning instruction for including block to be positioned of user's triggering;
Mark module is obtained, for obtaining the block-identified of the block to be positioned from default pool of blocks;It is described default Pool of blocks is used to preserve:Corresponding relation between the block-identified offsetTop with its offset, the offset are represented from current Vertical number of pixels of the coboundary of block to the coboundary comprising block of the current block;
Locating module, for according to the default block-identified and corresponding relation of block, currently browsing on webpage and positioning in user The block to be positioned.
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 CN104239325A (en) 2014-12-24
CN104239325B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462574B (en) * 2014-12-29 2018-04-13 北京致远互联软件股份有限公司 A kind of localization method of flow chart node in browser window
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
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
CN111737276B (en) * 2020-07-17 2020-12-04 支付宝(杭州)信息技术有限公司 Method and system for modifying block chain data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100770843B1 (en) * 2005-01-18 2007-10-26 삼성전자주식회사 Method for improving call sucess ratio when each other user equipment call trial happens at the same time in a mobile communication system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
HK1202941A1 (en) 2015-10-09
CN104239325A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104239325B (en) Block localization method and device
CN104077387B (en) A kind of web page contents display methods and browser device
TWI689881B (en) Directional display information method and device
Xie et al. Efficient browsing of web search results on mobile devices based on block importance model
US20150026606A1 (en) System and framework for multi-dimensionally visualizing and interacting with large data sets
KR102244298B1 (en) Apparatus and Method for structuring web page access history based on semantics
CN106598972A (en) Information display method and device as well as intelligent terminal
CN106155496A (en) A kind of information displaying method and device
CN103246678A (en) Method and device for previewing web page contents
CN109543128B (en) Front-end framework project implementation method based on programming language and electronic equipment
CN103577477B (en) The methods of exhibiting of the browsing histories of browser and display systems
CN105354203A (en) Information display method and apparatus
CN102662666A (en) Method and device for creating interface menu
CN103365877B (en) Method and server to establishing catalogue after webpage progress transcoding
CN103744845A (en) Method and system for WEB platform data caching
US9465814B2 (en) Annotating search results with images
EP2933731A1 (en) Method for configuring browser bookmarks, device and terminal thereof
CN106649299B (en) Method and device for lazy loading of webpage block
CN105373593A (en) Method and apparatus for displaying target element from webpage
CN106886547A (en) A kind of scenario generation method and device
CN101187945B (en) A page processing method and device
CN113609308B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN108021662A (en) A kind of Web page picture display methods of mobile terminal
CN104731817A (en) Webpage display method and device
JP2011186876A (en) Browsing device, browsing system, browsing method and browsing program

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