WO2016058460A1 - Browse switching processing method, device and system - Google Patents

Browse switching processing method, device and system Download PDF

Info

Publication number
WO2016058460A1
WO2016058460A1 PCT/CN2015/088622 CN2015088622W WO2016058460A1 WO 2016058460 A1 WO2016058460 A1 WO 2016058460A1 CN 2015088622 W CN2015088622 W CN 2015088622W WO 2016058460 A1 WO2016058460 A1 WO 2016058460A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
webpage
accessed
content
distribution information
Prior art date
Application number
PCT/CN2015/088622
Other languages
French (fr)
Chinese (zh)
Inventor
梁捷
胡强
Original Assignee
优视科技有限公司
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 优视科技有限公司 filed Critical 优视科技有限公司
Publication of WO2016058460A1 publication Critical patent/WO2016058460A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems

Definitions

  • the present invention relates to the field of mobile communication technologies, and in particular, to a browsing handover processing method, apparatus, and system.
  • the focus mode access refers to: directly searching and moving the system default focus through the up, down, left and right keys of the remote control on the page, and pressing the OK button to click; and the mouse mode access means: converting the remote control operation to An analog mouse operates on the interface and simulates mouse hovering, clicking, and other events.
  • the user usually manually selects the mode of accessing the webpage according to the type of the webpage.
  • the focus mode can be selected.
  • the layout of the webpage elements in the webpage is relatively regular, it is convenient to use the focus-focusing mode to access the webpage;
  • the traditional-type webpage the traditional webpage refers to the webpage element size does not satisfy the predetermined requirement or the size satisfies certain requirements but is distributed Irregular web pages
  • the distribution of webpage elements in the webpage is irregular, it is convenient to use the mouse mode to access the webpage.
  • the existing method for accessing a webpage through a television browser requires the user to actively select one of the modes according to the type of the webpage, and after selecting a mode, the webpage is always accessed according to the mode.
  • the content of each part of the webpage is still different.
  • the distribution of each webpage element is usually not fixed, and some webpage elements are more regular, but at the same time The webpage elements of the area are distributed irregularly.
  • the mode of accessing the webpage selected by the user may be more suitable for the access of the webpage as a whole, there is still a problem of inconvenient use when accessing certain content of the webpage.
  • the embodiment of the invention provides a browser switching processing method, device and system, which solve the problem of inconvenient use when webpage access is performed by a television browser in the prior art, and can make a webpage according to a webpage when accessing a webpage The difference in the content of each part, automatically switch the appropriate access mode, more convenient for users to use the TV browser.
  • a browsing switching processing method including: acquiring area distribution information of a webpage content to be accessed, wherein the area distribution information includes a first area and a second area, where the first area The size of the web page DIV element satisfies a predetermined size and is adjacent to each other, and the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen; determining the to-be-viewed according to the obtained area distribution information The area where the webpage content is located, when it is determined that the webpage content to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise, the mouse mode is switched.
  • the first area is a regular area in which webpage content is regularly distributed
  • the second area is an irregular area in which webpage content is irregularly distributed.
  • the obtaining the area distribution information of the content of the webpage to be accessed includes: obtaining the area distribution information of the webpage content to be accessed from the background server.
  • the obtaining the area distribution information of the content of the webpage to be accessed includes: acquiring the area distribution information of the webpage content to be accessed by injecting a script into the webpage.
  • the method further includes: sending the acquired area distribution information to the background server for storage.
  • the obtaining the area distribution information of the webpage content to be accessed by injecting a script into the webpage includes: injecting a script into the webpage to be accessed, and acquiring a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes the size of the webpage DIV element.
  • a relative position of the DIV element in the webpage obtaining an area in the webpage to be accessed that meets a preset condition, wherein the preset condition is that the size of the webpage DIV element satisfies a predetermined size and the position is adjacent; determining each of the regions that meet the preset condition Whether the length or the width is greater than or equal to a preset threshold of the length or width of the terminal screen, and if so, determining that the area is the first area, and if not, determining that the area is the second area.
  • the preset threshold of the length or width of the terminal screen is half of the length or width of the terminal screen.
  • a browsing switching processing apparatus including: an information acquiring unit, configured to acquire area distribution information of a webpage content to be accessed, wherein the area distribution information includes a first area and a second area, The size of the web page DIV element in the first area satisfies a predetermined size and the position is adjacent, and a preset threshold of the length or width of the first area is greater than or equal to the length or width of the terminal screen; the switching processing unit is configured to determine, according to the obtained area distribution information, an area where the content of the to-be-visited webpage is located, when determining When the content of the web page to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise it is switched to the mouse mode.
  • the information acquiring unit includes: a first obtaining unit, configured to acquire area distribution information of the webpage content to be accessed from the background server; and/or a second obtaining unit, configured to acquire a script by injecting a script into the webpage Access regional distribution information for web content.
  • the second obtaining unit includes: a feature acquiring unit, configured to inject a script into the webpage to be accessed, and acquire a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes a size of the webpage DIV element and a DIV element in the webpage
  • the area obtaining unit is configured to obtain an area of the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent; the area determining unit is configured to determine each of the matching Whether the length or width of the area of the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if so, determining that the area is the first area, and if not, the second area.
  • the second obtaining unit further includes: a sending unit, configured to send the acquired area distribution information to the background server for storage.
  • a browsing switching processing system including: a background server, configured to provide area distribution information of a webpage content to be accessed; and a browsing switching processing apparatus, configured to acquire, to the background server, a webpage content to be accessed Area distribution information, wherein the area distribution information includes a first area and a second area, the size of the web page DIV element in the first area satisfies a predetermined size and the positions are adjacent, and the length or width of the first area a preset threshold that is greater than or equal to the length or width of the terminal screen; determining, according to the area distribution information acquired by the information acquiring unit, an area where the content of the to-be-accessed webpage is located, and determining that the content of the webpage to be accessed is in the first When in one area, switch the remote control to focus mode, otherwise switch to mouse mode.
  • a computer readable medium having program code executable by a processor, the program code causing a processor to perform the following steps:
  • the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
  • the scheme of the present invention determines whether the webpage content in the webpage is regularly distributed or irregularly distributed by obtaining the area distribution information of the webpage content to be accessed, and the condition that the regularly distributed area satisfies the webpage in the area. If the size of the DIV element satisfies a predetermined size and the position is adjacent, and the length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen, then the focus mode and the mouse mode can be utilized according to the acquired area distribution information.
  • the respective advantages are that when the content of the webpage to be accessed is determined to be in a regularly distributed area, the remote controller is automatically switched to the focus mode, otherwise the mouse mode is automatically switched.
  • FIG. 1 is a first flow chart showing a browsing switching processing method of the present invention
  • FIG. 2 is a second schematic flowchart of a browsing switching processing method of the present invention.
  • FIG. 3 is a schematic diagram showing the distribution of DIV elements in a webpage in the browsing switching processing method of the present invention
  • FIG. 4 is a schematic diagram showing a first structure of a browsing switching processing apparatus of the present invention.
  • FIG. 5 is a schematic diagram showing a second structure of the browsing switching processing apparatus of the present invention.
  • Fig. 6 is a block diagram showing the structure of the browsing switching processing system of the present invention.
  • the invention provides a browsing switching processing method, which can automatically switch an appropriate browser access mode according to the difference of the contents of each part of the webpage when accessing the webpage, and is more convenient for the user to use the television browser.
  • the solution of the present invention analyzes the advantages and disadvantages of the existing two browser access modes: the focus mode is convenient and friendly to access the regularly distributed content in the webpage (for example, the navigation bar part), but there is no It is not very convenient and friendly to access the regularly distributed content.
  • the mouse mode accesses the irregularly distributed content part of the webpage, the movement of the mouse can well locate the irregular content, which is convenient and friendly, but It is not very convenient for the movement of regularly distributed content (such as the navigation bar part) in a web page. Therefore, the solution of the present invention makes full use of the advantages of the existing two browser access modes, and proposes a new processing method.
  • a mode is not fixed, but an area of content in the webpage is automatically analyzed, and when the webpage is accessed Automatically switch to the focus mode for the content part that is regularly distributed, and automatically switch to the mouse mode for the content area that is not regularly distributed, and it is more convenient to switch the access modes of the two browsers when browsing different content in the same webpage. Users can easily access the webpage using the remote control, greatly improving the user experience.
  • a webpage content is divided into different regions, including regularly distributed regular regions and irregularly distributed irregular regions.
  • the regularity area is mainly distributed by judging whether the DIV element of the content of the area (the element for providing structure and background for the block-level content in the HTML document) is regularly distributed (ie, the size of the page DIV element is The predetermined size is satisfied and the position is adjacent to each other, and whether the length or width of the area is greater than or equal to half of the length or width of the screen, and if the condition of yes is satisfied, it is judged as a regularity area, otherwise it is determined as an irregularity area.
  • the browser access mode is automatically switched to the focus mode when accessing the regular area, and the browser access mode is automatically switched to the mouse mode when accessed in the irregular area.
  • FIG. 1 is a schematic diagram showing a first flow of a browsing switching processing method of the present invention.
  • Step 101 Acquire area distribution information of the content of the webpage to be accessed, where the area distribution information includes a first area and a second area, where the size of the webpage DIV element in the first area meets a predetermined size and the position is adjacent, and The length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen.
  • the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen, that is,
  • the first area is a regular area in which webpage content is regularly distributed.
  • the second area is a preset threshold that does not satisfy the size of the web page DIV element and satisfies the predetermined size and the position is adjacent, and the length or width of the first area is greater than or equal to the preset screen length or width.
  • the area of the condition, that is, the second area is an irregular area in which the content of the web page is irregularly distributed.
  • the area distribution information for obtaining the content of the webpage to be accessed includes: obtaining the area distribution information of the webpage content to be accessed by injecting a script into the webpage, or acquiring the area distribution information of the webpage content to be accessed from the background server.
  • the method further includes: sending the acquired area distribution information to the background server for storage.
  • the storage record of the background server may be retrieved, so that the distribution information of the area may not be acquired according to script analysis of the webpage, and the browsing switch is improved. The speed of processing.
  • Step 102 Determine, according to the obtained area distribution information, an area where the content of the to-be-accessed webpage is located, and when it is determined that the content of the to-be-accessed webpage is in the first area, switch the remote controller to the focus-focusing mode, otherwise switch to Mouse mode.
  • the browser access mode used is the focus mode. If it is determined that the content of the webpage to be accessed is not in the first area, that is, the content of the currently accessed webpage is in the second area, the content of the webpage in the currently visited webpage area is irregularly distributed, and the mouse mode is irregular in the webpage. The distributed content is more convenient and friendly to access, so in this case, the browser access mode is mouse mode.
  • the solution of the present invention determines whether the content of the webpage in the access is regularly distributed or irregularly distributed by obtaining the area distribution information of the content of the webpage to be accessed, and the condition that the regularly distributed area satisfies is in the area.
  • the size of the web page DIV element satisfies a predetermined size and is adjacent to the location, and the area
  • the length or width is greater than or equal to a preset threshold of the length or width of the terminal screen.
  • a browser access mode is not fixed for a certain webpage access, but an appropriate browser access mode is automatically switched according to the difference of content distribution of each part of the webpage, which is more convenient for the user to use the television browser. It can solve the problem of inconvenient use in the prior art when accessing a webpage, and greatly improve the user experience.
  • FIG. 2 is a schematic diagram showing a second flow of the browsing switching processing method of the present invention.
  • the method of the present invention comprises the following steps:
  • Step 201 The browser sends the URL of the webpage to be accessed (Uniform Resoure Locator) to the background server, and the background server determines whether there is a regional distribution of the regularity area and the irregularity area of the webpage content.
  • the message if any, proceeds to step 202, and if not, proceeds to step 206.
  • the backend server can be used to store the distribution information of the regularity area and the irregularity area of the accessed webpage content.
  • Step 202 Obtain, from a background server, regional distribution information of a regularity area and an irregularity area of the content of the webpage to be accessed;
  • Step 203 determine whether the current access web page content is in a regular area, if it is in the regular area, proceeds to step 204, if in the irregular area, proceeds to step 205;
  • the distribution of DIV elements in a web page is a regular area of the content of the web page, and the others are irregular regions.
  • page access will automatically switch to focus mode; in the irregular area, page access will automatically switch to mouse mode.
  • Step 204 automatically switching to a focus mode
  • the default focus search and movement of the system is performed by operating the remote controller, and the browser access mode is convenient and friendly to access the regularly distributed content in the webpage.
  • Step 205 automatically switching to the mouse mode.
  • an analog mouse will appear on the interface.
  • the mouse will send a mouse over the page while the mouse is moving. Stop event, if the page element responds to the event, it will render the corresponding style effect (such as: when the mouse moves to a hyperlink, the element will appear underline, element color change, etc.), when pressing the remote control OK button, will A mouse click event is sent, and if the clicked page element can respond to the click event, a corresponding mouse click response is performed. That is to say, the movement of the mouse can well locate the irregular content, and the browser access mode is convenient and friendly when accessing the irregularly distributed content in the webpage.
  • the solution of the present invention can determine the current access position by grasping the position of the cursor, and automatically switch the browser access mode of the remote controller to the focus mode when the cursor is in the regular region; when the cursor is in the irregular region,
  • the browser access mode of the remote controller automatically switches to the mouse mode, and the combination of the above two browser access modes and automatic switching access can make the operation simpler and more convenient, and greatly improve the user experience of accessing the webpage.
  • step 206 the region distribution information of the regularity area and the irregularity area of the webpage content is obtained by injecting a script into the webpage, and the obtained area distribution information is sent to the background server for storage, so that the next time the same webpage is accessed, the information may be directly
  • the background server obtains the corresponding distribution information, and after acquiring the area distribution information, proceeds to step 203.
  • this step it is mainly determined by script injection whether the DIV elements of the content of the area are distributed regularly (whether the size of the web page DIV element satisfies a predetermined size and the position is adjacent), and whether the length or width of the area is greater than or equal to the screen. Half of the length or width, if it is consistent, the area is a regular area, otherwise it is an irregular area.
  • the following steps are used to determine the distribution information of the regular region and the irregular region of the webpage content:
  • the webpage structure features include: a size of the webpage DIV element and a relative position of the DIV element in the webpage.
  • the DIV element is an element used to provide structure and background for large chunks of content within an HTML (Hypertext Markup Language) document.
  • the corresponding DIV element is found from the webpage code according to the DIV tag, and the size of the webpage DIV element and the relative position of the DIV element in the webpage can be obtained according to the DIV property.
  • the preset condition is that the size of the web page DIV element satisfies a predetermined size and the positions are adjacent.
  • the predetermined size is configured for the background and can be changed according to actual needs.
  • screening it is possible to first screen whether the size of the DIV element satisfies a predetermined size, and compare the obtained DIV element size with a predetermined size, if the obtained DIV element size is large If it is equal to or smaller than the predetermined size, it is determined that the predetermined size is satisfied. If the predetermined size is satisfied, the relative position of the DIV element in the webpage is recorded, and then the adjacent DIV elements are filtered.
  • the area that does not meet the above preset conditions can be directly determined as an irregular area. It should also be noted that the eligible regions may be multiple regions that are dispersed.
  • the preset threshold of the length or width of the terminal screen may be set to be half of the length or width of the terminal screen, or may be set to other values according to experience.
  • the regular region and the irregular region in the webpage to be accessed can be analyzed.
  • the solution of the present invention makes full use of the advantages of the existing two browser access modes, and proposes a new processing method.
  • a mode is not fixed, but an area of content in the webpage is automatically analyzed, and when the webpage is accessed For the regularly distributed content part, it automatically switches to the focus mode, and automatically switches to the mouse mode for the content area that is not regularly distributed, and the user can flexibly switch the access modes of the two browsers when different content in the same webpage, which is more convenient for the user. Convenient access to web pages using the remote control greatly enhances the user experience.
  • the present invention provides a browsing switching processing apparatus and system.
  • FIG. 4 is a schematic diagram showing the first structure of the browsing switching processing apparatus of the present invention.
  • the browsing switching processing device 40 includes an information acquiring unit 41 and a switching processing unit 42.
  • the information acquiring unit 41 is configured to obtain area distribution information of the webpage content to be accessed, where the area distribution information includes a first area and a second area, where a size of the webpage DIV element in the first area satisfies a predetermined size and a position Adjacent, and the length or width of the first region is greater than or equal to a preset threshold of the length or width of the terminal screen.
  • the first area is a regular area in which webpage content is regularly distributed
  • the second area is an irregular area in which webpage content is irregularly distributed.
  • the preset threshold of the length or width of the terminal screen is set according to actual needs. It is usually set to half the length or width of the terminal screen.
  • the switching processing unit 42 is configured to determine, according to the area distribution information acquired by the information acquiring unit 41, an area where the content of the to-be-accessed webpage is located, and when it is determined that the content of the to-be-accessed webpage is in the first area, Switch to focus mode, otherwise switch to mouse mode.
  • the default focus search and movement of the system is performed by operating the remote controller; in the mouse mode, an analog mouse will appear on the interface, and the mouse can be flexibly controlled by controlling the up, down, left and right buttons of the remote controller. Displacement and speed.
  • the browsing switching processing apparatus disclosed in the present application automatically switches the remote controller to the focusing mode when determining that the content of the webpage to be accessed is in a regularly distributed area according to the acquired regional distribution information and utilizing the respective advantages of the focusing mode and the mouse mode. Otherwise, it automatically switches to the mouse mode, so that a browser access mode is not fixed for a certain webpage access, but automatically switches the appropriate browser access mode according to the difference of content distribution of each part of the webpage, which is more convenient for the user.
  • the use of a television browser can solve the problem of inconvenient use in the prior art when accessing a webpage, and greatly improve the user experience.
  • FIG. 5 is a schematic diagram showing the second structure of the browsing switching processing apparatus of the present invention.
  • the browsing switching processing device 40 includes an information acquiring unit 41 and a switching processing unit 42.
  • the information acquiring unit 41 in the browsing switching processing device 40 includes:
  • the first obtaining unit 411 is configured to obtain area distribution information of the webpage content to be accessed from the background server; and/or,
  • the second obtaining unit 412 is configured to obtain area distribution information of the webpage content to be accessed by injecting a script into the webpage.
  • the second obtaining unit 412 includes a feature acquiring unit 4121, an area obtaining unit 4122, and an area determining unit 4123.
  • the feature obtaining unit 4121 is configured to inject a script into the webpage to be accessed, and acquire a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes a size of the webpage DIV element and a relative position of the DIV element in the webpage;
  • the area obtaining unit 4122 is configured to obtain an area in the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent;
  • the DIV element size may be firstly determined to satisfy a predetermined size, and the obtained DIV element size is compared with a predetermined size. If the obtained DIV element size is greater than or equal to a predetermined size, it is determined that the pre-satisfaction is satisfied. The size is determined. If the predetermined size is satisfied, the relative position of the DIV element in the webpage is recorded, and then the adjacent DIV elements are filtered.
  • the area determining unit 4123 is configured to determine whether the length or width of each area that meets the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if yes, determine that the area is the first area, and if not, Second area.
  • the second obtaining unit 412 further includes: a sending unit 4124.
  • the sending unit 4124 is configured to send the determined area distribution information to the background server for storage.
  • Fig. 6 is a block diagram showing the structure of the browsing switching processing system of the present invention.
  • the browsing switching processing system 60 includes a background server 61 and a browsing switching processing device 40.
  • a background server 61 configured to provide area distribution information of the content of the webpage to be accessed
  • the browsing switching processing device 40 is configured to acquire, to the background server, area distribution information of the webpage content to be accessed, where the area distribution information includes a first area and a second area, and the size of the webpage DIV element in the first area a predetermined threshold that satisfies a predetermined size and is adjacent to each other, and the length or width of the first area is greater than or equal to a length or a width of the terminal screen; and determining a page to be accessed according to the area distribution information acquired by the information acquiring unit
  • the remote controller is switched to the focus mode, otherwise it is switched to the mouse mode.
  • the browsing switching processing device 40 has the structure shown in FIG. 4 and FIG. 5 above. For details, refer to the foregoing description, and details are not described herein again.
  • the respective advantages of the focus mode and the mouse mode can be utilized, and when the content of the webpage to be accessed is determined to be in a regularly distributed area, the remote controller is automatically switched to Focusing mode, otherwise it automatically switches to mouse mode, so that a browser access mode is not fixed for a certain webpage access, but automatically switches the appropriate browser access mode according to the difference of the distribution of content in each part of the webpage. It is more convenient for the user to use the TV browser, which can solve the problem of inconvenient use in the prior art when accessing the webpage, and greatly improve the user experience.
  • the present application also discloses a computer readable medium having program code executable by a processor, the program code causing the processor to perform the following steps:
  • the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
  • the remote controller when it is determined that the content of the webpage to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise, the mode is switched to the mouse mode.
  • the method according to the invention can also be implemented as a computer program executed by a processor (such as a CPU) in the terminal and stored in the memory of the terminal.
  • a processor such as a CPU
  • the above-described functions defined in the method of the present invention are performed when the computer program is executed by the processor.
  • the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer program for performing the functions described above in the method of the invention. .
  • the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed is a browse switching processing method. The method comprises: acquiring area distribution information about webpage contents to be accessed, wherein the area distribution information comprises a first area and a second area, sizes of webpage DIV elements in the first area satisfy a pre-determined size and the locations thereof are adjacent, and the length or width of the first area is greater than or equal to a pre-set threshold value of the length or width of a terminal screen; and according to the acquired area distribution information, when it is judged that the webpage contents to be accessed are in the first area, switching a remote control into a focus-searching mode; otherwise, switching into a mouse mode. According to the technical solution of the present invention, when accessing a webpage, an appropriate access mode can be automatically switched according to the difference of each part of contents in the webpage, which is more convenient for a user to use a television browser.

Description

浏览切换处理方法、装置及***Browsing switching processing method, device and system
本申请要求于2014年10月15日提交中国专利局、申请号为201410543364.4、发明名称为“浏览切换处理方法、装置及***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201410543364.4, entitled "Browse Switching Processing Method, Apparatus, and System", which is hereby incorporated by reference. in.
技术领域Technical field
本发明涉及移动通信技术领域,更为具体地,涉及一种浏览切换处理方法、装置及***。The present invention relates to the field of mobile communication technologies, and in particular, to a browsing handover processing method, apparatus, and system.
背景技术Background technique
目前通过电视浏览器(TV浏览器)在智能电视上访问网页主要有2种模式,一种是寻焦模式访问,另一种是鼠标模式访问。其中寻焦模式访问是指:在页面上直接通过遥控器的上下左右键进行***默认焦点的寻找和移动,按确定键进行点击;而鼠标模式访问是指:在页面上将遥控器操作转换为一个模拟鼠标在界面上进行操作,且模拟鼠标的悬停,点击等事件。Currently, there are two main modes for accessing web pages on a smart TV through a TV browser (TV browser), one is focus mode access, and the other is mouse mode access. The focus mode access refers to: directly searching and moving the system default focus through the up, down, left and right keys of the remote control on the page, and pressing the OK button to click; and the mouse mode access means: converting the remote control operation to An analog mouse operates on the interface and simulates mouse hovering, clicking, and other events.
用户通常根据网页的类型手动选择访问网页的模式,例如,对于定制型网页(定制型网页指的是网页元素尺寸满足一定要求,网页元素的布局规律的网页),可以选择使用寻焦模式,这种情况下,由于该网页中网页元素的布局较规律,采用寻焦模式访问网页较便利;对于传统型网页(传统型网页指的是网页元素尺寸不满足预定要求的或者尺寸满足一定要求但分布不规律的网页),可以选择使用鼠标模式,这种情况下,由于该网页中网页元素的分布不规律,因此,采用鼠标模式访问网页较便利。The user usually manually selects the mode of accessing the webpage according to the type of the webpage. For example, for a customized webpage (a customized webpage refers to a webpage whose element size meets certain requirements and the layout of the webpage element), the focus mode can be selected. In this case, since the layout of the webpage elements in the webpage is relatively regular, it is convenient to use the focus-focusing mode to access the webpage; for the traditional-type webpage (the traditional webpage refers to the webpage element size does not satisfy the predetermined requirement or the size satisfies certain requirements but is distributed Irregular web pages), you can choose to use the mouse mode. In this case, because the distribution of webpage elements in the webpage is irregular, it is convenient to use the mouse mode to access the webpage.
也就是说,现有通过电视浏览器进行网页访问的方法,需要用户根据网页类型主动选择其中一种模式使用,并在选择了一种模式后,将一直按照该模式访问网页。但是,在根据网页类型选择了一种模式进行网页访问后,该类型网页里的各部分内容还是有差异的,其中各网页元素的分布通常不是固定的,有些网页元素分布较规律,但同时有些区域的网页元素分布不规律,用户所选择的访问网页的模式虽然整体上可能比较适合该网页的访问,但是在网页的某些内容的访问时,依然存在使用不方便的问题。 That is to say, the existing method for accessing a webpage through a television browser requires the user to actively select one of the modes according to the type of the webpage, and after selecting a mode, the webpage is always accessed according to the mode. However, after selecting a mode for webpage access according to the type of webpage, the content of each part of the webpage is still different. The distribution of each webpage element is usually not fixed, and some webpage elements are more regular, but at the same time The webpage elements of the area are distributed irregularly. Although the mode of accessing the webpage selected by the user may be more suitable for the access of the webpage as a whole, there is still a problem of inconvenient use when accessing certain content of the webpage.
发明内容Summary of the invention
本发明实施例提出了一种浏览器切换处理方法、装置及***,以解决现有技术中通过电视浏览器进行网页访问时,存在的使用不方便的问题,能够使得在访问网页时,根据网页中各部分内容的差异性,自动切换合适的访问模式,更方便用户使用电视浏览器。The embodiment of the invention provides a browser switching processing method, device and system, which solve the problem of inconvenient use when webpage access is performed by a television browser in the prior art, and can make a webpage according to a webpage when accessing a webpage The difference in the content of each part, automatically switch the appropriate access mode, more convenient for users to use the TV browser.
根据本发明的一个方面,提供了一种浏览切换处理方法,包括:获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。According to an aspect of the present invention, a browsing switching processing method is provided, including: acquiring area distribution information of a webpage content to be accessed, wherein the area distribution information includes a first area and a second area, where the first area The size of the web page DIV element satisfies a predetermined size and is adjacent to each other, and the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen; determining the to-be-viewed according to the obtained area distribution information The area where the webpage content is located, when it is determined that the webpage content to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise, the mouse mode is switched.
优选的,所述第一区域为网页内容有规律分布的规律性区域,所述第二区域为网页内容无规律分布的非规律性区域。Preferably, the first area is a regular area in which webpage content is regularly distributed, and the second area is an irregular area in which webpage content is irregularly distributed.
优选的,所述获取待访问网页内容的区域分布信息包括:从后台服务器获取待访问网页内容的区域分布信息。Preferably, the obtaining the area distribution information of the content of the webpage to be accessed includes: obtaining the area distribution information of the webpage content to be accessed from the background server.
优选的,所述获取待访问网页内容的区域分布信息包括:通过向网页注入脚本的方式获取待访问网页内容的区域分布信息。Preferably, the obtaining the area distribution information of the content of the webpage to be accessed includes: acquiring the area distribution information of the webpage content to be accessed by injecting a script into the webpage.
优选的,所述通过向网页注入脚本的方式获取待访问网页内容的区域分布信息之后,还包括:将获取的区域分布信息发送给后台服务器存储。Preferably, after the area distribution information of the webpage content to be accessed is obtained by injecting a script into the webpage, the method further includes: sending the acquired area distribution information to the background server for storage.
优选的,所述通过向网页注入脚本的方式获取待访问网页内容的区域分布信息包括:向待访问网页注入脚本,获取待访问网页的网页结构特征,所述网页结构特征包括网页DIV元素的尺寸和DIV元素在网页中的相对位置;获取待访问网页中符合预设条件的区域,所述预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻;判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为第一区域,若否,则判断该区域为第二区域。Preferably, the obtaining the area distribution information of the webpage content to be accessed by injecting a script into the webpage includes: injecting a script into the webpage to be accessed, and acquiring a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes the size of the webpage DIV element. And a relative position of the DIV element in the webpage; obtaining an area in the webpage to be accessed that meets a preset condition, wherein the preset condition is that the size of the webpage DIV element satisfies a predetermined size and the position is adjacent; determining each of the regions that meet the preset condition Whether the length or the width is greater than or equal to a preset threshold of the length or width of the terminal screen, and if so, determining that the area is the first area, and if not, determining that the area is the second area.
优选的,所述终端屏幕长度或宽度的预设的阈值为终端屏幕长度或宽度的一半。Preferably, the preset threshold of the length or width of the terminal screen is half of the length or width of the terminal screen.
根据本发明的一个方面,提供了一种浏览切换处理装置,包括:信息获取单元,用于获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所 述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;切换处理单元,用于根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。According to an aspect of the present invention, a browsing switching processing apparatus is provided, including: an information acquiring unit, configured to acquire area distribution information of a webpage content to be accessed, wherein the area distribution information includes a first area and a second area, The size of the web page DIV element in the first area satisfies a predetermined size and the position is adjacent, and a preset threshold of the length or width of the first area is greater than or equal to the length or width of the terminal screen; the switching processing unit is configured to determine, according to the obtained area distribution information, an area where the content of the to-be-visited webpage is located, when determining When the content of the web page to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise it is switched to the mouse mode.
优选的,所述信息获取单元包括:第一获取单元,用于从后台服务器获取待访问网页内容的区域分布信息;和/或,第二获取单元,用于通过向网页注入脚本的方式获取待访问网页内容的区域分布信息。Preferably, the information acquiring unit includes: a first obtaining unit, configured to acquire area distribution information of the webpage content to be accessed from the background server; and/or a second obtaining unit, configured to acquire a script by injecting a script into the webpage Access regional distribution information for web content.
优选的,所述第二获取单元包括:特征获取单元,用于向待访问网页注入脚本,获取待访问网页的网页结构特征,所述网页结构特征包括网页DIV元素的尺寸和DIV元素在网页中的相对位置;区域获取单元,用于获取待访问网页中符合预设条件的区域,所述预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻;区域判断单元,用于判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为第一区域,若否,则为第二区域。Preferably, the second obtaining unit includes: a feature acquiring unit, configured to inject a script into the webpage to be accessed, and acquire a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes a size of the webpage DIV element and a DIV element in the webpage The area obtaining unit is configured to obtain an area of the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent; the area determining unit is configured to determine each of the matching Whether the length or width of the area of the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if so, determining that the area is the first area, and if not, the second area.
优选的,所述第二获取单元还包括:发送单元,用于将获取的区域分布信息发送给后台服务器存储。Preferably, the second obtaining unit further includes: a sending unit, configured to send the acquired area distribution information to the background server for storage.
根据本发明的一个方面,提供了一种浏览切换处理***,包括:后台服务器,用于提供待访问网页内容的区域分布信息;浏览切换处理装置,用于向所述后台服务器获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;根据所述信息获取单元获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。According to an aspect of the present invention, a browsing switching processing system is provided, including: a background server, configured to provide area distribution information of a webpage content to be accessed; and a browsing switching processing apparatus, configured to acquire, to the background server, a webpage content to be accessed Area distribution information, wherein the area distribution information includes a first area and a second area, the size of the web page DIV element in the first area satisfies a predetermined size and the positions are adjacent, and the length or width of the first area a preset threshold that is greater than or equal to the length or width of the terminal screen; determining, according to the area distribution information acquired by the information acquiring unit, an area where the content of the to-be-accessed webpage is located, and determining that the content of the webpage to be accessed is in the first When in one area, switch the remote control to focus mode, otherwise switch to mouse mode.
根据本发明的一个方面,提供一种具有处理器可执行的程序代码的计算机可读介质,所述程序代码使处理器执行下述步骤:According to an aspect of the invention, a computer readable medium having program code executable by a processor, the program code causing a processor to perform the following steps:
获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;Obtaining area distribution information of the content of the webpage to be accessed, wherein the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
根据所述信息获取单元获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式, 否则切换到鼠标模式。Determining, according to the area distribution information acquired by the information acquiring unit, an area where the content of the to-be-accessed webpage is located, and when determining that the content of the to-be-accessed webpage is in the first area, switching the remote controller to the focus-seeking mode, Otherwise switch to mouse mode.
利用上述方法,可以发现本发明方案通过获取待访问网页内容的区域分布信息来判断访问时所处的网页内容是有规律分布还是无规律分布,有规律分布的区域满足的条件是区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且该区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值,那么根据获取的区域分布信息,就可以利用寻焦模式和鼠标模式的各自优点,在判断出待访问网页内容处于有规律分布的区域时,将遥控器自动切换到寻焦模式,否则自动切换到鼠标模式。通过这样的处理,对于某个网页访问不固定采用一种模式,而是根据网页中各部分内容的差异性,自动切换合适的浏览器访问模式,就更方便用户使用电视浏览器,能够解决现有技术中在访问网页时存在的使用不方便的问题,大大提升用户体验。By using the above method, it can be found that the scheme of the present invention determines whether the webpage content in the webpage is regularly distributed or irregularly distributed by obtaining the area distribution information of the webpage content to be accessed, and the condition that the regularly distributed area satisfies the webpage in the area. If the size of the DIV element satisfies a predetermined size and the position is adjacent, and the length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen, then the focus mode and the mouse mode can be utilized according to the acquired area distribution information. The respective advantages are that when the content of the webpage to be accessed is determined to be in a regularly distributed area, the remote controller is automatically switched to the focus mode, otherwise the mouse mode is automatically switched. Through such processing, it is not fixed to adopt a mode for a certain webpage access, but automatically switches the appropriate browser access mode according to the difference of the contents of each part of the webpage, which is more convenient for the user to use the television browser, and can solve the present problem. There is a problem in the technology that is inconvenient to use when accessing a webpage, which greatly enhances the user experience.
为了实现上述以及相关目的,本发明的一个或多个方面包括后面将详细说明并在权利要求中特别指出的特征。下面的说明以及附图详细说明了本发明的某些示例性方面。然而,这些方面指示的仅仅是可使用本发明的原理的各种方式中的一些方式。此外,本发明旨在包括所有这些方面以及它们的等同物。In order to achieve the above and related ends, one or more aspects of the present invention include the features which are described in detail below and particularly pointed out in the claims. The following description and the annexed drawings set forth in detail However, these aspects are indicative of only some of the various ways in which the principles of the invention may be employed. Furthermore, the invention is intended to cover all such aspects and their equivalents.
附图说明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 embodiments or the description of the prior art will be briefly described below, and it will be apparent to those skilled in the art that In other words, other drawings can be obtained based on these drawings without paying for creative labor.
图1示出了本发明浏览切换处理方法的第一流程示意图;1 is a first flow chart showing a browsing switching processing method of the present invention;
图2示出了本发明浏览切换处理方法的第二流程示意图;2 is a second schematic flowchart of a browsing switching processing method of the present invention;
图3示出了本发明浏览切换处理方法中的一个网页中DIV元素的分布情况示意图;FIG. 3 is a schematic diagram showing the distribution of DIV elements in a webpage in the browsing switching processing method of the present invention; FIG.
图4示出了本发明浏览切换处理装置的第一结构示意图;4 is a schematic diagram showing a first structure of a browsing switching processing apparatus of the present invention;
图5示出了本发明浏览切换处理装置的第二结构示意图;FIG. 5 is a schematic diagram showing a second structure of the browsing switching processing apparatus of the present invention; FIG.
图6示出了示出了本发明浏览切换处理***的结构示意图。Fig. 6 is a block diagram showing the structure of the browsing switching processing system of the present invention.
在所有附图中相同的标号指示相似或相应的特征或功能。 The same reference numerals are used throughout the drawings to refer to the
具体实施方式detailed description
下面描述本公开的各个方面。应该明白的是,本文的教导可以以多种多样形式具体体现,并且在本文中公开的任何具体结构、功能或两者仅仅是代表性的。基于本文的教导,本领域技术人员应该明白的是,本文所公开的一个方面可以独立于任何其它方面实现,并且这些方面中的两个或多个方面可以按照各种方式组合。例如,可以使用本文所阐述的任何数目的方面,实现装置或实践方法。另外,可以使用其它结构、功能、或除了本文所阐述的一个或多个方面之外或不是本文所阐述的一个或多个方面的结构和功能,实现这种装置或实践这种方法。此外,本文所描述的任何方面可以包括权利要求的至少一个元素。Various aspects of the disclosure are described below. It should be understood that the teachings herein may be embodied in a variety of forms and that any specific structure, function, or both disclosed herein are merely representative. Based on the teachings herein, one of ordinary skill in the art will appreciate that one aspect disclosed herein can be implemented independently of any other aspects, and two or more of these aspects can be combined in various ways. For example, an apparatus or a method of practice can be implemented using any number of the aspects set forth herein. In addition, such an apparatus may be implemented or practiced using other structures, functions, or structures and functions in addition to or in one or more aspects than those set forth herein. Furthermore, any aspect described herein can include at least one element of the claims.
本发明提供一种浏览切换处理方法,能够在访问网页时,根据网页中各部分内容的差异性,自动切换合适的浏览器访问模式,更方便用户使用电视浏览器。The invention provides a browsing switching processing method, which can automatically switch an appropriate browser access mode according to the difference of the contents of each part of the webpage when accessing the webpage, and is more convenient for the user to use the television browser.
本发明方案对现有的两种浏览器访问模式的各自优缺点进行分析:寻焦模式对网页中有规律分布的内容进行访问比较方便和友好(如:导航栏部分),但对网页中无规律分布的内容进行访问就不是很方便和友好;而鼠标模式对网页中无规律分布的内容部分进行访问时,通过鼠标的移动能很好的定位到无规律的内容,比较方便和友好,但对于网页中有规律分布的内容(如:导航栏部分)的移动就不是很方便。因此,本发明方案充分利用现有的两种浏览器访问模式的优点,提出新的处理方法,对于某个网页访问不固定采用一种模式,而是自动分析网页中内容的区域,访问网页时对于有规律分布的内容部分自动切换到寻焦模式,对于没有规律分布的内容区域自动切换到鼠标模式,通过在同一网页中浏览不同内容时对这两种浏览器访问模式的灵活切换,更方便用户便捷使用遥控器访问网页,大大提升用户体验。The solution of the present invention analyzes the advantages and disadvantages of the existing two browser access modes: the focus mode is convenient and friendly to access the regularly distributed content in the webpage (for example, the navigation bar part), but there is no It is not very convenient and friendly to access the regularly distributed content. When the mouse mode accesses the irregularly distributed content part of the webpage, the movement of the mouse can well locate the irregular content, which is convenient and friendly, but It is not very convenient for the movement of regularly distributed content (such as the navigation bar part) in a web page. Therefore, the solution of the present invention makes full use of the advantages of the existing two browser access modes, and proposes a new processing method. For a certain webpage access, a mode is not fixed, but an area of content in the webpage is automatically analyzed, and when the webpage is accessed Automatically switch to the focus mode for the content part that is regularly distributed, and automatically switch to the mouse mode for the content area that is not regularly distributed, and it is more convenient to switch the access modes of the two browsers when browsing different content in the same webpage. Users can easily access the webpage using the remote control, greatly improving the user experience.
该发明方案中,将一个网页内容划分不同的区域,包括有规律分布的规律性区域和没有规律分布的非规律性区域。其中,规律性区域主要是通过判断该区域内容的DIV元素(用来为HTML文档内大块(block-level)的内容提供结构和背景的元素)是否分布有规律(即网页DIV元素的尺寸是否满足预定尺寸且位置相邻),且该区域的长或宽是否大于或等于屏幕长或宽的一半,如果都满足是的条件,则判断为规律性区域,否则判断为非规律性区域。同一网页访问过程中,在规律性区域访问时会自动将浏览器访问模式切换到寻焦模式,在非规律性区域访问时会自动将浏览器访问模式切换到鼠标模式。In the solution of the invention, a webpage content is divided into different regions, including regularly distributed regular regions and irregularly distributed irregular regions. Among them, the regularity area is mainly distributed by judging whether the DIV element of the content of the area (the element for providing structure and background for the block-level content in the HTML document) is regularly distributed (ie, the size of the page DIV element is The predetermined size is satisfied and the position is adjacent to each other, and whether the length or width of the area is greater than or equal to half of the length or width of the screen, and if the condition of yes is satisfied, it is judged as a regularity area, otherwise it is determined as an irregularity area. During the same web page access process, the browser access mode is automatically switched to the focus mode when accessing the regular area, and the browser access mode is automatically switched to the mouse mode when accessed in the irregular area.
下面将参照附图描述本发明的各个实施例。 Various embodiments of the present invention will be described below with reference to the drawings.
图1示出了本发明浏览切换处理方法的第一流程示意图。FIG. 1 is a schematic diagram showing a first flow of a browsing switching processing method of the present invention.
步骤101、获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值。Step 101: Acquire area distribution information of the content of the webpage to be accessed, where the area distribution information includes a first area and a second area, where the size of the webpage DIV element in the first area meets a predetermined size and the position is adjacent, and The length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen.
其中,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值,也就是说,所述第一区域为网页内容有规律分布的规律性区域。另外,所述第二区域为未同时满足网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值这两个条件的区域,也就是说,所述第二区域为网页内容无规律分布的非规律性区域。Wherein the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen, that is, The first area is a regular area in which webpage content is regularly distributed. In addition, the second area is a preset threshold that does not satisfy the size of the web page DIV element and satisfies the predetermined size and the position is adjacent, and the length or width of the first area is greater than or equal to the preset screen length or width. The area of the condition, that is, the second area is an irregular area in which the content of the web page is irregularly distributed.
其中,所述获取待访问网页内容的区域分布信息包括:通过向网页注入脚本的方式获取待访问网页内容的区域分布信息,或者,从后台服务器获取待访问网页内容的区域分布信息。The area distribution information for obtaining the content of the webpage to be accessed includes: obtaining the area distribution information of the webpage content to be accessed by injecting a script into the webpage, or acquiring the area distribution information of the webpage content to be accessed from the background server.
通过向网页注入脚本的方式获取待访问网页内容的区域分布信息之后,还包括:将获取的区域分布信息发送给后台服务器存储。这种情况下,当需要获取待访问网页内容的区域分布信息时,调取所述后台服务器的存储记录即可,从而不需要根据网页的脚本分析即可获取所述区域分布信息,提高浏览切换处理的速度。After the area distribution information of the webpage content to be accessed is obtained by injecting a script into the webpage, the method further includes: sending the acquired area distribution information to the background server for storage. In this case, when the area distribution information of the content of the webpage to be accessed needs to be obtained, the storage record of the background server may be retrieved, so that the distribution information of the area may not be acquired according to script analysis of the webpage, and the browsing switch is improved. The speed of processing.
步骤102、根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。Step 102: Determine, according to the obtained area distribution information, an area where the content of the to-be-accessed webpage is located, and when it is determined that the content of the to-be-accessed webpage is in the first area, switch the remote controller to the focus-focusing mode, otherwise switch to Mouse mode.
当判断出网页内容处于所述第一区域时,说明当前访问的网页区域为网页内容有规律分布的规律性区域,而寻焦模式对网页中有规律分布的内容进行访问比较方便和友好,因此这种情况下,采用的浏览器访问模式为寻焦模式。若判断得知待访问网页内容不处于所述第一区域,也就是说,当前待访问网页内容处于第二区域,当前访问的网页区域中网页内容分布不规律,而鼠标模式对网页中无规律分布的内容进行访问时比较方便和友好,因此这种情况下,采用的浏览器访问模式为鼠标模式。When it is determined that the content of the webpage is in the first area, it indicates that the currently visited webpage area is a regularity area in which the webpage content is regularly distributed, and the focus-seeking mode is convenient and friendly to access the regularly distributed content in the webpage, so In this case, the browser access mode used is the focus mode. If it is determined that the content of the webpage to be accessed is not in the first area, that is, the content of the currently accessed webpage is in the second area, the content of the webpage in the currently visited webpage area is irregularly distributed, and the mouse mode is irregular in the webpage. The distributed content is more convenient and friendly to access, so in this case, the browser access mode is mouse mode.
从该实施例方案可以发现,本发明方案通过获取待访问网页内容的区域分布信息来判断访问时所处于的网页内容是有规律分布还是无规律分布,有规律分布的区域满足的条件是区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且该区域 的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值,那么根据获取的区域分布信息,就可以利用寻焦模式和鼠标模式的各自优点,在判断出待访问网页内容处于有规律分布的区域时,将遥控器自动切换到寻焦模式,否则自动切换到鼠标模式。通过这样的处理,对于某个网页访问不固定采用一种浏览器访问模式,而是根据网页中各部分内容分布的差异性,自动切换合适的浏览器访问模式,就更方便用户使用电视浏览器,能够解决现有技术中在访问网页时存在的使用不方便的问题,大大提升用户体验。It can be found from the solution of the embodiment that the solution of the present invention determines whether the content of the webpage in the access is regularly distributed or irregularly distributed by obtaining the area distribution information of the content of the webpage to be accessed, and the condition that the regularly distributed area satisfies is in the area. The size of the web page DIV element satisfies a predetermined size and is adjacent to the location, and the area The length or width is greater than or equal to a preset threshold of the length or width of the terminal screen. Then, according to the acquired area distribution information, the respective advantages of the focus mode and the mouse mode can be utilized to determine that the content of the web page to be accessed is regularly distributed. In the area, the remote control is automatically switched to the focus mode, otherwise it automatically switches to the mouse mode. Through such processing, a browser access mode is not fixed for a certain webpage access, but an appropriate browser access mode is automatically switched according to the difference of content distribution of each part of the webpage, which is more convenient for the user to use the television browser. It can solve the problem of inconvenient use in the prior art when accessing a webpage, and greatly improve the user experience.
图2示出了本发明浏览切换处理方法的第二流程示意图。FIG. 2 is a schematic diagram showing a second flow of the browsing switching processing method of the present invention.
如图2所示,本发明的方法包括以下步骤:As shown in Figure 2, the method of the present invention comprises the following steps:
步骤201、浏览器将当前要访问的网页的URL(Uniform Resoure Locator:统一资源***)发给后台服务器,由后台服务器判断是否存有关于网页内容的规律性区域和非规律性区域的区域分布信息,若有,进入步骤202,若无则进入步骤206。Step 201: The browser sends the URL of the webpage to be accessed (Uniform Resoure Locator) to the background server, and the background server determines whether there is a regional distribution of the regularity area and the irregularity area of the webpage content. The message, if any, proceeds to step 202, and if not, proceeds to step 206.
其中,后台服务器可用于存储访问过的网页内容的规律性区域和非规律性区域的分布信息。The backend server can be used to store the distribution information of the regularity area and the irregularity area of the accessed webpage content.
步骤202、从后台服务器中获取待访问网页内容的规律性区域和非规律性区域的区域分布信息;Step 202: Obtain, from a background server, regional distribution information of a regularity area and an irregularity area of the content of the webpage to be accessed;
步骤203、根据区域分布信息,判断当前访问网页内容是否处于规律性区域,如果是处于规律性区域,进入步骤204,如果处于非规律性区域,进入步骤205; Step 203, according to the area distribution information, determine whether the current access web page content is in a regular area, if it is in the regular area, proceeds to step 204, if in the irregular area, proceeds to step 205;
如图3所示的一个网页中DIV元素的分布情况,上面的一个大圈及中间的一个大圈所圈起来的区域为该网页内容的规律性区域,其他都为非规律性区域。在规律性区域中,页面访问将会自动切换为寻焦模式;在非规律性区域,页面访问将会自动切换为鼠标模式。As shown in Figure 3, the distribution of DIV elements in a web page, the area enclosed by a large circle and a large circle in the middle is a regular area of the content of the web page, and the others are irregular regions. In the regular area, page access will automatically switch to focus mode; in the irregular area, page access will automatically switch to mouse mode.
步骤204,自动切换为寻焦模式; Step 204, automatically switching to a focus mode;
在寻焦模式时,是通过操作遥控器来进行***默认的焦点寻找和移动,该种浏览器访问模式对网页中有规律分布的内容进行访问比较方便和友好。In the focus mode, the default focus search and movement of the system is performed by operating the remote controller, and the browser access mode is convenient and friendly to access the regularly distributed content in the webpage.
步骤205、自动切换为鼠标模式。 Step 205, automatically switching to the mouse mode.
在鼠标模式时,界面上将会出现一个模拟鼠标,通过操控遥控器的上下左右按键,可以很灵活地控制鼠标的位移和速度。鼠标在移动过程中,会向页面发送鼠标悬 停事件,若页面元素响应该事件,将会呈现对应的样式效果(如:鼠标移动到一个超链接时,该元素会出现下划线、元素颜色变化等效果),当按遥控器确定键时,会发送鼠标点击事件,若被点击的页面元素可以响应点击事件,则进行对应的鼠标点击响应。也就是说,通过鼠标的移动能够很好的定位到无规律的内容,该种浏览器访问模式对网页中无规律分布的内容进行访问时比较方便和友好。In mouse mode, an analog mouse will appear on the interface. By manipulating the up, down, left and right buttons of the remote control, you can flexibly control the displacement and speed of the mouse. The mouse will send a mouse over the page while the mouse is moving. Stop event, if the page element responds to the event, it will render the corresponding style effect (such as: when the mouse moves to a hyperlink, the element will appear underline, element color change, etc.), when pressing the remote control OK button, will A mouse click event is sent, and if the clicked page element can respond to the click event, a corresponding mouse click response is performed. That is to say, the movement of the mouse can well locate the irregular content, and the browser access mode is convenient and friendly when accessing the irregularly distributed content in the webpage.
因此,本发明方案可以通过抓取光标的位置判断当前访问位置,当光标处于规律性区域时,将遥控器的浏览器访问模式自动切换到寻焦模式;当光标处于非规律性区域时,将遥控器的浏览器访问模式自动切换到鼠标模式,通过上述两种浏览器访问模式的结合及自动切换访问,可以使得操作更简单和方便,大大提高用户访问网页的体验度。Therefore, the solution of the present invention can determine the current access position by grasping the position of the cursor, and automatically switch the browser access mode of the remote controller to the focus mode when the cursor is in the regular region; when the cursor is in the irregular region, The browser access mode of the remote controller automatically switches to the mouse mode, and the combination of the above two browser access modes and automatic switching access can make the operation simpler and more convenient, and greatly improve the user experience of accessing the webpage.
步骤206、通过向网页注入脚本获取网页内容的规律性区域和非规律性区域的区域分布信息,并将获取的区域分布信息发送给后台服务器存储,以备下次访问同样的网页时可以直接从后台服务器获取对应的分布信息,并且,在获取所述区域分布信息后,进入步骤203。In step 206, the region distribution information of the regularity area and the irregularity area of the webpage content is obtained by injecting a script into the webpage, and the obtained area distribution information is sent to the background server for storage, so that the next time the same webpage is accessed, the information may be directly The background server obtains the corresponding distribution information, and after acquiring the area distribution information, proceeds to step 203.
该步骤中,主要是通过脚本注入的方式判断该区域内容的DIV元素是否分布有规律(网页DIV元素的尺寸是否满足预定尺寸且位置相邻),并且该区域的长或宽是否大于或等于屏幕长或宽的一半,若都符合则该区域为规律性区域,否则为非规律性区域。In this step, it is mainly determined by script injection whether the DIV elements of the content of the area are distributed regularly (whether the size of the web page DIV element satisfies a predetermined size and the position is adjacent), and whether the length or width of the area is greater than or equal to the screen. Half of the length or width, if it is consistent, the area is a regular area, otherwise it is an irregular area.
具体的,通过以下步骤实现网页内容的规律性区域和非规律性区域的分布信息的判断:Specifically, the following steps are used to determine the distribution information of the regular region and the irregular region of the webpage content:
1)向待访问网页注入脚本,获取待访问网页的网页结构特征。1) Inject a script into the webpage to be accessed, and obtain the webpage structure feature of the webpage to be accessed.
其中,网页结构特征包括:网页DIV元素的尺寸和DIV元素在网页中的相对位置。其中,DIV元素是用来为HTML(超文本标记语言)文档内大块的内容提供结构和背景的元素。具体的,根据DIV标签从网页代码中找到对应的DIV元素,根据DIV属性即可获取网页DIV元素的尺寸和DIV元素在网页中的相对位置。The webpage structure features include: a size of the webpage DIV element and a relative position of the DIV element in the webpage. Among them, the DIV element is an element used to provide structure and background for large chunks of content within an HTML (Hypertext Markup Language) document. Specifically, the corresponding DIV element is found from the webpage code according to the DIV tag, and the size of the webpage DIV element and the relative position of the DIV element in the webpage can be obtained according to the DIV property.
2)获取待访问网页中符合预设条件的区域。2) Obtain the area of the webpage to be accessed that meets the preset conditions.
其中,预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻。预定尺寸是为后台配置,可以根据实际需求进行改变。筛选时,可以先筛选DIV元素尺寸是否满足预定尺寸,将获取的DIV元素尺寸与预定尺寸比较,若获取的DIV元素尺寸大 于或者等于预定尺寸,则判定为满足预定尺寸,若满足预定尺寸,则记录该DIV元素在网页中的相对位置,然后再筛选位置相邻的DIV元素。The preset condition is that the size of the web page DIV element satisfies a predetermined size and the positions are adjacent. The predetermined size is configured for the background and can be changed according to actual needs. When screening, it is possible to first screen whether the size of the DIV element satisfies a predetermined size, and compare the obtained DIV element size with a predetermined size, if the obtained DIV element size is large If it is equal to or smaller than the predetermined size, it is determined that the predetermined size is satisfied. If the predetermined size is satisfied, the relative position of the DIV element in the webpage is recorded, and then the adjacent DIV elements are filtered.
需说明的是,如果不符合上述预设条件的区域可以直接判断为非规律性区域。还需说明的是,符合条件的区域可能是分散的多个区域。It should be noted that if the area that does not meet the above preset conditions can be directly determined as an irregular area. It should also be noted that the eligible regions may be multiple regions that are dispersed.
3)判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为规律性区域,即第一区域;若否,则判断该区域为非规律性区域,即第二区域。3) judging whether the length or width of each area meeting the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if so, determining that the area is a regular area, that is, the first area; if not, determining This area is an irregular area, that is, the second area.
其中所说的终端屏幕长度或宽度的预设的阈值可以设为终端屏幕长度或宽度的一半,也可以根据经验设为其他值。The preset threshold of the length or width of the terminal screen may be set to be half of the length or width of the terminal screen, or may be set to other values according to experience.
通过上述处理,就可以分析出待访问网页中的规律性区域和非规律性区域。Through the above processing, the regular region and the irregular region in the webpage to be accessed can be analyzed.
4)将获取的区域分布信息发送给后台服务器存储,以使后台服务器记录规律性区域的位置以及非规律性区域的位置。4) Send the acquired area distribution information to the background server storage, so that the background server records the location of the regular area and the location of the irregular area.
因此,本发明方案充分利用现有的两种浏览器访问模式的优点,提出新的处理方法,对于某个网页访问不固定采用一种模式,而是自动分析网页中内容的区域,访问网页时对于有规律分布的内容部分自动切换到寻焦模式,对于没有规律分布的内容区域自动切换到鼠标模式,通过在同一网页中不同内容时对这两种浏览器访问模式的灵活切换,更方便用户便捷使用遥控器访问网页,大大提升用户体验。Therefore, the solution of the present invention makes full use of the advantages of the existing two browser access modes, and proposes a new processing method. For a certain webpage access, a mode is not fixed, but an area of content in the webpage is automatically analyzed, and when the webpage is accessed For the regularly distributed content part, it automatically switches to the focus mode, and automatically switches to the mouse mode for the content area that is not regularly distributed, and the user can flexibly switch the access modes of the two browsers when different content in the same webpage, which is more convenient for the user. Convenient access to web pages using the remote control greatly enhances the user experience.
上述详细介绍了本发明的方法,相应的,本发明提供一种浏览切换处理装置及***。The above describes the method of the present invention in detail. Accordingly, the present invention provides a browsing switching processing apparatus and system.
图4示出了本发明浏览切换处理装置的第一结构示意图。FIG. 4 is a schematic diagram showing the first structure of the browsing switching processing apparatus of the present invention.
如图4所示,该浏览切换处理装置40包括:信息获取单元41和切换处理单元42。As shown in FIG. 4, the browsing switching processing device 40 includes an information acquiring unit 41 and a switching processing unit 42.
信息获取单元41,用于获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值。The information acquiring unit 41 is configured to obtain area distribution information of the webpage content to be accessed, where the area distribution information includes a first area and a second area, where a size of the webpage DIV element in the first area satisfies a predetermined size and a position Adjacent, and the length or width of the first region is greater than or equal to a preset threshold of the length or width of the terminal screen.
所述第一区域为网页内容有规律分布的规律性区域,所述第二区域为网页内容无规律分布的非规律性区域。所述终端屏幕长度或宽度的预设的阈值根据实际需求设 定,通常设置为终端屏幕长度或宽度的一半。The first area is a regular area in which webpage content is regularly distributed, and the second area is an irregular area in which webpage content is irregularly distributed. The preset threshold of the length or width of the terminal screen is set according to actual needs. It is usually set to half the length or width of the terminal screen.
切换处理单元42,用于根据所述信息获取单元41获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。The switching processing unit 42 is configured to determine, according to the area distribution information acquired by the information acquiring unit 41, an area where the content of the to-be-accessed webpage is located, and when it is determined that the content of the to-be-accessed webpage is in the first area, Switch to focus mode, otherwise switch to mouse mode.
在寻焦模式时,是通过操作遥控器来进行***默认的焦点寻找和移动;在鼠标模式时,界面上将会出现一个模拟鼠标,通过操控遥控器的上下左右按键,可以很灵活地控制鼠标的位移和速度。In the focus mode, the default focus search and movement of the system is performed by operating the remote controller; in the mouse mode, an analog mouse will appear on the interface, and the mouse can be flexibly controlled by controlling the up, down, left and right buttons of the remote controller. Displacement and speed.
本申请公开的浏览切换处理装置根据获取的区域分布信息,利用寻焦模式和鼠标模式的各自优点,在判断出待访问网页内容处于有规律分布的区域时,将遥控器自动切换到寻焦模式,否则自动切换到鼠标模式,从而对于某个网页访问不固定采用一种浏览器访问模式,而是根据网页中各部分内容分布的差异性,自动切换合适的浏览器访问模式,就更方便用户使用电视浏览器,能够解决现有技术中在访问网页时存在的使用不方便的问题,大大提升用户体验。The browsing switching processing apparatus disclosed in the present application automatically switches the remote controller to the focusing mode when determining that the content of the webpage to be accessed is in a regularly distributed area according to the acquired regional distribution information and utilizing the respective advantages of the focusing mode and the mouse mode. Otherwise, it automatically switches to the mouse mode, so that a browser access mode is not fixed for a certain webpage access, but automatically switches the appropriate browser access mode according to the difference of content distribution of each part of the webpage, which is more convenient for the user. The use of a television browser can solve the problem of inconvenient use in the prior art when accessing a webpage, and greatly improve the user experience.
图5示出了本发明浏览切换处理装置的第二结构示意图。FIG. 5 is a schematic diagram showing the second structure of the browsing switching processing apparatus of the present invention.
如图5所示,该浏览切换处理装置40包括:信息获取单元41和切换处理单元42。浏览切换处理装置40中的所述信息获取单元41包括:As shown in FIG. 5, the browsing switching processing device 40 includes an information acquiring unit 41 and a switching processing unit 42. The information acquiring unit 41 in the browsing switching processing device 40 includes:
第一获取单元411,用于从后台服务器获取待访问网页内容的区域分布信息;和/或,The first obtaining unit 411 is configured to obtain area distribution information of the webpage content to be accessed from the background server; and/or,
第二获取单元412,用于通过向网页注入脚本的方式获取待访问网页内容的区域分布信息。The second obtaining unit 412 is configured to obtain area distribution information of the webpage content to be accessed by injecting a script into the webpage.
所述第二获取单元412包括:特征获取单元4121、区域获取单元4122、区域判断单元4123。The second obtaining unit 412 includes a feature acquiring unit 4121, an area obtaining unit 4122, and an area determining unit 4123.
特征获取单元4121,用于向待访问网页注入脚本,获取待访问网页的网页结构特征,所述网页结构特征包括网页DIV元素的尺寸和DIV元素在网页中的相对位置;The feature obtaining unit 4121 is configured to inject a script into the webpage to be accessed, and acquire a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes a size of the webpage DIV element and a relative position of the DIV element in the webpage;
区域获取单元4122,用于获取待访问网页中符合预设条件的区域,所述预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻;The area obtaining unit 4122 is configured to obtain an area in the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent;
筛选时,可以先筛选DIV元素尺寸是否满足预定尺寸,将获取的DIV元素尺寸与预定尺寸比较,若获取的DIV元素尺寸大于或者等于预定尺寸,则判定为满足预 定尺寸,若满足预定尺寸,则记录该DIV元素在网页中的相对位置,然后再筛选位置相邻的DIV元素。When screening, the DIV element size may be firstly determined to satisfy a predetermined size, and the obtained DIV element size is compared with a predetermined size. If the obtained DIV element size is greater than or equal to a predetermined size, it is determined that the pre-satisfaction is satisfied. The size is determined. If the predetermined size is satisfied, the relative position of the DIV element in the webpage is recorded, and then the adjacent DIV elements are filtered.
区域判断单元4123,用于判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为第一区域,若否,则为第二区域。The area determining unit 4123 is configured to determine whether the length or width of each area that meets the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if yes, determine that the area is the first area, and if not, Second area.
所述第二获取单元412还包括:发送单元4124。The second obtaining unit 412 further includes: a sending unit 4124.
发送单元4124,用于将判断出的区域分布信息发送给后台服务器存储。The sending unit 4124 is configured to send the determined area distribution information to the background server for storage.
上述各单元的具体交互过程参见前面方法流程所描述,此处不再赘述。The specific interaction process of each unit mentioned above is described in the foregoing method flow, and is not described here.
图6示出了示出了本发明浏览切换处理***的结构示意图。Fig. 6 is a block diagram showing the structure of the browsing switching processing system of the present invention.
如图6所示,浏览切换处理***60包括:后台服务器61和浏览切换处理装置40。As shown in FIG. 6, the browsing switching processing system 60 includes a background server 61 and a browsing switching processing device 40.
后台服务器61,用于提供待访问网页内容的区域分布信息;a background server 61, configured to provide area distribution information of the content of the webpage to be accessed;
浏览切换处理装置40,用于向所述后台服务器获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;根据所述信息获取单元获取的区域分布信息,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。The browsing switching processing device 40 is configured to acquire, to the background server, area distribution information of the webpage content to be accessed, where the area distribution information includes a first area and a second area, and the size of the webpage DIV element in the first area a predetermined threshold that satisfies a predetermined size and is adjacent to each other, and the length or width of the first area is greater than or equal to a length or a width of the terminal screen; and determining a page to be accessed according to the area distribution information acquired by the information acquiring unit When the content is in the first area, the remote controller is switched to the focus mode, otherwise it is switched to the mouse mode.
所述浏览切换处理装置40具有上述图4和图5所示的结构,具体参见上述描述,此处不再赘述。The browsing switching processing device 40 has the structure shown in FIG. 4 and FIG. 5 above. For details, refer to the foregoing description, and details are not described herein again.
通过本申请公开的浏览切换处理***,能够根据获取的区域分布信息,利用寻焦模式和鼠标模式的各自优点,在判断出待访问网页内容处于有规律分布的区域时,将遥控器自动切换到寻焦模式,否则自动切换到鼠标模式,从而对于某个网页访问不固定采用一种浏览器访问模式,而是根据网页中各部分内容分布的差异性,自动切换合适的浏览器访问模式,就更方便用户使用电视浏览器,能够解决现有技术中在访问网页时存在的使用不方便的问题,大大提升用户体验。Through the browsing switching processing system disclosed in the present application, according to the acquired area distribution information, the respective advantages of the focus mode and the mouse mode can be utilized, and when the content of the webpage to be accessed is determined to be in a regularly distributed area, the remote controller is automatically switched to Focusing mode, otherwise it automatically switches to mouse mode, so that a browser access mode is not fixed for a certain webpage access, but automatically switches the appropriate browser access mode according to the difference of the distribution of content in each part of the webpage. It is more convenient for the user to use the TV browser, which can solve the problem of inconvenient use in the prior art when accessing the webpage, and greatly improve the user experience.
相应的,本申请还公开一种具有处理器可执行的程序代码的计算机可读介质,所述程序代码使处理器执行下述步骤: Accordingly, the present application also discloses a computer readable medium having program code executable by a processor, the program code causing the processor to perform the following steps:
获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;Obtaining area distribution information of the content of the webpage to be accessed, wherein the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
根据所述获取的区域分布信息,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。And according to the acquired area distribution information, when it is determined that the content of the webpage to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise, the mode is switched to the mouse mode.
此外,根据本发明的方法还可以被实现为由终端中的处理器(比如CPU)执行的计算机程序,并且存储在终端的存储器中。在该计算机程序被处理器执行时,执行本发明的方法中限定的上述功能。Furthermore, the method according to the invention can also be implemented as a computer program executed by a processor (such as a CPU) in the terminal and stored in the memory of the terminal. The above-described functions defined in the method of the present invention are performed when the computer program is executed by the processor.
此外,根据本发明的方法还可以实现为一种计算机程序产品,该计算机程序产品包括计算机可读介质,在该计算机可读介质上存储有用于执行本发明的方法中限定的上述功能的计算机程序。Furthermore, the method according to the invention may also be embodied as a computer program product comprising a computer readable medium on which is stored a computer program for performing the functions described above in the method of the invention. .
此外,上述方法步骤以及***单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储设备实现。Furthermore, the method steps and system units described above may also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the steps or unit functions described above.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个***的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本发明的范围。The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described. Whether such functionality is implemented as software or as hardware depends on the particular application and design constraints imposed on the overall system. A person skilled in the art can implement the described functions in various ways for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the invention.
尽管前面公开的内容示出了本发明的示例性实施例,但是应当注意,在不背离权利要求限定的本发明的范围的前提下,可以进行多种改变和修改。根据这里描述的发明实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明的元素可以以个体形式描述或要求,但是也可以设想多个,除非明确限制为单数。While the foregoing disclosure shows exemplary embodiments of the present invention, it should be understood that various changes and modifications may be made without departing from the scope of the invention. The functions, steps and/or actions of the method claims according to the embodiments of the invention described herein are not required to be performed in any particular order. In addition, although elements of the invention may be described or claimed in the form of an individual, many are contemplated, unless explicitly limited to the singular.
虽然如上参照图描述了根据本发明的各个实施例进行了描述,但是本领域技术人员应当理解,对上述本发明所提出的各个实施例,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。 Although the description has been made in accordance with the various embodiments of the present invention as described above, those skilled in the art should understand that the various embodiments of the present invention described above may also be made without departing from the scope of the present invention. Improvements. Therefore, the scope of the invention should be determined by the content of the appended claims.

