CN106095917B - Bookmark storage and display method and device and browser - Google Patents

Bookmark storage and display method and device and browser Download PDF

Info

Publication number
CN106095917B
CN106095917B CN201610405422.6A CN201610405422A CN106095917B CN 106095917 B CN106095917 B CN 106095917B CN 201610405422 A CN201610405422 A CN 201610405422A CN 106095917 B CN106095917 B CN 106095917B
Authority
CN
China
Prior art keywords
page
display content
bookmark
target
target display
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
CN201610405422.6A
Other languages
Chinese (zh)
Other versions
CN106095917A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610405422.6A priority Critical patent/CN106095917B/en
Publication of CN106095917A publication Critical patent/CN106095917A/en
Application granted granted Critical
Publication of CN106095917B publication Critical patent/CN106095917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]
    • G06F16/9562Bookmark management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a bookmark storing and displaying method, a bookmark storing and displaying device and a browser, wherein when page storing is triggered, the position information of target display content in a page is determined; generating a target bookmark according to the position information and the page address information; and adding the target bookmark into a bookmark list for storage. According to the embodiment of the invention, the position information of the target display content in the page can be determined, so that not only the page address information but also the position information of the target display content in the page can be stored in the generated target bookmark, and when a user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and then the previous browsing progress of the stored page is presented for the user.

Description

