CN101888530A - Embedded browser-based HTML label and attribute expansion method - Google Patents

Embedded browser-based HTML label and attribute expansion method Download PDF

Info

Publication number
CN101888530A
CN101888530A CN 201010215086 CN201010215086A CN101888530A CN 101888530 A CN101888530 A CN 101888530A CN 201010215086 CN201010215086 CN 201010215086 CN 201010215086 A CN201010215086 A CN 201010215086A CN 101888530 A CN101888530 A CN 101888530A
Authority
CN
China
Prior art keywords
label
attribute
link
html
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010215086
Other languages
Chinese (zh)
Inventor
罗笑南
赵丹丹
高怀恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGDONG GUANGLIAN ELECTRONIC CO Ltd
Sun Yat Sen University
Original Assignee
GUANGDONG GUANGLIAN ELECTRONIC CO Ltd
Sun Yat Sen University
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 GUANGDONG GUANGLIAN ELECTRONIC CO Ltd, Sun Yat Sen University filed Critical GUANGDONG GUANGLIAN ELECTRONIC CO Ltd
Priority to CN 201010215086 priority Critical patent/CN101888530A/en
Publication of CN101888530A publication Critical patent/CN101888530A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an embedded browser-based HTML label and an attribute expansion method. The method comprises the following steps of: defining a private label and the private fields of the private label so as to realize webpage embedded Video-On-Demand VOD and video playing; expanding the label attributes defined by a standard HTML specification to other HTML labels so as to realize contour display of webpages and hyperlink focus color transform; defining private attribute values in the attributes of the HTML labels so as to make the webpage execute the set operation; and taking a div label as an ID-tag, independently extracting a string contained in each group of (div) and (/div), using the string as the first string, and extracting strings among all the groups to form a string list. Through the invention, an embedded browser can realize the display effect and operation effect of complicated webpages on the basis of not increasing system memory consumption or reducing system performance, and provides support for digital television specific application.

Description