Claims (13)

  1. 一种浏览切换处理方法,包括:A browsing switching processing method includes:
    获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;Obtaining area distribution information of the content of the webpage to be accessed, wherein the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
    根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。Determining, according to the obtained area distribution information, an area where the content of the to-be-visited webpage is located, and when determining that the content of the webpage to be accessed is in the first area, switching the remote controller to the focus mode, otherwise switching to the mouse mode.
  2. 根据权利要求1所述的浏览切换处理方法,所述第一区域为网页内容有规律分布的规律性区域,所述第二区域为网页内容无规律分布的非规律性区域。The browsing switching processing method according to claim 1, wherein the first area is a regularity area in which webpage content is regularly distributed, and the second area is an irregularity area in which webpage content is irregularly distributed.
  3. 根据权利要求1所述的浏览切换处理方法,所述获取待访问网页内容的区域分布信息包括:The browsing switching processing method according to claim 1, wherein the obtaining the area distribution information of the content of the webpage to be accessed comprises:
    从后台服务器获取待访问网页内容的区域分布信息。The area distribution information of the content of the webpage to be accessed is obtained from the background server.
  4. 根据权利要求1所述的浏览切换处理方法,所述获取待访问网页内容的区域分布信息包括:The browsing switching processing method according to claim 1, wherein the obtaining the area distribution information of the content of the webpage to be accessed comprises:
    通过向网页注入脚本的方式获取待访问网页内容的区域分布信息。The area distribution information of the content of the webpage to be accessed is obtained by injecting a script into the webpage.
  5. 根据权利要求4所述的浏览切换处理方法,所述通过向网页注入脚本的方式获取待访问网页内容的区域分布信息之后,还包括:The browsing switching processing method according to claim 4, after the method of injecting a script into the webpage to obtain the area distribution information of the webpage content to be accessed, the method further includes:
    将获取的区域分布信息发送给后台服务器存储。The obtained area distribution information is sent to the background server storage.
  6. 根据权利要求4所述的浏览切换处理方法,所述通过向网页注入脚本的方式获取待访问网页内容的区域分布信息包括:The browsing switching processing method according to claim 4, wherein the obtaining the area distribution information of the content of the webpage to be accessed by injecting a script into the webpage comprises:
    向待访问网页注入脚本,获取待访问网页的网页结构特征,所述网页结构特征包括网页DIV元素的尺寸和DIV元素在网页中的相对位置;Injecting a script into the webpage to be accessed, and obtaining a webpage structural feature of the webpage to be accessed, the webpage structural feature including a size of the webpage DIV element and a relative position of the DIV element in the webpage;
    获取待访问网页中符合预设条件的区域,所述预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻;Obtaining an area in the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent;
    判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为第一区域,若否,则判断该区域为第二区域。Determining whether the length or width of each area that meets the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen. If yes, determining that the area is the first area, and if not, determining that the area is the second area.
  7. 根据权利要求1至6任一项所述的浏览切换处理方法,所述终端屏幕长度或宽度的预设的阈值为终端屏幕长度或宽度的一半。 The browsing switching processing method according to any one of claims 1 to 6, wherein the preset threshold of the terminal screen length or width is half of the terminal screen length or width.
  8. 一种浏览切换处理装置,包括:A browsing switching processing device includes:
    信息获取单元,用于获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;An information acquiring unit, configured to acquire area distribution information of the content of the webpage to be accessed, where the area distribution information includes a first area and a second area, where a size of the webpage DIV element in the first area satisfies a predetermined size and is adjacent to the location And the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen;
    切换处理单元,用于根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。a switching processing unit, configured to determine, according to the obtained area distribution information, an area where the content of the to-be-accessed webpage is located, and when it is determined that the content of the to-be-accessed webpage is in the first area, switch the remote controller to the focus-seeking mode, Otherwise switch to mouse mode.
  9. 根据权利要求8所述的浏览切换处理装置,所述信息获取单元包括:The browsing switching processing apparatus according to claim 8, wherein the information acquiring unit comprises:
    第一获取单元,用于从后台服务器获取待访问网页内容的区域分布信息;和/或,a first obtaining unit, configured to obtain area distribution information of the content of the webpage to be accessed from the background server; and/or,
    第二获取单元,用于通过向网页注入脚本的方式获取待访问网页内容的区域分布信息。The second obtaining unit is configured to obtain area distribution information of the content of the webpage to be accessed by injecting a script into the webpage.
  10. 根据权利要求9所述的浏览切换处理装置,所述第二获取单元包括:The browsing switching processing apparatus according to claim 9, wherein the second obtaining unit comprises:
    特征获取单元,用于向待访问网页注入脚本,获取待访问网页的网页结构特征,所述网页结构特征包括网页DIV元素的尺寸和DIV元素在网页中的相对位置;a feature acquiring unit, configured to inject a script into the webpage to be accessed, and acquire a webpage structural feature of the webpage to be accessed, where the webpage structural feature includes a size of the webpage DIV element and a relative position of the DIV element in the webpage;
    区域获取单元,用于获取待访问网页中符合预设条件的区域,所述预设条件为网页DIV元素的尺寸满足预定尺寸且位置相邻;An area obtaining unit, configured to obtain an area in the webpage to be accessed that meets a preset condition, where the size of the webpage DIV element satisfies a predetermined size and the position is adjacent;
    区域判断单元,用于判断各个符合预设条件的区域的长度或宽度是否大于或等于终端屏幕长度或宽度的预设的阈值,若是,则判断该区域为第一区域,若否,则为第二区域。The area determining unit is configured to determine whether the length or width of each area that meets the preset condition is greater than or equal to a preset threshold of the length or width of the terminal screen, and if yes, determine that the area is the first area, and if not, the Two areas.
  11. 根据权利要求10所述的浏览切换处理装置,所述第二获取单元还包括:The browsing switching processing apparatus according to claim 10, wherein the second obtaining unit further comprises:
    发送单元,用于将获取的区域分布信息发送给后台服务器存储。The sending unit is configured to send the acquired area distribution information to the background server for storage.
  12. 一种浏览切换处理***,包括:A browsing switching processing system includes:
    后台服务器,用于提供待访问网页内容的区域分布信息;a background server, configured to provide area distribution information of the content of the webpage to be accessed;
    浏览切换处理装置,用于向所述后台服务器获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;根据所述信息获取单元获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。 And browsing the switching processing device, configured to acquire, by the background server, area distribution information of the webpage content to be accessed, where the area distribution information includes a first area and a second area, where a size of the webpage DIV element in the first area satisfies a predetermined size and a position adjacent to each other, and the length or width of the first area is greater than or equal to a preset threshold of the length or width of the terminal screen; determining the to-be-visited webpage according to the area distribution information acquired by the information acquiring unit The area where the content is located, when it is determined that the content of the webpage to be accessed is in the first area, the remote controller is switched to the focus mode, otherwise, the mode is switched to the mouse mode.
  13. 一种具有处理器可执行的程序代码的计算机可读介质,其特征在于,所述程序代码使处理器执行下述步骤:A computer readable medium having processor-executable program code, the program code causing a processor to perform the steps of:
    获取待访问网页内容的区域分布信息,其中所述区域分布信息包括第一区域和第二区域,所述第一区域中的网页DIV元素的尺寸满足预定尺寸且位置相邻,并且所述第一区域的长度或宽度大于或等于终端屏幕长度或宽度的预设的阈值;Obtaining area distribution information of the content of the webpage to be accessed, wherein the area distribution information includes a first area and a second area, the size of the webpage DIV element in the first area satisfies a predetermined size and the position is adjacent, and the first The length or width of the area is greater than or equal to a preset threshold of the length or width of the terminal screen;
    根据获取的所述区域分布信息判断所述待访问网页内容所处的区域,当判断出待访问网页内容处于所述第一区域时,将遥控器切换到寻焦模式,否则切换到鼠标模式。 Determining, according to the obtained area distribution information, an area where the content of the to-be-visited webpage is located, and when determining that the content of the webpage to be accessed is in the first area, switching the remote controller to the focus mode, otherwise switching to the mouse mode.