Bookmark storage and display method and device and browser
Technical Field
The invention relates to the technical field of data processing, in particular to a bookmark storage and display method, a bookmark storage and display device and a browser.
Background
When a network user browses a webpage by using a browser, websites and corresponding titles of some webpages are usually stored in a bookmark, so that the stored webpage can be quickly opened in a new browsing window directly from the bookmark according to the stored websites after the browser is opened next time.
However, this bookmark saving method only saves to the level of the page in terms of the granularity of saving bookmark information, and cannot present the last browsing progress of the saved web page to the user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a bookmark storing method, a bookmark displaying method, a bookmark storing device, a bookmark displaying device, and a browser, which can store a browsing progress of a web page.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a bookmark saving method, comprising: when page saving is triggered, determining position information of target display content in a page; generating a target bookmark according to the position information and the page address information; and adding the target bookmark into a bookmark list for storage.
A bookmark display method comprises the following steps: determining a bookmark to be displayed from a bookmark list based on the selection operation instruction; determining address information of a page to be displayed and position information of target display content in the page to be displayed based on the bookmark to be displayed; performing page skipping based on the address information of the page to be displayed; and displaying the page to be displayed based on the position information of the target display content in the page.
A bookmark saving apparatus, comprising: the position information determining unit is used for determining the position information of target display content in the page when the page storage is triggered; the target bookmark generating unit is used for generating a target bookmark according to the position information and the page address information; and the target bookmark storage unit is used for adding the target bookmark into a bookmark list for storage.
A bookmark display apparatus, comprising: the bookmark to be displayed determining unit is used for determining a bookmark to be displayed from the bookmark list based on the selection operation instruction; the fourth determining unit is used for determining the address information of the page to be displayed and the position information of target display content in the page to be displayed based on the bookmark to be displayed; the page skipping unit is used for skipping pages based on the address information of the pages to be displayed; and the page display unit is used for displaying the page to be displayed based on the position information of the target display content in the page.
A browser, comprising: bookmark save set and bookmark display device.
Based on the technical scheme, the embodiment of the invention discloses a bookmark storage and display method, a device and a browser, wherein when page storage is triggered, the position information of target display content in a page is determined; generating a target bookmark according to the position information and the page address information; and adding the target bookmark into a bookmark list for storage. According to the embodiment of the invention, the position information of the target display content in the page can be determined, so that not only the page address information but also the position information of the target display content in the page can be stored in the generated target bookmark, and when a user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and then the previous browsing progress of the stored page is presented for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a bookmark saving method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a right-click menu structure according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a bookmark list structure according to an embodiment of the present invention;
FIG. 4 is a flowchart of another bookmark saving method provided by an embodiment of the present invention;
FIG. 5 is a flowchart of another bookmark storage method according to an embodiment of the present invention;
FIG. 6 is a flowchart of another bookmark storage method according to an embodiment of the present invention;
FIG. 7 is a flowchart of a bookmark displaying method according to an embodiment of the present invention;
FIG. 8 is a block diagram of a bookmark storage apparatus according to an embodiment of the present invention;
FIG. 9 is a block diagram of a hardware structure of a bookmark storage apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of a bookmark displaying apparatus according to an embodiment of the present invention;
fig. 11 is a block diagram of a hardware structure of a bookmark displaying apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor of the scheme finds that when a user browses a webpage by using a browser, websites and corresponding titles of the webpages are usually stored in a bookmark, so that the stored webpages can be quickly opened in a new browsing window according to the stored websites from the bookmark after the browser is opened next time. However, when a user browses a web page using a browser, the following situations are generally encountered: when the user quickly opens the stored webpage from the bookmark according to the stored website, the user needs to search and recall the previous browsing progress from head to bottom, and the previous browsing progress of the stored webpage cannot be presented to the user.
Therefore, how to save the browsing progress of the web page in the bookmark becomes a problem to be solved urgently at present.
In order to solve the problems, the technical scheme disclosed in the embodiment of the invention provides a bookmark storage and display method, a device and a browser, and when page storage is triggered, the position information of target display content in a page is determined; generating a target bookmark according to the position information and the page address information; and adding the target bookmark into a bookmark list for storage. According to the embodiment of the invention, the position information of the target display content in the page can be determined, so that not only the page address information but also the position information of the target display content in the page can be stored in the generated target bookmark, and when a user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and then the previous browsing progress of the stored page is presented for the user.
Fig. 1 is a flowchart of a bookmark saving method provided in an embodiment of the present invention, where the method is applicable to a server, and referring to fig. 1, the method may include:
s101: when page saving is triggered, determining position information of target display content in a page;
optionally, the operation of triggering page saving includes: triggering operation of a cursor or triggering operation through a keyboard shortcut key, etc., embodiments of the present invention are not particularly limited.
Optionally, in the embodiment of the present invention, a right key of the cursor on the page is triggered to display, for example, a right key menu structure shown in fig. 2, where the right key menu structure shown in fig. 2 is obtained by expanding a menu option "Set progress tag here" on the basis of an original right key menu of the browser, and the page may be triggered to be saved by selecting the menu option "Set progress tag here", and a new target bookmark may be added or updated.
It should be noted that the target display content may specifically be content currently browsed by a user in a page or content with a browsing mark, and the embodiment of the present invention is not limited specifically.
S102: generating a target bookmark according to the position information and the page address information;
it should be noted that the data structure of the target bookmark in the embodiment of the present invention is a key-value type data structure. In this embodiment, the key is a unique mark of one record, and optionally, a Uniform Resource Locator (URL) address of the page is used as the key value. Optionally, the Value is a data Object in JSON (JavaScript Object notification, lightweight data interchange format) format, and is used to store information related to the page.
Specifically, the content of the Value at least includes: the browsing progress percentage of the target display content relative to the page is a percentage of a ratio of the vertical coordinate of the target display content relative to the page to a total height of the page.
S103: and adding the target bookmark into a bookmark list for storage.
It should be noted that, a target bookmark is stored in the bookmark list, the title information of the target bookmark and the position information of the target display content in the page are displayed in the bookmark list, and optionally, the title information of the target bookmark is the title information of the page or the user-defined title information.
As shown in fig. 3, a structural diagram of a bookmark list is shown, where title information of a page, location information of target display content in the page, and a delete button are displayed in the bookmark list, a user can also view the location information of the target display content in the page through the bookmark list, a page to be displayed corresponding to a target bookmark can be displayed in a new window of a browser by clicking page title information in the bookmark list, and the corresponding target bookmark can be deleted by clicking the delete button.
Optionally, the embodiment of the present invention further includes: acquiring target bookmark position updating information of a page; and updating the position of the target bookmark in the bookmark list according to the position updating information of the target bookmark.
According to the technical scheme, when page saving is triggered, the position information of target display content in the page is determined; generating a target bookmark according to the position information and the page address information; and adding the target bookmark into a bookmark list for storage. According to the embodiment of the invention, the position information of the target display content in the page can be determined, so that not only the page address information but also the position information of the target display content in the page can be stored in the generated target bookmark, and when a user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and then the previous browsing progress of the stored page is presented for the user.
Optionally, fig. 4 is a flowchart illustrating another bookmark saving method provided in an embodiment of the present invention, where the method may include:
s201: when the page saving is triggered, acquiring a page area limited by the staying position of a cursor in a page;
it should be noted that, in the embodiment of the present invention, a page area defined by a position where a cursor stays in a page may be obtained through a mouse trigger operation or a shortcut key trigger operation.
Optionally, in the embodiment of the present invention, when the cursor stays at the page tag position, the triggered page saving is limited to the entire page, not to a certain area in the page.
S202: acquiring display content contained in the page area and taking the display content as target display content;
s203: determining position information of the target display content in a page;
optionally, in the embodiment of the present invention, determining the position information of the target display content in the page includes: determining a horizontal coordinate of the target display content relative to a page and a vertical coordinate of the target display content relative to a page; and determining the position defined by the horizontal coordinate and the vertical coordinate as the position information of the target display content in the page.
Or; determining the browsing progress percentage of the target display content relative to the page, wherein the browsing progress percentage of the target display content relative to the page is the percentage of the ratio of the vertical coordinate of the target display content relative to the page to the total height of the page; and determining the browsing progress percentage of the target display content relative to the page as the position information of the target display content in the page.
S204: generating a target bookmark according to the position information and the page address information;
s205: and adding the target bookmark into a bookmark list for storage.
The technical scheme in the embodiment of the invention is that the generated target bookmark not only can store the page address information, but also can store the position information of the target display content in the page, when a user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and then the previous browsing progress of the stored page is presented for the user.
Optionally, fig. 5 is a flowchart illustrating another bookmark saving method provided in an embodiment of the present invention, where the method may include:
s301: when page saving is triggered, acquiring a page area limited by a page in a screen display range;
it should be noted that, in the embodiment of the present invention, the page saving may be triggered at the middle position of the page range displayed on the current display screen, and at this time, the page area displayed on the current display screen is obtained.
S302: acquiring display content contained in the page area and taking the display content as target display content;
it should be noted that, when the page saving is triggered, the page area displayed on the current display screen is defined in the embodiment of the present invention, and the target display content is the content displayed in the current whole display screen.
S303: determining position information of the target display content in a page;
optionally, in the embodiment of the present invention, determining the position information of the target display content in the page includes: determining a starting vertical coordinate and an ending vertical coordinate of the target display content relative to a page; and determining the positions defined by the starting vertical coordinate and the ending vertical coordinate as the position information of the target display content in the page, wherein the starting vertical coordinate and the ending vertical coordinate of the target display content relative to the page are the starting vertical coordinate and the ending vertical coordinate of the page area defined by the current whole display screen relative to the whole page area.
S304: generating a target bookmark according to the position information and the page address information;
s305: and adding the target bookmark into a bookmark list for storage.
According to the technical scheme, the page address information can be stored in the generated target bookmark, the position information of the target display content in the page can be stored, when the user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and the previous browsing progress of the stored page is presented for the user.
Optionally, fig. 6 is a flowchart illustrating another bookmark saving method provided in an embodiment of the present invention, where the method may include:
s401: when a preset operation triggering condition is met, determining at least one target display content in a page;
it should be noted that the embodiment of the present invention includes a case where the user triggers the target bookmark saving operation multiple times in the same page, that is, the user triggers the saving of multiple page browsing progresses in the same page.
Optionally, in the embodiment of the present invention, when the preset operation trigger condition is met, determining at least one target display content in the page includes: when the staying time of the cursor in the page exceeds the preset time, determining at least one target display content in the page limited by the staying position of the cursor; or when the staying time of the cursor in the page exceeds the preset time, determining at least one display content contained in the page limited by the staying position of the cursor; and determining the display content with the highest preset priority as target display content from the display contents.
S402: acquiring position information of each target display content in a page;
s403: respectively establishing a many-to-one mapping relation between each piece of position information and page address information to generate a plurality of target sub-bookmarks;
it should be noted that, because the embodiment of the present invention includes a case where the user triggers the target bookmark saving operation multiple times in the same page, the location information of the target display content acquired in the same page corresponds to the same page address information.
S404: sequencing the plurality of target sub-bookmarks according to a preset arrangement rule;
it should be noted that, in the embodiment of the present invention, the sorting may be performed according to the generation order of the target sub-bookmarks, or may be performed according to the position information of the target display content in the target sub-bookmarks, for example: the content is sorted according to the coordinate size of the target display content, sorted according to the browsing progress percentage of the target display content relative to the page, and the like.
S405: generating a target bookmark according to the sequenced target sub-bookmarks;
it should be noted that the page address information of the target sub-bookmarks included in each target bookmark is the same, that is, the target sub-bookmarks included in each target bookmark correspond to the same page.
S406: and adding the target bookmark into a bookmark list for storage.
In the embodiment of the invention, all the target sub-bookmarks can be displayed in the generated bookmark list according to the arrangement sequence of each target sub-bookmark, and the target sub-bookmarks can be selected in a pull-down list mode in the generated bookmark list.
According to the technical scheme, the page address information can be stored in the generated target bookmark, the position information of the target display content in the page can be stored, when the user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and the previous browsing progress of the stored page is presented for the user.
Optionally, fig. 7 is a flowchart illustrating a bookmark displaying method provided by an embodiment of the present invention, where the method may include:
s501: determining a bookmark to be displayed from a bookmark list based on the selection operation instruction;
and clicking bookmark title information displayed in the bookmark list by a cursor by a user to trigger a selection operation instruction of the bookmark.
S502: determining address information of a page to be displayed and position information of target display content in the page to be displayed based on the bookmark to be displayed;
it should be noted that, when the address information of the page to be displayed in the bookmark to be displayed corresponds to the location information of the plurality of bookmarks, here, the location information of the target display content in the page to be displayed in the page may be determined based on the bookmark to be displayed.
S503: performing page skipping based on the address information of the page to be displayed;
s504: and displaying the page to be displayed based on the position information of the target display content in the page.
It should be noted that, when jumping to a corresponding page based on the address information of the page to be displayed, the page is automatically scrolled to the page area where the target display content is located based on the position information of the target display content in the page.
It should be noted that, after the page to be displayed is displayed based on the position information of the target display content in the page, that is, after the page automatically scrolls to the page area where the target display content is located, the target display content may be marked in the displayed page to be displayed, specifically, a mark may be added at the position of the target display content, or a font of the target display content is highlighted, that is, the target display content is highlighted, or the font of the target display content is bolded, or the target display content is marked with a horizontal line, and the like.
Optionally, after the page is automatically scrolled to the page area where the target display content is located, a mark for marking progress, that is, a bookmark mark, may be added at a position of the page area, where the bookmark mark is set in a floating manner in the page area where the target display content is located, and the bookmark mark may be located at any position of the page area, and may be dragged arbitrarily by the user, where the bookmark mark may be a javascript script, a css style, or the like, and an embodiment of the present invention is not particularly limited.
Optionally, a close button is further disposed at the upper right corner of the bookmark mark, and a user can delete a target bookmark of a current page by clicking the close button and synchronously update the bookmark list.
It should be noted that, in the embodiment of the present invention, displaying the page to be displayed based on the position information of the target display content in the page specifically includes: determining each position information of the target display content in the page; the page to be displayed corresponding to each position information is sequentially displayed according to a preset display rule, specifically, the page to be displayed corresponding to each position information may be displayed and displayed according to a browsing mode of the page from top to bottom, the page to be displayed corresponding to each position information may also be sequentially displayed according to an adding sequence of each position information, the page to be displayed corresponding to each position information may also be displayed according to a coordinate sequence of each position information or a browsing progress percentage of each position information in the page, and the embodiment of the present invention is not particularly limited.
In the embodiment of the present invention, based on the position information of the target display content in the page, the process of displaying the page to be displayed further includes: determining each position information of the target display content in the page; displaying the page to be displayed corresponding to the preset position information, for example, displaying the page to be displayed corresponding to the position information marked in advance by the user, or displaying the page to be displayed corresponding to the position information with a high priority set in advance by the user, which is not particularly limited in the embodiment of the present invention.
According to the technical scheme, the page address information can be stored in the generated target bookmark, the position information of the target display content in the page can be stored, when the user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and the previous browsing progress of the stored page is presented for the user.
The method is described in detail in the embodiments disclosed above, and the method of the present invention can be implemented by various types of apparatuses, so that the present invention also discloses an apparatus, and the following detailed description will be given of specific embodiments.
Fig. 8 is a block diagram illustrating a bookmark saving apparatus according to an embodiment of the present invention, where the bookmark saving apparatus may include:
the position information determining unit 11 is configured to determine position information of target display content in a page when page saving is triggered;
a target bookmark generating unit 12, configured to generate a target bookmark according to the location information and the page address information;
and a target bookmark saving unit 13, configured to add the target bookmark to the bookmark list for saving.
An optional structure of the location information determining unit 11 provided in the embodiment of the present invention is that the location information determining unit 11 includes:
the cursor staying area acquiring unit is used for acquiring a page area limited by the staying position of the cursor in the page when the page storage is triggered;
a first target display content determining unit, configured to acquire display content included in the page area and use the display content as target display content;
and the first position information determining unit is used for determining the position information of the target display content in the page.
In another optional structure of the location information determining unit 11 provided in the embodiment of the present invention, the location information determining unit 11 includes:
the device comprises a screen limited area acquisition unit, a page display unit and a page display unit, wherein the screen limited area acquisition unit is used for acquiring a page area limited by a page in a screen display range when page saving is triggered;
a second target display content determining unit which acquires the display content contained in the page area and takes the display content as target display content;
and the second position information determining unit is used for determining the position information of the target display content in the page.
Another optional structure of the location information determining unit 11 provided in the embodiment of the present invention includes:
the third target display content determining unit is used for determining at least one target display content in the page when a preset operation triggering condition is met;
it should be noted that the third target display content determining unit specifically is: when the staying time of the cursor in the page exceeds the preset time, determining at least one target display content in the page limited by the staying position of the cursor; or; when the staying time of the cursor in the page exceeds the preset time, determining at least one display content contained in the page limited by the staying position of the cursor; determining display content with the highest preset priority as target display content from the display content;
and a third position information determination unit which acquires position information of each target display content in the page.
Another optional structure of the first position information determining unit 113 provided in the embodiment of the present invention includes:
a first coordinate determination unit for determining a horizontal coordinate of the target display content relative to a page and a vertical coordinate of the target display content relative to the page;
and the first determining unit is used for determining the position defined by the horizontal coordinate and the vertical coordinate as the position information of the target display content in the page.
Another optional structure of the first position information determining unit 113 provided in the embodiment of the present invention includes:
the browsing progress percentage determining unit is used for determining the browsing progress percentage of the target display content relative to the page, and the browsing progress percentage of the target display content relative to the page is the percentage of the ratio of the vertical coordinate of the target display content relative to the page to the total height of the page;
and the second determining unit is used for determining the browsing progress percentage of the target display content relative to the page as the position information of the target display content in the page.
Another optional structure of the second position information determining unit 213 provided in the embodiment of the present invention includes:
the second coordinate determination unit is used for determining a starting vertical coordinate and an ending vertical coordinate of the target display content relative to the page;
and the third determining unit is used for determining the position defined by the starting vertical coordinate and the ending vertical coordinate as the position information of the target display content in the page.
When it is determined that a plurality of position information of target display content in a page exists in the page, an optional structure of the target bookmark generating unit 12 includes:
the target sub-bookmark generating unit is used for establishing a many-to-one mapping relation between each piece of position information and the page address information respectively to generate a plurality of target sub-bookmarks;
the sorting unit is used for sorting the plurality of target sub-bookmarks according to a preset sorting rule;
and the target bookmark generating subunit is used for generating the target bookmark according to the sequenced target sub-bookmarks.
Further comprising:
the position updating information acquisition unit is used for acquiring target bookmark position updating information of the page;
and the position updating unit is used for updating the position of the target bookmark in the bookmark list according to the position updating information of the target bookmark.
Alternatively, the bookmark storage device may be a hardware device, and the modules and units described above may be disposed in the functional modules in the bookmark storage device. Fig. 9 is a block diagram showing a hardware configuration of a bookmark holding apparatus, and referring to fig. 9, the bookmark holding apparatus may include: a processor 1, a communication interface 2, a memory 3 and a communication bus 4; wherein, the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4; optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1 for executing a program; a memory 3 for storing a program; the program may include program code comprising computer operating instructions;
the processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention; the memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
Among them, the procedure can be specifically used for:
when page saving is triggered, determining position information of target display content in a page;
generating a target bookmark according to the position information and the page address information;
and adding the target bookmark into a bookmark list for storage.
Fig. 10 is a block diagram illustrating a bookmark displaying apparatus according to an embodiment of the present invention, where the bookmark displaying apparatus may include:
the bookmark to be displayed determining unit 21 is configured to determine a bookmark to be displayed from the bookmark list based on the selection operation instruction;
a fourth determining unit 22, configured to determine, based on the bookmark to be displayed, address information of a page to be displayed and position information of target display content in the page to be displayed in the page;
it should be noted that, when the address information of the page to be displayed in the bookmark to be displayed corresponds to the position information of a plurality of bookmarks, the fourth determining unit 22 is specifically configured to determine, based on the bookmark to be displayed, the address information of the page to be displayed and a plurality of position information of target display content in the page to be displayed;
the page jump unit 23 is configured to perform page jump based on the address information of the page to be displayed;
and the page display unit 24 is configured to display the page to be displayed based on the position information of the target display content in the page.
An alternative structure of the page display unit 24 includes:
the first page display subunit is used for determining each position information of the target display content in the page; sequentially displaying the page to be displayed corresponding to each position information according to a preset display rule;
or;
the second page display subunit is used for determining each position information of the target display content in the page; and displaying the page to be displayed corresponding to the preset position information.
Further comprising: and the marking unit is used for marking the target display content in the displayed page to be displayed.
It should be noted that, after the page to be displayed is displayed based on the position information of the target display content in the page, that is, after the page automatically scrolls to the page area where the target display content is located, the target display content may be marked in the displayed page by a marking unit, specifically, a mark may be added at the position of the target display content, or a font of the target display content is highlighted, that is, the target display content is highlighted, or the font of the target display content is bolded, or the target display content is marked with a horizontal line, and the like. Optionally, the bookmark display apparatus may be a hardware device, and the module described above may be a functional module disposed in the bookmark display apparatus. Fig. 11 is a block diagram showing a hardware configuration of a bookmark presenting apparatus, and referring to fig. 11, the bookmark presenting apparatus may include: a processor 1 ', a communication interface 2', a memory 3 'and a communication bus 4'; the processor 1 ', the communication interface 2' and the memory 3 'are communicated with each other through a communication bus 4'; optionally, the communication interface 2' may be an interface of a communication module, such as an interface of a GSM module;
a processor 1' for executing a program; a memory 3' for storing a program; the program may include program code comprising computer operating instructions;
the processor 1' may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention; the memory 3' may comprise a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
Among them, the procedure can be specifically used for:
determining a bookmark to be displayed from a bookmark list based on the selection operation instruction;
determining address information of a page to be displayed and position information of target display content in the page to be displayed based on the bookmark to be displayed;
performing page skipping based on the address information of the page to be displayed;
and displaying the page to be displayed based on the position information of the target display content in the page.
The embodiment of the invention also discloses a browser, which comprises: the bookmark storing device and the bookmark display device are as described above.
Optionally, the browser in the embodiment of the present invention is a Chrome browser, and when different Chrome browsers on different mobile terminals log in by using the same browser account, synchronization of the target bookmark can be achieved, and meanwhile, the position information of the target display content in the target bookmark in the page can be updated synchronously.
In summary, the following steps:
according to the technical scheme of the embodiment of the invention, the page address information can be stored in the generated target bookmark, the position information of the target display content in the page can be stored, when the user opens the corresponding page according to the target bookmark, the page can be automatically jumped to the position of the target display content according to the position information of the target display content in the page, and the last browsing progress of the stored page is presented for the user.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (21)