A kind of html tag and attribute expansion method based on built-in browser
Technical field
The present invention relates to digital home and field of computer technology, relate in particular to a kind of html tag and attribute expansion method based on built-in browser.
Background technology
In the existing Digital Television based on the valued added applications of web, generally HTML, the CSS standards such as (CSS are single) by standard realizes display effect of network page such as layering, the conversion of hyperlink focus color, by web page operation effects such as JavaScript realize that window is hidden, closed.
But existing standard has certain limitation:
(1) only the HTML standard by standard can't realize above-mentioned web application;
(2) the peculiar application of Digital Television does not still have the support of HTML standard;
(3) support standards such as CSS, JavaScript, Dom, will greatly improve the complexity of digital TV terminal built-in browser software, and then increase substantially the hardware and software cost of set-top box.
Summary of the invention
The objective of the invention is to address the above problem, a kind of html tag and attribute expansion method based on built-in browser is provided, make the digital TV terminal built-in browser not increasing Installed System Memory consumption, not reduce on the basis of systematic function, realize complicated display effect of network page and operating effect, and distinctive application provides support to Digital Television.
Technical scheme provided by the invention is as follows:
The invention provides a kind of html tag and attribute expansion method, comprising based on built-in browser:
Define privately owned label and define the privately owned attribute of this privately owned label, to realize webpage embedded video request program VOD and video playback;
The tag attributes of standard HTML normalized definition is extended to other html tags, with layering demonstration, the hyperlink focus color conversion that realizes webpage;
By the privately owned property value of definition in the attribute of html tag, so that webpage is carried out the fixed operation of section;
With the div label is the sign label, with each group<div〉and</div in the character string that comprises extract separately as first character string, and by that analogy the character string between all is extracted, form character string and tabulate.
Preferably, the privately owned label of described definition also defines the privately owned attribute of this privately owned label, comprises to realize webpage embedded video request program VOD and video playback:
Definition<VOD 〉,<VODPARA〉label, realize the broadcast of video-on-demand applications in the digital television application and the setting of Control Parameter, wherein,<VOD〉label defined the pattern that VOD plays,<VODPARA〉label defined the video parameter that VOD plays.
Preferably, described tag attributes with standard HTML normalized definition extends to other html tags, comprises with layering demonstration, the hyperlink focus color conversion that realizes webpage:
With label<body〉in link, alink attribute extend to<a in the label, make each<a the literal link in the label sets the color of literal link separately.
Preferably, described each<a literal link in the label color of setting the literal link separately comprises:
The color of first link is<body〉in the color value of definition, the color of second and the 3rd link is<a〉each self-defining color value in the label.
Preferably, described by the privately owned property value of definition in the attribute of html tag, so that carrying out setting operation, webpage comprises:
With label<a 〉,<area in the fragment value defined of href attribute be specific sign so that it carries out the particular Web page operation, realize carrying out the effect of script.
Preferably, described execution particular Web page operation comprises:
During link in user's webpage clicking, first link is carried out and is withdrawed from browser operation, and second link carried out and hidden browser operation, and historical return is carried out in the 3rd link.
Technique scheme as can be seen, the present invention contrasts prior art following beneficial effect:
Method of the present invention is by to the simple extension of html tag and attribute, web page operation effect such as realize that webpage effect such as layering, hyperlink focus color conversion and window are hidden, closed.The present invention is less demanding to set top box embedded browser, need not to support standards such as CSS, DOM, JavaScript.The present invention is not high to the STB terminal hardware requirement, does not increase Installed System Memory consumption, does not reduce systematic function.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is of the present invention based on the html tag of built-in browser and the schematic diagram of attribute expansion method.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of html tag and attribute expansion method based on built-in browser, make the digital TV terminal built-in browser not increasing Installed System Memory consumption, not reduce on the basis of systematic function, realize complicated display effect of network page and operating effect, and distinctive application provides support to Digital Television.
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 shows the preferred embodiment of html tag and the attribute expansion method based on built-in browser of the present invention.
See also Fig. 1, the method for present embodiment comprises following processing mode:
10, the privately owned label of definition and define the privately owned attribute of this privately owned label is to realize webpage embedded video request program VOD and video playback;
20, the tag attributes with standard HTML normalized definition extends to other html tags, with layering demonstration, the hyperlink focus color conversion that realizes webpage;
30, by the privately owned property value of definition in the attribute of html tag, so that webpage is carried out setting operation;
40, serve as the sign label with the div label, with each group<div〉and</div in the character string that comprises extract separately as first character string, and by that analogy the character string between all is extracted, form character string and tabulate.
Need to prove the ordinal relation that aforesaid way is uninevitable, just convenience for describing.
Below carry out more detailed introduction:
The application of processing mode 10 comprises the peculiar application of Digital Television such as webpage embedded VOD (video request program), video playback.
For example: definition<VOD 〉,<VODPARA〉label, realize the broadcast of video-on-demand applications in the digital television application and the setting of Control Parameter.It below is an example of this processing mode 10.
<html>
<head>
<title>VOD?play?example</title>
</head>
<body>
<vod?playmode=“full”>
<vodpara?name=“id”value=“ox?1234”>
<vodpara?name=“freq”value=“6900000”>
<vodpara?name=“sym_rate”value=“6875”>
<vodpara?name=“qam_mode”value=“64”>
<vodpara?name=“run_time”value=“1:58:40”>
</vod>
</body>
</html>
In this example,<VOD〉label defined the pattern that VOD plays, playmode is full frame operator scheme,<VODPARA〉label defined video parameter that VOD plays such as frequency, symbol rate, reproduction time etc.
The application of processing mode 20 comprises layering demonstration, hyperlink focus color conversion of webpage etc.It below is an example of this processing mode 20.
<html>
<head>
<title>link?color?example</title>
</title>
</head>
<body?bgcolor=#808080?text=#fffff?link=#ff0000?vlink=#00ff00>
<table?width=720>
<tr><td width=50>&nbsp:</td>
<td?height=50>
<a?href=“#“>text?link?1</a>
</td></tr>
<tr><td?width=50>&nbsp:</td>
<td?height=50>
<a?href=“#“link=#00ff00alink=#80ff00>text?link?2</a>
</td></tr>
<tr><td width=50>&nbsp:</td>
<td?height=50>
<a?href=“#“link=#000000alink=#808000>text?link?3</a>
</td></tr>
</table>
</body>
</html>
In this example, with label<body〉in link, alink attribute extend to<a in the label, make each<a the literal link in the label can set the color of literal link separately, make webpage design more flexible, the color of first link in this example is<body〉in the color value of definition, the color of second and the 3rd link is<a〉each self-defining color value in the label.
The application of processing mode 30 comprises the effect that realizes carrying out script.Be an example of this processing mode 30 below.
<html>
<head>
<title>fragment?script?example</title>
</head>
<body>
<table?width=720>
<tr><td>
<a?href=“#exit“>exit?browser</a>
</td></tr>
<tr><td>
<a?href=“#blur“>hide browser</a>
</td></tr>
<tr><td>
<a href=“#historyback“>history</a>
</td></tr>
</table>
</body>
</html>
With label<a 〉,<area in the fragment value defined of href attribute be specific sign so that it carries out the particular Web page operation, realize carrying out the effect of script.In this example, during link in user's webpage clicking, first link is carried out and is withdrawed from browser operation, and second link carried out and hidden browser operation, and historical return is carried out in the 3rd link.
Processing mode 40 is with each group<div〉</div in character string extract.Be an example of processing mode 40 below:
<body>
<h1>NEWS?WEBSITE</h1>
<p>some?text.xome?text.some?text...</p>
...
<div?class=”news”>
<h2>NEWS?headline1</h2>
<p>some?text.xome?text.some?text...</p>
...
</div>
...
</body>
In the present embodiment, with the div label is the sign label, promptly with<div〉and</div〉be the boundary, with each group<div〉and</div in the character string that comprises extract separately, for example, with first group<div in the above-mentioned html source code〉and</div between character string extract as first character string, that is:
First character string is:
<div?class=”news”>
<h2>NEWS?headline?1</h2>
<p>some?text.xome?text.some?text...</p>
...
</div>
And then with second group<div in the above-mentioned html source code〉and</div between character string extract, that is:
<div?class=”news”>
<h2>NEWS?headline?2</h2>
<p>some?text.xome?text.some?text...</p>
...
</div>
By that analogy, the character string between all is extracted with this, formed the character string tabulation.
Technique scheme as can be seen, the present invention contrasts prior art following beneficial effect:
Method of the present invention is by to the simple extension of html tag and attribute, web page operation effect such as realize that webpage effect such as layering, hyperlink focus color conversion and window are hidden, closed.The present invention is less demanding to set top box embedded browser, need not to support standards such as CSS, DOM, JavaScript.The present invention is not high to the STB terminal hardware requirement, does not increase Installed System Memory consumption, does not reduce systematic function.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to a kind of html tag and attribute expansion method that the embodiment of the invention provided based on built-in browser, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (6)

