JP2012173946A - Web page display device and focus control method - Google Patents
Web page display device and focus control method Download PDFInfo
- Publication number
- JP2012173946A JP2012173946A JP2011034671A JP2011034671A JP2012173946A JP 2012173946 A JP2012173946 A JP 2012173946A JP 2011034671 A JP2011034671 A JP 2011034671A JP 2011034671 A JP2011034671 A JP 2011034671A JP 2012173946 A JP2012173946 A JP 2012173946A
- Authority
- JP
- Japan
- Prior art keywords
- web page
- event handler
- display device
- focus
- unit
- 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.)
- Withdrawn
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
本発明は、ウェブページの操作性を向上させる技術に関する。 The present invention relates to a technique for improving the operability of a web page.
ウェブページを閲覧するためのブラウザは、パーソナルコンピュータ(PC)のみならず、携帯電話、ゲーム機、デジタルテレビなどの様々な電子機器に搭載されている。ウェブページの多くは、マウス等の、ポインタを任意の位置に移動できる入力デバイスが接続されたPCを用いて閲覧されることが前提となっている。そのため、携帯電話やデジタルテレビなどのPC以外の電子機器でウェブページを閲覧する場合、電子機器やそのリモートコントローラに設けられたボタンだけではウェブページに対する操作がうまくいかないことがある。そのため、従来のブラウザには、カーソルキーやTabキーなどの特定のキー操作に応じて、ハイパーリンクが設定されたオブジェクトに順次フォーカスを移動させる機能が備えられている。 Browsers for browsing web pages are installed not only in personal computers (PCs) but also in various electronic devices such as mobile phones, game machines, and digital televisions. It is assumed that many web pages are viewed using a PC connected to an input device such as a mouse that can move the pointer to an arbitrary position. For this reason, when browsing a web page with an electronic device other than a PC, such as a mobile phone or a digital television, the operation on the web page may not be successful only with buttons provided on the electronic device or its remote controller. For this reason, the conventional browser has a function of sequentially moving the focus to the object to which the hyperlink is set according to a specific key operation such as a cursor key or a Tab key.
また、特許文献1には、HTMLファイルからアンカータグを検出し、アンカータグの検出順に例えば1〜10までの操作用の数字を付与してアンカーの近傍にその数字を表示するWebブラウザの操作方法が開示されている。これによると、ユーザは、操作を所望するアンカーの近傍の数字に該当するリモートコントローラの数字キーを押すことで、当該アンカーを操作することが可能になる。
最近のウェブページでは、CSS(Cascading Style Sheet)とJavaScript(登録商標)を用いて、クライアント側でウェブページの表示内容を動的に変更するダイナミックHTML(DHTML)を使用したものが多い。一例として、あるオブジェクトにマウスポインタを重ねたときにイベント(「onMouseoevr」)を発生させるイベントハンドラを設定し、このイベントハンドラに関連づけられたJavaScriptをクライアント側で実行させることができる。これにより、例えばあるオブジェクトにマウスポインタを重ねることで当初は非表示であったオブジェクトをブラウザ上に表示させたり、フォントの色やオブジェクトのサイズを変更したりすることが可能になる。 Many recent web pages use dynamic HTML (DHTML) that dynamically changes the display content of the web page on the client side using CSS (Cascading Style Sheet) and JavaScript (registered trademark). As an example, an event handler that generates an event (“onMouseoevr”) when a mouse pointer is placed on a certain object can be set, and JavaScript associated with the event handler can be executed on the client side. As a result, for example, by hovering a mouse pointer over a certain object, it is possible to display an initially hidden object on the browser, or to change the font color or the object size.
しかしながら、イベントハンドラが設定されたオブジェクトにハイパーリンクが設定されていないと、上述したハイパーリンク付きのオブジェクトを順次フォーカスしていく方式では、このようなオブジェクトにフォーカスを移動させることができず、したがってイベントも発生させることができないという問題があった。 However, if the hyperlink is not set to the object for which the event handler is set, the above-described method of sequentially focusing the hyperlinked object cannot move the focus to such an object. There was a problem that events could not be generated.
本発明はこうした状況に鑑みてなされたものであり、その目的は、順次フォーカス機能を備えるブラウザにおいて、ハイパーリンクの設定されていないオブジェクトのうち、イベントハンドラが設定されているオブジェクトについてもフォーカスを移動させることができるようにする技術を提供することにある。 The present invention has been made in view of such a situation, and the object of the present invention is to sequentially move the focus of an object for which an event handler is set among objects for which a hyperlink is not set in a browser having a sequential focus function. It is to provide a technique that enables the user to be able to make it happen.
本発明の一態様は、ウェブページをレンダリングしてディスプレイに出力するウェブページ表示装置である。この装置は、前記ウェブページを構成する文書ファイルからハイパーリンクを含むオブジェクトを抽出するハイパーリンク抽出部と、前記文書ファイルから所定のイベントハンドラを含むオブジェクトを抽出するイベントハンドラ抽出部と、前記ハイパーリンク抽出部および前記イベントハンドラ抽出部によって抽出されたオブジェクトの前記ウェブページ上での配置に関する情報を少なくとも含むオブジェクト情報を格納するオブジェクト格納部と、ユーザによる方向操作入力に応じて、前記ウェブページ上でフォーカス表示すべきオブジェクトを選択するフォーカス制御部と、前記フォーカス制御部によって選択されたオブジェクトがイベントハンドラを含むオブジェクトである場合、該イベントハンドラに関連づけられたスクリプトを実行するスクリプト実行部と、を備える。 One aspect of the present invention is a web page display device that renders a web page and outputs it to a display. The apparatus includes a hyperlink extraction unit that extracts an object including a hyperlink from a document file that constitutes the web page, an event handler extraction unit that extracts an object including a predetermined event handler from the document file, and the hyperlink. An object storage unit that stores object information including at least information related to an arrangement of the object extracted by the extraction unit and the event handler extraction unit on the web page; and on the web page according to a direction operation input by a user When a focus control unit that selects an object to be displayed in focus and the object selected by the focus control unit includes an event handler, a script associated with the event handler is displayed. And a script execution unit for the line.
この態様によると、ハイパーリンクが設定されたオブジェクトを抽出するだけでなく、イベントハンドラが設定されたオブジェクトをも抽出し、これら両方のオブジェクトをフォーカス移動の対象とすることができる。また、フォーカス時にそのオブジェクトに設定されたイベントハンドラに関連するスクリプトを実行するようにしたので、マウスポインタの操作時と同様の操作が可能になる。
なお、「文書ファイル」とは、マークアップ言語で記述されたHTMLファイルやXMLファイルなどを含む。
According to this aspect, not only the object for which the hyperlink is set but also the object for which the event handler is set can be extracted, and both these objects can be targeted for focus movement. In addition, since the script related to the event handler set for the object is executed at the time of focus, the same operation as that of the mouse pointer can be performed.
The “document file” includes an HTML file or an XML file described in a markup language.
本発明の別の態様は、ウェブページをレンダリングしてディスプレイに出力するウェブページ表示装置におけるフォーカス制御方法である。この方法は、前記ウェブページ表示装置が、前記ウェブページを構成する文書ファイルからハイパーリンクを含むオブジェクトを抽出し、前記ウェブページ表示装置が前記文書ファイルから所定のイベントハンドラを含むオブジェクトを抽出し、前記ウェブページ表示装置が、前記抽出ステップによって抽出されたオブジェクトの前記ウェブページ上での配置に関する情報を少なくとも含むオブジェクト情報をメモリに格納し、前記ウェブページ表示装置が、ユーザによる方向操作入力に応じて、前記ウェブページ上でフォーカス表示すべきオブジェクトを選択し、選択されたオブジェクトがイベントハンドラを含むオブジェクトである場合、前記ウェブページ表示装置が前記イベントハンドラに関連づけられたスクリプトを実行することを含む。 Another aspect of the present invention is a focus control method in a web page display device that renders a web page and outputs it to a display. In this method, the web page display device extracts an object including a hyperlink from a document file constituting the web page, and the web page display device extracts an object including a predetermined event handler from the document file. The web page display device stores, in a memory, object information including at least information regarding an arrangement of the object extracted in the extraction step on the web page, and the web page display device responds to a direction operation input by a user. Selecting an object to be displayed in focus on the web page, and when the selected object is an object including an event handler, the web page display device executes a script associated with the event handler. No.
なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。 It should be noted that any combination of the above-described constituent elements and a conversion of the expression of the present invention between a method, an apparatus, a system, a recording medium, a computer program, etc. are also effective as an aspect of the present invention.
本発明によれば、順次フォーカス機能を備えるブラウザにおいて、ハイパーリンクの設定されていないオブジェクトのうち、イベントハンドラが設定されているオブジェクトについてもフォーカスを移動させることができる。 According to the present invention, in a browser having a sequential focus function, it is possible to move the focus for an object for which an event handler is set among objects for which no hyperlink is set.
図1は、本発明の一実施形態に係るウェブページ表示装置100を利用してウェブページを表示する様子を示す図である。図1では、ゲーム機などのウェブページ表示装置100にデジタルテレビなどのディスプレイ120を接続する例を示している。ユーザは、テレビ用のリモートコントローラ22上の方向指示ボタンなどを使用して、ディスプレイ上に表示されるウェブページを操作する。
FIG. 1 is a diagram illustrating a state in which a web page is displayed using a web
ウェブページ表示装置100は、ユーザの操作に応答してインターネット等のネットワーク24を介してURL(Uniform Resource Locator)で特定されるサーバ20にアクセスし、ウェブページを構成する文書ファイルを取得する。
The web
なお、ウェブページ表示装置100は、デジタルテレビ、携帯電話、PDA(Personal Digital Assistant)などの携帯移動端末、カーナビゲーションシステム等のように、マウス、トラックボールまたはタッチパネル等のディスプレイ上の任意の位置にポインタを移動させる入力デバイスを持たない電子機器であってもよい。例えばウェブページ表示装置がデジタルテレビまたは携帯電話である場合、ディスプレイ120とウェブページ表示装置100とが単一の筐体内に一体化されていてもよい。また、ウェブページ表示装置が携帯電話またはカーナビゲーションシステムである場合、リモートコントローラ22の代わりに、方向指示ボタンがウェブページ表示装置と一体化されていてもよい。
The web
図2は、ウェブページ表示装置100で解釈されディスプレイにレンダリングされるHTMLファイル50の一例を示す図である。図3(a)、(b)は、図2のHTMLファイル50に基づき、従来のブラウザによってレンダリングされるウェブページの例を示す図である。
FIG. 2 is a diagram showing an example of an HTML
ポインタを画面上の任意の位置に移動させるマウス等のデバイスがウェブページ表示装置に接続されていない場合のために、従来のブラウザは、カーソルキーやTabキーなどの操作に応じて、ハイパーリンクが設定されているオブジェクト間で順次フォーカスを移動させる機能(以下、「順次フォーカス機能」と呼ぶ)を有している。 In the case where a device such as a mouse that moves the pointer to an arbitrary position on the screen is not connected to the web page display device, a conventional browser has a hyperlink in response to an operation such as a cursor key or a Tab key. It has a function of moving the focus sequentially between the set objects (hereinafter referred to as “sequential focus function”).
図3(a)では、「テキスト」オブジェクト302と「イメージ」オブジェクト306にそれぞれハイパーリンクが設定されている。したがって、「テキスト」オブジェクト302にフォーカスFが表示されている状態で、ユーザによりTabキーまたは下方向のキーが操作されると、図3(b)に示すように、ハイパーリンクの設定されていない「メニュー」オブジェクト304を飛ばして「イメージ」オブジェクト306にフォーカスが移動してしまうという問題がある。
In FIG. 3A, hyperlinks are set for the “text” object 302 and the “image”
また、図2のHTMLファイル50の26行目から分かるように、「メニュー」オブジェクト304にはonMouseoevrイベントハンドラが設定されている。マウス等を使用できれば、「メニュー」オブジェクト304上にポインタを移動させた時点で、31〜34行目で表されるサブメニューが表示されるように構成されている。しかしながら、カーソルキー等を用いてフォーカスを移動させる場合は、「メニュー」オブジェクト304にフォーカスが移動しないので、このようなサブメニューを画面上に表示することができないという問題もある。
Further, as can be seen from the 26th line of the HTML
そこで、本実施形態では、ハイパーリンクが設定されていないがイベントハンドラが設定されているオブジェクトについても、カーソルキーによるフォーカスの移動時にもフォーカス対象となるようにする技術を提供する。 Therefore, in the present embodiment, a technique is provided in which an object for which a hyperlink is not set but an event handler is set is also a focus target when the focus is moved by a cursor key.
図4は、本発明の一実施形態に係るウェブページ表示装置100の構成を示す図である。この構成は、ハードウエア的には、任意のコンピュータのCPU、メモリ、その他のLSIで実現でき、ソフトウエア的にはメモリにロードされたプログラムなどによって実現されるが、ここではそれらの連携によって実現される機能ブロックを描いている。したがって、これらの機能ブロックがハードウエアのみ、ソフトウエアのみ、またはそれらの組合せによっていろいろな形で実現できることは、当業者には理解されるところである。
FIG. 4 is a diagram showing a configuration of the web
本実施形態のウェブページ表示装置は、周知のブラウザプログラムの一部として実装されることが好ましい。したがって、図4に明示されていない機能であっても、一般のブラウザプログラムが備えている機能は当然に有しているものとする。 The web page display device of this embodiment is preferably implemented as part of a well-known browser program. Accordingly, even functions that are not explicitly shown in FIG. 4 are assumed to have functions that a general browser program has.
通信制御部118は、URLの入力、検索サイトにおける検索結果の選択、ハイパーリンクの選択などのユーザの操作に応じて、インターネット等のネットワーク24を介して指定されたウェブサーバ20にアクセスし、対応する文書ファイルを取得する。文書ファイルは、SGML(Standard Generalized Markup Language)、HTML(HyperText Markup Language)、XML(eXtensible Markup Language)などのマークアップ言語で記述されている。文書ファイルにJavaスクリプトなどのスクリプト言語が含まれていてもよい。また、文書ファイルとともに関連するCSSが取得されてもよい。取得された文書ファイルは、ファイル解析部102に送られる。なお、以下では、主に文書ファイルがHTMLファイルであるとして説明する。
The
ファイル解析部102は、取得された文書ファイルを解析し、ウェブページの描画に必要な情報をレンダリング部110に送る。ファイル解析部102は、ハイパーリンク抽出部104、イベントハンドラ抽出部106およびスクリプト実行部108を含む。
The
ハイパーリンク抽出部104は、文書ファイルの中からハイパーリンクの設定されたオブジェクトを抽出する。具体的には、ハイパーリンク抽出部104は、アンカータグ<a hrefを検索することで、ハイパーリンクの設定されたオブジェクトを抽出する。
The
イベントハンドラ抽出部106は、文書ファイルの中からイベントハンドラの設定されたオブジェクトを抽出する。具体的には、イベントハンドラ抽出部106は、予め指定されたイベントハンドラを検索することで、イベントハンドラの設定されたオブジェクトを抽出する。
The event
図5は、イベントハンドラ抽出部106による抽出の対象となるイベントハンドラの一例220を示す表である。図中、行222はイベントハンドラ名を表し、行224は対象となるイベントの発生タイミングの説明である。本実施形態では、オブジェクトに対するマウス操作イベントが対象になる。
FIG. 5 is a table showing an example 220 of event handlers to be extracted by the event
図4に戻り、ハイパーリンク抽出部104およびイベントハンドラ抽出部106は、それぞれ抽出したオブジェクトについての情報をオブジェクト格納部116に格納する。オブジェクト情報には、抽出されたオブジェクトのID、始点位置およびサイズが少なくとも含まれる。これらのオブジェクト情報は、文書ファイルに含まれていてもよいし、CSSに含まれていてもよい。
Returning to FIG. 4, the
スクリプト実行部108は、イベントハンドラが設定されたオブジェクトにフォーカスが移動したときに、当該オブジェクトにポインタがあるものとしてイベントを発生させる。さらに、図5に示したイベントハンドラに対応するイベントが発生した場合には、イベントハンドラに関連づけられたJavaScriptを実行する。
When the focus moves to an object for which an event handler is set, the
より具体的に説明すると、オブジェクトにフォーカスが移動した時点で、スクリプト実行部はonmouseoverイベントを発生させる。そのオブジェクトから別のオブジェクトにフォーカスが移動した時点で、スクリプト実行部はonmouseoutイベントを発生させる。オブジェクトにフォーカスが移動しているときにマウスのボタンを押す操作がなされたときに、スクリプト実行部はonmousedownイベントを発止させ、引き続きマウスのボタンを放す操作がなされたときに、スクリプト実行部はonmouseupイベントを発生させる。オブジェクトにフォーカスが移動しているときにマウスクリックに対応するキー操作がなされたときに、スクリプト実行部はonclickイベントを発生させる。オブジェクトにフォーカスが移動しているときにマウスのダブルクリックに対応するキー操作がなされたときに、スクリプト実行部はondblclickイベントを発生させる。 More specifically, when the focus moves to the object, the script execution unit generates an onmouseover event. When the focus moves from the object to another object, the script execution unit generates an onmouseout event. When the mouse button is pressed while the focus is on the object, the script execution unit fires the onmousedown event, and when the mouse button is continuously released, the script execution unit Raises the onmouseup event. The script execution unit generates an onclick event when a key operation corresponding to a mouse click is performed while the focus is moving on the object. The script execution unit generates an ondblclick event when a key operation corresponding to a mouse double click is performed while the object is focused.
操作入力受信部112は、リモートコントローラ上またはウェブページ表示装置上で操作された方向指示ボタンの操作入力を受け取る。操作入力受信部112は、受信した方向ボタンの情報をフォーカス制御部114に送る。
The operation
フォーカス制御部114は、方向ボタンの操作に対応して、ウェブページ内のオブジェクト間でフォーカスを移動させる。すなわち、フォーカス制御部114は、オブジェクト格納部116に格納されている抽出されたオブジェクト情報を取得し、現在フォーカスが置かれたオブジェクトから方向ボタンに対応する方向で最も距離が近いオブジェクトを、次にフォーカスを移動させるべきオブジェクトとして選択する。フォーカス制御部114は、選択したオブジェクトのオブジェクト情報をファイル解析部102およびレンダリング部110に送る。但し、後述するようにオブジェクト格納部116内でオブジェクトサイズが(0,0)であるオブジェクト、すなわちその時点で画像表示されていないオブジェクトについては、フォーカスの対象としない。
The focus control unit 114 moves the focus between objects in the web page in response to the operation of the direction button. In other words, the focus control unit 114 acquires the extracted object information stored in the
このように、本実施形態では、イベントハンドラ抽出部106によって抽出されたオブジェクトについても、フォーカス制御部114によってフォーカスの配置対象とされる。したがって、従来のブラウザとは異なり、ハイパーリンクの設定されたオブジェクト以外にイベントハンドラが設定されたオブジェクトにもフォーカスが移動されるようになる。
As described above, in this embodiment, the object extracted by the event
レンダリング部110は、ファイル解析部102による文書ファイルの解析結果にしたがってウェブページをレンダリングし、ディスプレイ120に出力する。また、レンダリング部110は、フォーカス制御部114から受け取るオブジェクト情報に基づき、オブジェクトがフォーカスされていることを表す強調表示を施した上でレンダリングする。本実施形態では、この強調表示はオブジェクトの周りを囲む黒い正方形として表されている。しかしながら、他の表示態様でフォーカスを表してもよい。例えば、オブジェクトを構成する文字を反転表示したり、文字の背景の色を変えるなどしてフォーカスを表してもよい。
The
フォーカス制御部114によってイベントハンドラを含むオブジェクトがフォーカス対象として選択された場合、フォーカス制御部114はこのオブジェクトのオブジェクト情報をファイル解析部102内のスクリプト実行部108にも通知する。この通知に応じて、スクリプト実行部108は、フォーカス対象として選択されたオブジェクトのイベントを発生させる。また、関連するJavaScriptがあれば、それを実行する。この実行に対応するウェブページの変化がファイル解析部102によって再び解析され、レンダリング部110に解析結果が送られる。これに応じて、レンダリング部110はウェブページを更新する。
When the focus control unit 114 selects an object including an event handler as a focus target, the focus control unit 114 also notifies the
また、JavaScriptの実行によって表示すべきオブジェクトが変更された場合には、ハイパーリンク抽出部104およびイベントハンドラ抽出部106が再度、文書ファイルを検索してそれぞれオブジェクトを抽出する。そして、抽出されたオブジェクトに関するオブジェクト情報をオブジェクト格納部116に格納する。このようにして、ウェブページ上でのイベント発生に応じて表示されるオブジェクトについても、随時抽出することができる。
When the object to be displayed is changed by executing JavaScript, the
以下、ウェブページ表示装置100の作用について説明する。
Hereinafter, the operation of the web
通信制御部118によって図2のHTMLファイル50が読み込まれると、ファイル解析部102のハイパーリンク抽出部104およびイベントハンドラ抽出部106が、HTMLファイル50からフォーカスすべきオブジェクトをそれぞれ抽出する。
When the
図6は、ハイパーリンク抽出部104によるオブジェクトの抽出を説明するフローチャートである。まず、ハイパーリンク抽出部104は、HTMLファイル内で先頭からアンカータグを検索する(S10)。アンカータグが検出されると、ハイパーリンク抽出部104は、そのタグ構文内にハイパーリンクが含まれるか否かを判定する(S12)。ハイパーリンクが含まれれば(S12のY)、そのアンカータグに関連するオブジェクトの情報を取り出し、オブジェクト格納部116に格納する(S14)。ハイパーリンクが含まれていなければ(S12のN)、S14をスキップする。HTMLファイルの最終行に達していなければ(S16のN)、HTMLファイルから次のアンカータグを検索する。
FIG. 6 is a flowchart for explaining object extraction by the
図7は、イベントハンドラ抽出部106によるオブジェクトの抽出を表すフローチャートである。まず、イベントハンドラ抽出部106は、HTMLファイル内で先頭からタグを検索する(S20)。タグが検出されると、イベントハンドラ抽出部106は、そのタグ構文内に所定のイベントハンドラが含まれるか否かを判定する(S22)。所定のイベントハンドラが含まれれば(S22のY)、そのタグに関連するオブジェクトの情報を取り出し、オブジェクト格納部116に格納する(S24)。所定のイベントハンドラが含まれていなければ(S22のN)、S24をスキップする。HTMLファイルの最終行に達していなければ(S26のN)、HTMLファイルから次のタグ構文を検索する。
FIG. 7 is a flowchart showing object extraction by the event
図6および図7で説明したフローチャートによってオブジェクトが抽出される例を説明する。図2のHTMLファイル50において、ハイパーリンク抽出部104がアンカータグ<a hrefを検索する。この結果、23行目の「テキスト」オブジェクト、32行目のid="sub1"で示される「サブ1」オブジェクト、33行目のid="sub2"で示される「サブ2」オブジェクト、34行目のid="sub3"で示される「サブ3」オブジェクト、および40行目のイメージオブジェクトが抽出される。各オブジェクトにはそれぞれURLが関連づけられている。
An example in which an object is extracted will be described with reference to the flowcharts described in FIGS. In the
イベントハンドラ抽出部106は、HTMLファイル50において、図5で示した所定のイベントハンドラを検出する。この結果、26行目の"onmouseover"イベントハンドラと27行目の"onmouseout"イベントハンドラが検出される。これらのイベントハンドラに対応するのは、25行目のid="topmenu"で指定されるブロック要素のオブジェクトである。
The event
図8は、図2のHTMLファイル50が最初に読み込まれ、ハイパーリンク抽出部104およびイベントハンドラ抽出部106によって上述のようにしてオブジェクトが抽出された後に、オブジェクト格納部116に格納されているオブジェクト情報を示す。図中の行202はオブジェクトidを表し、行204はオブジェクトの始点位置を表し、行206はオブジェクトサイズを表している。
FIG. 8 shows the objects stored in the
ところで、HTMLファイル50の31行目には、<div id="submenu" class="submenu-off">と記述されているが、これはブロック要素オブジェクトであるid="submenu"に"submenu-off"というスタイルが指定されていることを意味する。"submenu-off"のスタイルは15行目以下に定義されており、プロパティdisplayにnoneが指定されている。これは、非表示の指定を意味している。したがって、id="submenu"に内包されるオブジェクト、すなわち32行目から34行目に記述されているオブジェクトid="sub1"、id="sub2"、id="sub3"は、初期状態ではディスプレイ画面に表示されない。これらのオブジェクトは、id="topmenu"で指定されるブロック要素オブジェクトでonMouseoevrイベントが発生したときに初めて表示される。
By the way, in the 31st line of the
これに対応して、図8において、これら三つのオブジェクトのサイズはいずれも(0,0)となっている。 Correspondingly, in FIG. 8, the sizes of these three objects are all (0, 0).
続いて、フォーカス移動時のウェブページの表示態様の変化について説明する。 Next, a change in the display mode of the web page when the focus is moved will be described.
図9(a)〜(f)は、本発明の一実施形態に係るウェブページ表示装置100によって表示されるウェブページの画面遷移例を示す図である。
FIGS. 9A to 9F are diagrams showing examples of screen transitions of web pages displayed by the web
図9(a)は、図3(a)と同様にHTMLファイル50を読み込んだ直後の表示である。オブジェクト格納部116に格納されているオブジェクトのうち先頭の「テキスト」オブジェクト302にフォーカスFが表示されている。ユーザからフォーカス移動の指示が与えられると、フォーカス制御部114は、オブジェクト格納部116の中から次のオブジェクトであるid="topnemu"を選択し、図10(b)に示すように、レンダリング部110が「メニュー」オブジェクト304にフォーカスFを表示する。
FIG. 9A shows a display immediately after the
フォーカス制御部114は、フォーカスしたオブジェクトの情報をファイル解析部102にも渡す。スクリプト実行部108は、フォーカスの移動したメニューオブジェクト304にポインタが移動したイベントが発生したものとして、関連づけられたイベントハンドラを実行する。
The focus control unit 114 also passes information on the focused object to the
図2のHTMLファイルの26行目を参照すると、id="topnemu"で指定されるオブジェクトには、onmouseoverイベントハンドラが記載されている。このイベントハンドラには、id="subnemu"で指定されたオブジェクトのClassnameを、"submenu-on"に変更する処理が記述されている。"submenu-on"のスタイルは、HTMLファイル50の12行目において、プロパティdisplayにblockを指定してブロックレベルで表示することが定義されている。この結果、id="subnemu"の<div>〜</div>で指定されたブロック要素オブジェクトが表示に変更され、内包されるオブジェクト、すなわち、32〜34行目で指定されている各オブジェクトが表示状態に変更される。この結果、図10(c)に示すように、メニューオブジェクト304の下方に「サブ1」「サブ2」「サブ3」のオブジェクトが表示される。このとき、フォーカスはid="topnemu"で指定される「メニュー」オブジェクトにあるので、メニュー全体がフォーカスされた状態で表示される。
Referring to the 26th line of the HTML file in FIG. 2, an onmouseover event handler is described in the object specified by id = "topnemu". This event handler describes a process for changing the Classname of the object specified by id = "subnemu" to "submenu-on". The “submenu-on” style is defined to display at the block level by specifying block in the property display on the 12th line of the
スクリプト実行部108によってイベントハンドラが実行された場合、ハイパーリンク抽出部104およびイベントハンドラ抽出部106は、再びオブジェクトを抽出してそのオブジェクト情報をオブジェクト格納部116に格納する。
When the event handler is executed by the
図10は、スクリプト実行部108によってイベントハンドラが実行された後にオブジェクト格納部116内に格納されているオブジェクト情報を示す表200’である。上述のように、オブジェクト"sub1"、"sub2"、"sub3"が表示状態に更新されたので、図8に示した表200と比べて、これらのオブジェクトの始点位置およびオブジェクトサイズが変更されていることが分かる。また、id="topnemu"で指定されるオブジェクトについても、内包するオブジェクトが表示状態となったので、オブジェクトサイズが(150,25)から(150,100)に拡大されていることが分かる。
FIG. 10 is a table 200 ′ showing the object information stored in the
図9(c)の状態で、ユーザからさらに移動指示がなされると、フォーカス制御部114はオブジェクト格納部116から次のフォーカス対象のオブジェクトid="sub1"を選択する。この結果、図9(d)に示すように、「サブ1」にフォーカスFが表示された状態になる。同様にして、ユーザからさらに移動指示がなされると、id="sub2"、id="sub3"に対応する「サブ2」「サブ3」の順でフォーカスFが移動していく(図9(e)、(f))。このように、ユーザは、方向指示ボタンしかないような端末においても、onMouseoevrイベントによって表示されるドロップダウンメニュー310を選択することができる。
In the state of FIG. 9C, when the user further instructs to move, the focus control unit 114 selects the next focus target object id = “sub1” from the
以上説明したように、本実施形態に係るウェブページ表示装置によれば、携帯端末等におけるウェブブラウザの操作性を改善することができる。具体的には、本実施形態に係るウェブページ表示装置は、ハイパーリンクが設定されたオブジェクトを抽出するだけでなく、イベントハンドラが設定されたオブジェクトをも抽出し、これら両方のオブジェクトをフォーカス移動の対象とすることができる。また、フォーカス時にそのオブジェクトに設定されたイベントハンドラに関連するスクリプトを実行するようにしたので、マウスポインタの操作時と同様に、onMouseoevrイベントなどに対応する表示をブラウザ上で行うことが可能になる。 As described above, according to the web page display device according to the present embodiment, the operability of the web browser in the mobile terminal or the like can be improved. Specifically, the web page display device according to the present embodiment extracts not only the object for which the hyperlink is set, but also the object for which the event handler is set, and moves both of these objects to focus movement. Can be targeted. In addition, since the script related to the event handler set for the object is executed at the time of focus, it is possible to display on the browser corresponding to the onMouseoevr event, as in the case of the mouse pointer operation. .
以上、いくつかの実施形態をもとに本発明を説明した。この実施例は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。 The present invention has been described above based on some embodiments. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to the combination of each component and each processing process, and such modifications are also within the scope of the present invention. .
50 HTMLファイル、 100 ウェブページ表示装置、 102 ファイル解析部、 104 ハイパーリンク抽出部、 106 イベントハンドラ抽出部、 108 スクリプト実行部、 110 レンダリング部、 112 操作入力受信部、 114 フォーカス制御部、 116 オブジェクト格納部、 118 通信制御部、 120 ディスプレイ。 50 HTML file, 100 Web page display device, 102 File analysis unit, 104 Hyperlink extraction unit, 106 Event handler extraction unit, 108 Script execution unit, 110 Rendering unit, 112 Operation input reception unit, 114 Focus control unit, 116 Object storage Part, 118 communication control part, 120 display.
Claims (4)
前記ウェブページを構成する文書ファイルからハイパーリンクを含むオブジェクトを抽出するハイパーリンク抽出部と、
前記文書ファイルから所定のイベントハンドラを含むオブジェクトを抽出するイベントハンドラ抽出部と、
前記ハイパーリンク抽出部および前記イベントハンドラ抽出部によって抽出されたオブジェクトの前記ウェブページ上での配置に関する情報を少なくとも含むオブジェクト情報を格納するオブジェクト格納部と、
ユーザによる方向操作入力に応じて、前記ウェブページ上でフォーカス表示すべきオブジェクトを選択するフォーカス制御部と、
前記フォーカス制御部によって選択されたオブジェクトがイベントハンドラを含むオブジェクトである場合、該イベントハンドラに関連づけられたスクリプトを実行するスクリプト実行部と、
を備えることを特徴とするウェブページ表示装置。 In a web page display device that renders a web page and outputs it to a display,
A hyperlink extraction unit that extracts an object including a hyperlink from a document file constituting the web page;
An event handler extraction unit for extracting an object including a predetermined event handler from the document file;
An object storage unit for storing object information including at least information on the arrangement of the objects extracted by the hyperlink extraction unit and the event handler extraction unit on the web page;
A focus control unit that selects an object to be focused on the web page in response to a direction operation input by a user;
A script execution unit that executes a script associated with the event handler, when the object selected by the focus control unit is an object including an event handler;
A web page display device comprising:
前記ウェブページ表示装置が、前記ウェブページを構成する文書ファイルからハイパーリンクを含むオブジェクトを抽出し、
前記ウェブページ表示装置が前記文書ファイルから所定のイベントハンドラを含むオブジェクトを抽出し、
前記ウェブページ表示装置が、前記抽出ステップによって抽出されたオブジェクトの前記ウェブページ上での配置に関する情報を少なくとも含むオブジェクト情報をメモリに格納し、
前記ウェブページ表示装置が、ユーザによる方向操作入力に応じて、前記ウェブページ上でフォーカス表示すべきオブジェクトを選択し、
選択されたオブジェクトがイベントハンドラを含むオブジェクトである場合、前記ウェブページ表示装置が前記イベントハンドラに関連づけられたスクリプトを実行することを含むフォーカス制御方法。 A focus control method in a web page display device that renders a web page and outputs it to a display,
The web page display device extracts an object including a hyperlink from a document file constituting the web page;
The web page display device extracts an object including a predetermined event handler from the document file,
The web page display device stores in a memory object information including at least information relating to an arrangement of the object extracted in the extraction step on the web page;
The web page display device selects an object to be focused on the web page in response to a direction operation input by a user,
A focus control method comprising: executing a script associated with the event handler when the selected object is an object including an event handler.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011034671A JP2012173946A (en) | 2011-02-21 | 2011-02-21 | Web page display device and focus control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011034671A JP2012173946A (en) | 2011-02-21 | 2011-02-21 | Web page display device and focus control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012173946A true JP2012173946A (en) | 2012-09-10 |
Family
ID=46976809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011034671A Withdrawn JP2012173946A (en) | 2011-02-21 | 2011-02-21 | Web page display device and focus control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012173946A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014054379A (en) * | 2012-09-12 | 2014-03-27 | Takashi Mukai | Permanent wave application method and permanent wave application device |
JP2015170005A (en) * | 2014-03-05 | 2015-09-28 | 日本電信電話株式会社 | File management system, server device, file management method, user interface providing method and file management program |
KR20170131499A (en) * | 2015-03-23 | 2017-11-29 | 아마존 테크놀로지스, 인크. | Secure network access using streaming devices |
-
2011
- 2011-02-21 JP JP2011034671A patent/JP2012173946A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014054379A (en) * | 2012-09-12 | 2014-03-27 | Takashi Mukai | Permanent wave application method and permanent wave application device |
JP2015170005A (en) * | 2014-03-05 | 2015-09-28 | 日本電信電話株式会社 | File management system, server device, file management method, user interface providing method and file management program |
KR20170131499A (en) * | 2015-03-23 | 2017-11-29 | 아마존 테크놀로지스, 인크. | Secure network access using streaming devices |
JP2018518727A (en) * | 2015-03-23 | 2018-07-12 | アマゾン テクノロジーズ インコーポレイテッドAmazon Technologies, Inc. | Access to a secure network using a streaming device |
KR102092892B1 (en) * | 2015-03-23 | 2020-03-24 | 아마존 테크놀로지스, 인크. | Secure network access using streaming devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2009287454B2 (en) | New tab pages and bookmark toolbars in a browser | |
JP5816670B2 (en) | Method and device for selecting and displaying a region of interest in an electronic document | |
KR102142080B1 (en) | Interpretation of markup data for mobile devices | |
US9619784B2 (en) | Presenting image previews of webpages | |
JP4991948B1 (en) | Information processing apparatus and information processing method | |
JP2010123073A (en) | Page access method and server | |
WO2012166172A1 (en) | Web browser with quick site access user interface | |
US8087033B2 (en) | Task-based tool for speeding and customizing interactions with web documents | |
JP6015967B2 (en) | Device and program for displaying web pages | |
JP2013058110A (en) | Information processing apparatus, information processing method and program | |
JPWO2008013128A1 (en) | Terminal device, content display method, and content display program | |
KR20080057907A (en) | Method for providing hyperlink information in mobile communication terminal which can connect with wireless-internet | |
KR20070040845A (en) | A display module, a device, a computer software product and a method for a user interface view | |
JP2012173946A (en) | Web page display device and focus control method | |
JP5612796B1 (en) | Information processing apparatus, information processing method, and information processing program | |
JP2018081388A (en) | Program, information processing method, and information processing apparatus | |
WO2010137656A1 (en) | Browsing information gathering system, browsing information gathering method, server, and recording medium | |
WO2016011699A1 (en) | Method and device for use in configuring navigation page of browser | |
JP2012181693A (en) | Web page display control device and scroll control method | |
JP2024509824A (en) | Document editing methods, equipment, devices and storage media | |
JP2009169883A (en) | Simple operation method for web browser | |
JP5237031B2 (en) | Content information processing method, content information processing program, and content information processing apparatus | |
KR100836023B1 (en) | Method and mobile terminal for providing web-page by detecting key word | |
JP2013134657A (en) | Device, method and program for information processing | |
JP2012243076A (en) | Information processing apparatus, information processing method, program, server and information processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140513 |