A method for fast browsing pages with adaptive scrolling
Through the fast page browsing method of adaptive scrolling, users' low efficiency and poor interactivity when browsing long pages or big data tables are solved, and adaptive proportion display and precise table scrolling are realized, improving browsing efficiency and predictability.
Patent Information
- Application Number
- CN202411505311.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-10-28
AI Technical Summary
In the prior art, when browsing long pages or big data tables, users need to continuously scroll the mouse wheel, which is inefficient and has tired fingers, and the last position of the page stops unpredictable and has poor interactivity.
Provides an adaptive scrolling method for quick browsing of pages. By detecting page attribute content types (text, table or mix), the page is displayed in an adaptive proportional length every time it is scrolled. For tables, by identifying the maximum and minimum cell row heights, calculate the average row height to accurately display the scrolled content.
Adaptive page scrolling can be achieved without adjusting the system settings, adapting to changes in different content, improving browsing efficiency and finger comfort, and enhancing the predictability and human-computer interaction of page browsing.
Smart Images

Figure CN119025212B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer human-computer interaction, and in particular relates to a method for fast browsing pages with adaptive scrolling. Background Art
[0002] In the prior art, a browser is a client browsing program that can interpret, display and play hypertext information and various multimedia data formats sent from a server. More and more websites use waterfall streaming technology to load and present web pages. Waterfall streaming web page presentation refers to a browsing method in which the web page content is continuously loaded and displayed while the scroll bar is continuously pulled down without turning pages during browsing.
[0003] In many business scenarios, the webpage content browsed by users is very long. If the page exceeds the display area of the screen, if the user wants to quickly view the content below the current screen, when the user uses the mouse wheel to browse the long page and quickly turn the page, the user needs to scroll the wheel continuously, which is inefficient and causes finger fatigue. Or, if the user quickly and vigorously turns the mouse wheel to make it idle to achieve the page turning effect, the finger will be tired, and the predictability of where the page will end is greatly reduced, resulting in poor interaction.
[0004] In addition, when users use the mouse wheel to quickly browse large data tables, they need to scroll the wheel continuously, which is inefficient and causes finger fatigue. Or they use fast and strong scrolling of the mouse wheel to make it spin in vain to achieve the effect of turning pages. At the same time, the predictability of where the page will end up is greatly reduced, and the interaction is poor. Summary of the invention
[0005] The purpose of the present invention is to solve the above-mentioned problems existing in the prior art, and to provide a method for quick browsing of pages with adaptive scrolling, which specifically includes the following technical contents:
[0006] Get the current page attribute content and detect the page attribute content type. The specific page attribute content includes text type, table type and text and table mixed type;
[0007] The method of obtaining the attribute content of the current page is a prior art and will not be described in detail;
[0008] Furthermore, when the page attribute is text, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, each scroll of the page is displayed according to the adaptive proportional length of the current text page;
[0009] Furthermore, when the page attribute is a table, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, the page is displayed according to the adaptive proportional length of the current table page each time it is scrolled;
[0010] Furthermore, due to the presence of merged cells in the table, in order to more accurately display the table content after scrolling, it also includes identifying the maximum cell row height Hmax and the minimum cell row height Hmin in the current page, and obtaining the average row height Hmean. In the above formula, it is determined that the average row height Hmean is used instead of the row height To calculate the adaptive scrolling display length after each scroll .
[0011] Furthermore, when the page attributes include both a table and text, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, the corresponding content is displayed according to the adaptive scrolling display length of the current page each time it is scrolled;
[0012] Specifically, the proportion of the text content and the table content of the current page is obtained. When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is greater than 2, the adaptive scrolling forward page length corresponding to the text page attribute is displayed; when the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than or equal to 2 and greater than or equal to 0.5, the adaptive scrolling forward page length is obtained in a fused manner. ;
[0013] When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than 0.5, the table is displayed according to the adaptive scrolling page length corresponding to the page attributes of the table.
[0014] Those skilled in the art know that scrolling can be forward scrolling and backward scrolling. The principle of displaying the forward length of the page during forward scrolling and the backward length of the page during backward scrolling is the same as the above embodiment. The two scroll in opposite directions and the principle are the same, which will not be repeated here.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention enables the function of the page quick browsing method through adaptive scrolling, and does not need to set the scroll wheel speed in the system settings, that is, the page scrolling length can be adaptively calculated when browsing different page attribute contents; and it can adapt to the changes in scrolling when different contents appear at the same time. Through the adaptive calculation of the scrolling forward length, when browsing a page, the scrolling browsing page will not jump quickly due to the scrolling force and the duration of the scrolling, and the user cannot predict the current location, so that the user has predictability when browsing the page, and the human-computer interaction of the user browsing the page is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flow chart of a method for quickly browsing pages with adaptive scrolling for this application;
[0017] Figure 2This is a scrolling display interface in one of the embodiments of this application;
[0018] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0020] Example 1, see attached Figure 1 , a page quick browsing method with adaptive scrolling.
[0021] In a first aspect, a method for quick browsing of pages with adaptive scrolling is provided, and the method specifically includes the following technical contents:
[0022] Get the current page attribute content and detect the page attribute content type. The specific page attribute content includes text type, table type and text and table mixed type;
[0023] The method of obtaining the attribute content of the current page is a prior art and will not be described in detail;
[0024] Furthermore, when the page attribute is text, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, each scroll of the page is displayed according to the adaptive proportional length of the current text page;
[0025] In one embodiment, it is detected that when the user presses the shortcut key Fn, the set condition is met at this time, and according to the current page length, each time the mouse scrolls, the page advances an adaptive proportion of the current page length; in order to perform adaptive display adjustment according to the content size and the screen size, the present invention obtains the adaptive scrolling display length by the following calculation method:
[0026]
[0027] Among them, the current display screen size height , Total number of lines of text displayed , Line Height , Fixed page column height And adaptively adjust the scale parameters ,in The value is 0 <r<1;
[0028] Furthermore, when the page attribute is a table, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, the page is displayed according to the adaptive proportional length of the current table page each time it is scrolled;
[0029] In one embodiment, when the user presses the shortcut key Fn, according to the current page length, in order to perform adaptive display adjustment according to the content size and the screen size, the present invention obtains the adaptive scrolling display length by the following calculation method: :
[0030]
[0031] Among them, the current display screen size height , Total number of rows in the table , Line Height , Fixed page column height And adaptively adjust the scale parameter r to obtain, where The value is 0< <1;
[0032] Furthermore, due to the presence of merged cells in the table, in order to more accurately display the table content after scrolling, it also includes identifying the maximum cell row height Hmax and the minimum cell row height Hmin in the current page, and obtaining the average row height Hmean. In the above formula, it is determined that the average row height Hmean is used instead of the row height To calculate the adaptive scrolling display length after each scroll .
[0033] In this embodiment, see the attached Figure 2 In the example, the maximum cell row height Hmax = 64px, the minimum cell row height Hmin = 6px, and the average row height Hmean = 35px in the current page; when scrolling, Hmean can be used to adjust the page length adaptively. calculate.
[0034] Furthermore, when the page attributes include both a table and text, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, the corresponding content is displayed according to the adaptive scrolling display length of the current page each time it is scrolled;
[0035] In one embodiment, it is detected that when the user presses the shortcut key Fn, the set quick browsing condition is triggered; according to the current page length, each time the mouse scrolls the page, the current page is adaptively advanced in proportion to the page length;
[0036] Specifically, the proportion of the text content and the table content of the current page is obtained. When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is greater than 2, the adaptive scrolling forward page length corresponding to the text page attribute is displayed; when the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than or equal to 2 and greater than or equal to 0.5, the adaptive scrolling forward page length is obtained in a fused manner. :
[0037] ;
[0038] When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than 0.5, the table is displayed according to the adaptive scrolling page length corresponding to the page attributes of the table.
[0039] In the above-mentioned embodiments, those skilled in the art know that scrolling can be forward scrolling and backward scrolling. The principle of displaying the forward length of the page during forward scrolling and the backward length of the page during backward scrolling is the same as in the above-mentioned embodiments. The two scroll in opposite directions and the principle are the same, which will not be elaborated here.
[0040] Figure 3 The electronic device shown further includes a bus 103 and a communication interface 104 , and the processor 101 , the communication interface 104 and the memory 102 are connected via the bus 103 .
[0041] The memory 102 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The bus 103 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0042] The communication interface 104 is used to connect to at least one user terminal and other network units through a network interface, and send the encapsulated IPv4 message or IPv4 message to the user terminal through the network interface.
[0043] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 102, and the processor 101 reads the information in the memory 102 and completes the steps of the method of the above embodiment in combination with its hardware.
[0044] An embodiment of the present invention further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the gimbal attitude control method in the aforementioned embodiment are executed.
[0045] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0046] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0047] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0048] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present invention can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0049] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
[0050] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0051] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0053] In the description of the present invention, unless otherwise specified, the terms "upper", "lower", "left", "right", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.
[0054] Finally, it should be explained that the above technical solution is only one implementation method of the present invention. For those skilled in the art, it is easy to make various types of improvements or modifications based on the application methods and principles disclosed in the present invention, and it is not limited to the method described in the above specific implementation method of the present invention. Therefore, the method described above is only preferred and does not have a restrictive meaning.
Claims
1. A method for quick browsing of pages with adaptive scrolling, the method specifically includes the following technical contents: Get the current page attribute content and detect the page attribute content type. The specific page attribute content includes text type, table type and text and table mixed type; Furthermore, when the page attribute is text, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, each time the page is scrolled, it is displayed according to the adaptive proportional length of the current text page; each time the page is scrolled, it is displayed according to the adaptive proportional length of the current text page. Specifically, the adaptive scrolling display length is obtained by the following calculation method: in, Current display screen size height Z n 、Total number of lines of text displayed L n , row height H n 、Page fixed column height w n And adaptively adjust the scale parameter r n , where r n The value is 0 <r<1; Furthermore, when the page attribute is a table, it is detected whether the user triggers the set quick browsing condition. When the set condition is met, the page is displayed according to the adaptive proportional length of the current table page each time it is scrolled; Specifically, the adaptive scrolling display length D is obtained by the following calculation method. T : Among them, the current display screen size height Z T 、Total number of rows in the table L T , row height H T 、Page fixed column height w T And adaptively adjust the scale parameter r to obtain, where r T The value is 0 <r T <1.
2. The method according to claim 1, characterized in that: When there are merged cells in the table, in order to more accurately display the table content after scrolling, it also includes identifying the maximum cell row height Hmax and the minimum cell row height Hmin in the current page, and calculating the average row height Hmean. In the above formula, it is determined that the average row height Hmean is used instead of the row height H T To calculate the adaptive scrolling display length D after each scroll T .
3. The method according to claim 2, characterized in that: When the page attributes contain both tables and text, detect whether the user triggers the set quick browsing conditions. When the set conditions are met, the corresponding content is displayed according to the adaptive scrolling display length of the current page each time it is scrolled; Specifically, the proportion of the text content and the table content of the current page is obtained. When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is greater than 2, the adaptive scrolling forward page length corresponding to the text page attribute is displayed; when the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than or equal to 2 and greater than or equal to 0.5, the adaptive scrolling forward page length D is obtained in a fused manner. Tn ; When the ratio of the height of the entire page occupied by the text to the height of the page occupied by the table is less than 0.5, the table is displayed according to the adaptive scrolling page length corresponding to the page attributes of the table.
4. The method according to claim 3, characterized in that: The above-mentioned condition for detecting whether the user triggers the set quick browsing is when the user presses the shortcut key Fn.
5. The method according to claim 4, characterized in that: The above scrolling includes forward scrolling and backward scrolling.
6. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can implement the method described in any one of claims 1 to 5 when executing the program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the program, when executed by a processor, can implement the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Page content crawling method and device, storage medium and equipment
CN112579851A
Information display method and device and electronic equipment
CN113434138A