1. html tag and attribute expansion method based on a built-in browser is characterized in that, comprising:
Define privately owned label and define the privately owned attribute of this privately owned label, to realize webpage embedded video request program VOD and video playback;
The tag attributes of standard HTML normalized definition is extended to other html tags, with layering demonstration, the hyperlink focus color conversion that realizes webpage;
By the privately owned property value of definition in the attribute of html tag, so that webpage is carried out setting operation;
With the div label is the sign label, with each group<div〉and</div in the character string that comprises extract separately as first character string, and by that analogy the character string between all is extracted, form character string and tabulate.
2. html tag and attribute expansion method method based on built-in browser according to claim 1 is characterized in that:
The privately owned label of described definition also defines the privately owned attribute of this privately owned label, comprises to realize webpage embedded video request program VOD and video playback:
Definition<VOD 〉,<VODPARA〉label, realize the broadcast of video-on-demand applications in the digital television application and the setting of Control Parameter, wherein,<VOD〉label defined the pattern that VOD plays,<VODPARA〉label defined the video parameter that VOD plays.
3. html tag and attribute expansion method based on built-in browser according to claim 1 and 2 is characterized in that:
Described tag attributes with standard HTML normalized definition extends to other html tags, comprises with layering demonstration, the hyperlink focus color conversion that realizes webpage:
With label<body〉in link, alink attribute extend to<a in the label, make each<a the literal link in the label sets the color of literal link separately.
4. html tag and attribute expansion method based on built-in browser according to claim 3 is characterized in that:
Described each<a literal link in the label color of setting the literal link separately comprises:
The color of first link is<body〉in the color value of definition, the color of second and the 3rd link is<a〉each self-defining color value in the label.
5. html tag and attribute expansion method based on built-in browser according to claim 1 and 2 is characterized in that:
Described by the privately owned property value of definition in the attribute of html tag, so that carrying out setting operation, webpage comprises:
With label<a 〉,<area in the fragment value defined of href attribute be specific sign so that it carries out the particular Web page operation, realize carrying out the effect of script.
6. html tag and attribute expansion method based on built-in browser according to claim 5 is characterized in that:
Described execution particular Web page operation comprises:
During link in user's webpage clicking, first link is carried out and is withdrawed from browser operation, and second link carried out and hidden browser operation, and historical return is carried out in the 3rd link.
CN 201010215086 2010-06-30 2010-06-30 Embedded browser-based HTML label and attribute expansion method Pending CN101888530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010215086 CN101888530A (en) 2010-06-30 2010-06-30 Embedded browser-based HTML label and attribute expansion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010215086 CN101888530A (en) 2010-06-30 2010-06-30 Embedded browser-based HTML label and attribute expansion method