1. A bookmark saving method, comprising:
acquiring storage operation of a target bookmark which is triggered by a user in the same page for multiple times, and determining at least one target display content in the page when a preset operation triggering condition is met;
acquiring position information of each target display content in a page;
respectively establishing a many-to-one mapping relation between each piece of position information and page address information to generate a plurality of target sub-bookmarks;
sequencing according to the generation sequence of the target sub-bookmarks, or according to the coordinate size of the target display content, or according to the browsing progress percentage of the target display content relative to the page;
generating target bookmarks according to the position information and page address information of the sequenced target sub-bookmarks, wherein the page address information of the target sub-bookmarks contained in each target bookmark is the same;
and adding the target bookmark into a bookmark list for storage.
2. The method of claim 1,
the method further comprises the following steps:
when the page saving is triggered, acquiring a page area limited by the staying position of a cursor in a page;
acquiring display content contained in the page area and taking the display content as target display content;
and determining the position information of the target display content in the page.
3. The method of claim 1,
when the preset operation triggering condition is met, determining at least one target display content in the page, including:
when the staying time of the cursor in the page exceeds the preset time, determining at least one target display content in the page defined by the staying position of the cursor.
4. The method according to claim 1, wherein the determining at least one target display content in the page when a preset operation triggering condition is met comprises:
when the staying time of the cursor in the page exceeds the preset time, determining at least one display content contained in the page limited by the staying position of the cursor;
and determining the display content with the highest preset priority as target display content from the display contents.
5. The method of claim 2, wherein the determining the position information of the target display content in the page comprises:
determining a horizontal coordinate of the target display content relative to a page and a vertical coordinate of the target display content relative to a page;
and determining the position defined by the horizontal coordinate and the vertical coordinate as the position information of the target display content in the page.
6. The method of claim 2, wherein the determining the position information of the target display content in the page comprises:
determining the browsing progress percentage of the target display content relative to the page, wherein the browsing progress percentage of the target display content relative to the page is the percentage of the ratio of the vertical coordinate of the target display content relative to the page to the total height of the page;
and determining the browsing progress percentage of the target display content relative to the page as the position information of the target display content in the page.
7. The method of claim 1, further comprising:
acquiring target bookmark position updating information of a page;
and updating the position of the target bookmark in the bookmark list according to the position updating information of the target bookmark.
8. A bookmark display method is characterized by comprising the following steps:
determining a bookmark to be displayed from a bookmark list based on a selection operation instruction, wherein the generation process of the bookmark to be displayed comprises the following steps: acquiring storage operation of a target bookmark which is triggered by a user in the same page for multiple times, and determining at least one target display content in the page when a preset operation triggering condition is met; acquiring position information of each target display content in a page; respectively establishing a many-to-one mapping relation between each piece of position information and page address information to generate a plurality of sub bookmarks to be displayed; sequencing according to the generation sequence of the sub bookmarks to be displayed, or according to the coordinate size of the target display content, or according to the browsing progress percentage of the target display content relative to the page; generating bookmarks to be displayed according to the position information and page address information of the plurality of sequenced sub bookmarks to be displayed, wherein the page address information of the sub bookmarks to be displayed contained in each bookmark to be displayed is the same;
determining address information of a page to be displayed and position information of target display content in the page to be displayed based on the bookmark to be displayed;
performing page skipping based on the address information of the page to be displayed;
and displaying the page to be displayed based on the position information of the target display content in the page.
9. The method according to claim 8, wherein when the address information of the page to be displayed in the bookmark to be displayed corresponds to a plurality of bookmark location information,
the determining, based on the bookmark to be displayed, address information of a page to be displayed and position information of target display content in the page to be displayed includes:
and determining address information of the page to be displayed and a plurality of position information of target display content in the page to be displayed based on the bookmark to be displayed.
10. The method according to claim 8 or 9,
the displaying the page to be displayed based on the position information of the target display content in the page comprises the following steps:
determining each position information of the target display content in the page;
sequentially displaying the page to be displayed corresponding to each position information according to a preset display rule;
or;
determining each position information of the target display content in the page;
and displaying the page to be displayed corresponding to the preset position information.
11. The method according to claim 8, further comprising, after the presenting the page to be presented based on the position information of the target display content in the page, the steps of:
and marking the target display content in the displayed page to be displayed.
12. A bookmark holding apparatus, comprising:
the target bookmark generating unit is used for acquiring the storage operation of a target bookmark which is triggered by a user for multiple times in the same page, and determining at least one target display content in the page when a preset operation triggering condition is met; acquiring position information of each target display content in a page; respectively establishing a many-to-one mapping relation between each piece of position information and page address information to generate a plurality of target sub-bookmarks; sequencing according to the generation sequence of the target sub-bookmarks, or according to the coordinate size of the target display content, or according to the browsing progress percentage of the target display content relative to the page; generating target bookmarks according to the position information and page address information of the sequenced target sub-bookmarks, wherein the page address information of the target sub-bookmarks contained in each target bookmark is the same;
and the target bookmark storage unit is used for adding the target bookmark into a bookmark list for storage.
13. The apparatus of claim 12, wherein the location information determining unit comprises: the cursor staying area acquiring unit is used for acquiring a page area limited by the staying position of the cursor in the page when the page storage is triggered;
a first target display content determining unit, configured to acquire display content included in the page area and use the display content as target display content;
and the first position information determining unit is used for determining the position information of the target display content in the page.
14. The apparatus of claim 13, wherein the first location information determining unit comprises: a first coordinate determination unit for determining a horizontal coordinate of the target display content relative to a page and a vertical coordinate of the target display content relative to the page;
and the first determining unit is used for determining the position defined by the horizontal coordinate and the vertical coordinate as the position information of the target display content in the page.
15. The apparatus of claim 13, wherein the first location information determining unit comprises:
the browsing progress percentage determining unit is used for determining the browsing progress percentage of the target display content relative to the page, and the browsing progress percentage of the target display content relative to the page is the percentage of the ratio of the vertical coordinate of the target display content relative to the page to the total height of the page;
and the second determining unit is used for determining the browsing progress percentage of the target display content relative to the page as the position information of the target display content in the page.
16. The apparatus of claim 12, further comprising:
the position updating information acquisition unit is used for acquiring target bookmark position updating information of the page;
and the position updating unit is used for updating the position of the target bookmark in the bookmark list according to the position updating information of the target bookmark.
17. A bookmark display apparatus, comprising:
the bookmark to be displayed determining unit is used for determining the bookmark to be displayed from the bookmark list based on the selection operation instruction, and the generation process of the bookmark to be displayed comprises the following steps: acquiring storage operation of a target bookmark which is triggered by a user in the same page for multiple times, and determining at least one target display content in the page when a preset operation triggering condition is met; acquiring position information of each target display content in a page; respectively establishing a many-to-one mapping relation between each piece of position information and page address information to generate a plurality of sub bookmarks to be displayed; sequencing according to the generation sequence of the sub bookmarks to be displayed, or according to the coordinate size of the target display content, or according to the browsing progress percentage of the target display content relative to the page; generating bookmarks to be displayed according to the position information and page address information of the plurality of sequenced sub bookmarks to be displayed, wherein the page address information of the sub bookmarks to be displayed contained in each bookmark to be displayed is the same;
the fourth determining unit is used for determining the address information of the page to be displayed and the position information of target display content in the page to be displayed based on the bookmark to be displayed;
the page skipping unit is used for skipping pages based on the address information of the pages to be displayed;
and the page display unit is used for displaying the page to be displayed based on the position information of the target display content in the page.
18. The apparatus of claim 17, wherein the page presentation unit comprises:
the first page display subunit is used for determining each position information of the target display content in the page; sequentially displaying the page to be displayed corresponding to each position information according to a preset display rule;
or;
the second page display subunit is used for determining each position information of the target display content in the page; and displaying the page to be displayed corresponding to the preset position information.
19. The apparatus of claim 17, further comprising:
and the marking unit is used for marking the target display content in the displayed page to be displayed.
20. A browser, comprising:
the bookmark holding apparatus of any one of claim 12 through claim 16; and; the bookmark display apparatus of any of claims 17 through 19.
21. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program for executing the bookmark saving method of any one of claims 1 to 7, and/or the bookmark exhibiting method of any one of claims 8 to 11.
CN201610405422.6A 2016-06-08 2016-06-08 Bookmark storage and display method and device and browser Active CN106095917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610405422.6A CN106095917B (en) 2016-06-08 2016-06-08 Bookmark storage and display method and device and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610405422.6A CN106095917B (en) 2016-06-08 2016-06-08 Bookmark storage and display method and device and browser