PCT/CN2015/088622 2014-10-15 2015-08-31 Browse switching processing method, device and system WO2016058460A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410543364.4 2014-10-15
CN201410543364.4A CN105578294B (en) 2014-10-15 2014-10-15 Browse switching handling method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2016058460A1 true WO2016058460A1 (en) 2016-04-21

Family

ID=55746108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088622 WO2016058460A1 (en) 2014-10-15 2015-08-31 Browse switching processing method, device and system

Country Status (2)

Country Link
CN (1) CN105578294B (en)
WO (1) WO2016058460A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040275A (en) * 2017-12-29 2018-05-15 福州福大海矽微电子有限公司 A kind of method and terminal of remote controller operation web browser
CN113613052A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for switching focuses of Web pages

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153455B (en) * 2016-12-05 2021-02-05 珠海金山办公软件有限公司 Interface switching method and device
CN111277907A (en) * 2020-01-16 2020-06-12 海信视像科技股份有限公司 Display device and presentation method of user interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546822A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Instruction mode switchover method and device based on intelligent television interface
CN103561307A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Indication mode switching method and device based on browser
CN103561338A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Instruction mode switching method and device based on intelligent television interface
US8839117B1 (en) * 2008-08-25 2014-09-16 Nintendo Of America Inc. Internet browser

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003253436A1 (en) * 2002-08-29 2004-03-19 Matsushita Electric Industrial Co., Ltd. Content processing apparatus and content display apparatus based on location information
CN101097497A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Method for quick moving cursor on screen
JP2008102734A (en) * 2006-10-19 2008-05-01 Kinpo Electronics (Shanghai) Co Ltd Method for window overlapping operation of browser by remote controller
CN101702160B (en) * 2009-10-28 2013-04-17 深圳市龙视传媒有限公司 Method for acquiring internet subject information and device thereof
CN102314438A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for switching application scene modes according to scenes browsed by user and equipment
CN103197770B (en) * 2013-04-01 2016-08-31 深圳数字电视国家工程实验室股份有限公司 A kind of method and device of TV remote controller analog mouse operation
CN103561347A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Shortcut menu generation method and device based on browser
CN103699304B (en) * 2013-12-30 2018-01-12 深圳Tcl新技术有限公司 The switching method and system of mode control terminal
CN105338414A (en) * 2014-06-03 2016-02-17 广州市动景计算机科技有限公司 Control method and apparatus of television browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8839117B1 (en) * 2008-08-25 2014-09-16 Nintendo Of America Inc. Internet browser
CN103546822A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Instruction mode switchover method and device based on intelligent television interface
CN103561307A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Indication mode switching method and device based on browser
CN103561338A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Instruction mode switching method and device based on intelligent television interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040275A (en) * 2017-12-29 2018-05-15 福州福大海矽微电子有限公司 A kind of method and terminal of remote controller operation web browser
CN113613052A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Method, device and equipment for switching focuses of Web pages