Publications (1)

Publication Number Publication Date
CN101888530A true CN101888530A (en) 2010-11-17

Family

ID=43074213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010215086 Pending CN101888530A (en) 2010-06-30 2010-06-30 Embedded browser-based HTML label and attribute expansion method

Country Status (1)

Country Link
CN (1) CN101888530A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325225A (en) * 2011-09-20 2012-01-18 北京鹏润鸿途科技有限公司 Method and device for playing video of mobile phone website
CN106610827A (en) * 2015-10-23 2017-05-03 中国科学院声学研究所 Method for extending customer attributes of browser focal point shift and realizing focal point shift

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998012871A1 (en) * 1996-09-18 1998-03-26 Access Co., Ltd. Internet television apparatus
JP2007241652A (en) * 2006-03-08 2007-09-20 Core Colors Inc Content distribution system
CN101093487A (en) * 2006-06-22 2007-12-26 上海新纳广告传媒有限公司 Method for extracting content of text based on HTML characteristics
US7506365B2 (en) * 2001-11-27 2009-03-17 Fujitsu Limited Document distribution method and document management method
CN101464886A (en) * 2008-12-19 2009-06-24 上海全景数字技术有限公司 HTML label and attribute expansion method based on built-in browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998012871A1 (en) * 1996-09-18 1998-03-26 Access Co., Ltd. Internet television apparatus
US7506365B2 (en) * 2001-11-27 2009-03-17 Fujitsu Limited Document distribution method and document management method
JP2007241652A (en) * 2006-03-08 2007-09-20 Core Colors Inc Content distribution system
CN101093487A (en) * 2006-06-22 2007-12-26 上海新纳广告传媒有限公司 Method for extracting content of text based on HTML characteristics
CN101464886A (en) * 2008-12-19 2009-06-24 上海全景数字技术有限公司 HTML label and attribute expansion method based on built-in browser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325225A (en) * 2011-09-20 2012-01-18 北京鹏润鸿途科技有限公司 Method and device for playing video of mobile phone website
CN106610827A (en) * 2015-10-23 2017-05-03 中国科学院声学研究所 Method for extending customer attributes of browser focal point shift and realizing focal point shift

Similar Documents

Publication Publication Date Title
CN104866512B (en) Extract the method, apparatus and system of web page contents
CN105630459A (en) Method for converting PPT document to HTML page
CN101464886A (en) HTML label and attribute expansion method based on built-in browser
CN102340704B (en) Asynchronous dynamic page switching method and system and server
CN109889907A (en) A kind of display methods and device of the video OSD based on HTML5
CN102065234B (en) Caption producing and broadcasting method and system based on distributive type caption processing system
CN101510210B (en) Method and apparatus for controlling display popup web page
CN103377039B (en) A kind of web game exploitation, analytic method, a kind of editing machine and resolver
CN104461484A (en) Front-end template implementation method and device
CN101860734B (en) Method for implementing incremental transmission and display of dynamic images through AJAX
CN103729784B (en) The method and system of interactively advertising management
CN102752664A (en) Display method and device for text subtitle information in webpage
CN102082931A (en) Method and device for self-adaptive adjustment of title areas
CN101505409B (en) Method for playing mobile multimedia broadcast program through browser and terminal thereof
CN105677654A (en) Advertisement filtering method and device
CN105007539A (en) HTML template-based method, equipment and system for releasing graphics and text information via television
CN103970839A (en) Method for controlling webpage browsing through voice
CN110268718A (en) The energy conservation of video stream media and the perception of content of broadcasting in mobile device
CN110020311B (en) Webpage display method, browser, terminal and computer readable storage medium
CN103024564B (en) IPTV platform EPG page visual development and automatic generation method
CN104715054B (en) Method by Silverlight Content Transformations into html web page content
CN102082930B (en) A kind of method that captioned test is replaced and device
CN105760420B (en) Realize the method and device with multimedia file content interaction
CN101888530A (en) Embedded browser-based HTML label and attribute expansion method
CN101867695A (en) Digital television set top box based on browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101117