Publications (2)

Publication Number Publication Date
CN106095917A CN106095917A (en) 2016-11-09
CN106095917B true CN106095917B (en) 2021-04-13

Family

ID=57228450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610405422.6A Active CN106095917B (en) 2016-06-08 2016-06-08 Bookmark storage and display method and device and browser

Country Status (1)

Country Link
CN (1) CN106095917B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020232B (en) * 2017-07-28 2021-07-23 车伯乐(北京)信息科技有限公司 Content browsing method, device, equipment and computer readable medium
CN110858113A (en) * 2018-08-22 2020-03-03 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment
CN110618848A (en) * 2018-12-25 2019-12-27 北京时光荏苒科技有限公司 Page display method, device, equipment and storage medium
CN111222060B (en) * 2019-12-31 2023-09-01 维沃移动通信有限公司 Information management method, electronic device and medium
CN113552980A (en) * 2020-04-24 2021-10-26 北京达佳互联信息技术有限公司 Information display method, information display device, electronic apparatus, and storage medium
CN113723049A (en) * 2020-05-25 2021-11-30 珠海金山办公软件有限公司 Document content interval adjusting method and device, electronic equipment and storage medium
CN112989766B (en) * 2021-05-11 2021-08-03 金锐同创(北京)科技股份有限公司 Method and device for processing document labeling information and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582731A (en) * 2008-05-15 2009-11-18 华为技术有限公司 Method and system for processing bookmark service and triggering, supplying, processing and control devices
CN101887339A (en) * 2009-05-14 2010-11-17 北京闻言科技有限公司 Technique for customizing bookmark name and editing bookmark on electronic book of mobile phone
CN103678406A (en) * 2012-09-24 2014-03-26 腾讯科技(深圳)有限公司 Method for sorting browser bookmarks and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6219679B1 (en) * 1998-03-18 2001-04-17 Nortel Networks Limited Enhanced user-interactive information content bookmarking
US8122370B2 (en) * 2006-11-27 2012-02-21 Designin Corporation Visual bookmarks for home and landscape design
CN101192231B (en) * 2006-11-27 2012-07-04 国际商业机器公司 Bookmark based on context
CN102594976B (en) * 2011-01-12 2013-12-25 联想(北京)有限公司 Display method and terminal
CN102385613A (en) * 2011-09-30 2012-03-21 广州市动景计算机科技有限公司 Web page positioning method and system
CN104123294B (en) * 2013-04-25 2019-02-01 腾讯科技(深圳)有限公司 Add the method and device of bookmark

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582731A (en) * 2008-05-15 2009-11-18 华为技术有限公司 Method and system for processing bookmark service and triggering, supplying, processing and control devices
CN101887339A (en) * 2009-05-14 2010-11-17 北京闻言科技有限公司 Technique for customizing bookmark name and editing bookmark on electronic book of mobile phone
CN103678406A (en) * 2012-09-24 2014-03-26 腾讯科技(深圳)有限公司 Method for sorting browser bookmarks and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Web信息抽取在书签***中的应用研究与实现;杨丁苗;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140715(第7期);I139-111 *