Also Published As

Publication number Publication date
CN105578294A (en) 2016-05-11
CN105578294B (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US10397305B1 (en) Custom back-end functionality in an online website building environment
US9195750B2 (en) Remote browsing and searching
US20110022957A1 (en) Web browsing method and web browsing device
US11294548B2 (en) Video content play
WO2017215175A1 (en) Page processing method and device, terminal, and server
WO2016058460A1 (en) Browse switching processing method, device and system
US9336321B1 (en) Remote browsing and searching
WO2014032579A1 (en) A method and apparatus for displaying information
US10180991B2 (en) Information processing apparatus and information processing method for displaying transition state of web pages
CN103561338B (en) Instruction mode switching method and device based on intelligent television interface
CN104484193A (en) Method and device for rapidly starting application program
US20140075290A1 (en) Window switching method and apparatus
CN112632322A (en) Video switching method and device, electronic equipment and storage medium
CN105095374A (en) Method and device for browsing mobile terminal news
CN104008114A (en) WAP (wireless application protocol) browser page jumping method and device
US9400850B2 (en) Systems and methods for providing a tailored user interface associated with a web page
US9092405B1 (en) Remote browsing and searching
WO2017041632A1 (en) Method and apparatus for transferring data in display page
CN109600644B (en) Method for remotely controlling television browser, related equipment and computer program product
CN103259772A (en) Method and device of website address access control
EP2801920A1 (en) Method and apparatus for displaying web page
WO2015184749A1 (en) Television browser control method and device
CN104268246A (en) Method for generating instruction script for visiting websites and visiting method and device
WO2015007193A1 (en) Method and apparatus for hierarchical data reading
CN108376173A (en) Display methods, device and the terminal device of enterprise portal webpage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15850394

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15850394

Country of ref document: EP

Kind code of ref document: A1