Also Published As

Publication number Publication date
CN106095917A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106095917B (en) Bookmark storage and display method and device and browser
CN106844635B (en) Method and device for editing elements in webpage
JP4475408B2 (en) Display device
CN108803974B (en) Page processing method and device and related equipment
CN106155654B (en) Method and device for shielding webpage operation and electronic equipment
CN108958612B (en) Method for controlling page sliding, method and system for controlling page, terminal device and medium
CN112130729A (en) Page processing method and device, computer equipment and storage medium
JP5612796B1 (en) Information processing apparatus, information processing method, and information processing program
EP2801920A1 (en) Method and apparatus for displaying web page
JP5398555B2 (en) Device, device control method
JP2015001902A (en) Electronic apparatus
JP6136568B2 (en) Information processing apparatus and input control program
CN112987992B (en) Navigation element display method and device and electronic equipment
CN104063118B (en) A kind of the click display methods and device of web page contents
CN109032476B (en) Method for displaying big data set in graphical user interface
CN113987106A (en) Electronic book bookmark adding method, electronic equipment and storage medium
CN106156292A (en) A kind of method for information display, equipment and server
JP2012181693A (en) Web page display control device and scroll control method
JP6386627B2 (en) Information processing apparatus, information processing method, and program
JP6520674B2 (en) Display system, display terminal, display method, and display program
CN110515618A (en) Page info typing optimization method, equipment, storage medium and device
US20140223274A1 (en) Information processing device and information processing method
CN106095734B (en) Text display method and device
CN110020318B (en) Processing method of keywords and extended reading behaviors, browser and electronic equipment
JP6166231B2 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant