JP4874363B2 - Web page display method using browser plug-in - Google Patents
Web page display method using browser plug-in Download PDFInfo
- Publication number
- JP4874363B2 JP4874363B2 JP2009095275A JP2009095275A JP4874363B2 JP 4874363 B2 JP4874363 B2 JP 4874363B2 JP 2009095275 A JP2009095275 A JP 2009095275A JP 2009095275 A JP2009095275 A JP 2009095275A JP 4874363 B2 JP4874363 B2 JP 4874363B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- plug
- browser
- script
- web page
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Description
本発明は、ウェブページを表示する技術の改良に関する。 The present invention relates to an improvement in technology for displaying a web page.
ウェブページをウェブブラウザで表示する態様として、HTMLとCSSを利用した画面表示と、SilverlightやFlash(それぞれ登録商標)といったいわゆるインタラクティブ動画ファイルのプレーヤー等のプラグインを利用した画面表示が知られているが、どちらも一長一短あり、一方では不十分であった。 As a mode of displaying a web page with a web browser, a screen display using HTML and CSS and a screen display using a plug-in such as a so-called interactive video file player such as Silverlight and Flash (each registered trademark) are known. However, both had advantages and disadvantages, but on the other hand, they were insufficient.
すなわち、前者のHTML/CSSを利用した画面表示は、開発が容易で技術的な認知度も高いが、複雑なレイアウトの実現には多数の画像ファイルが必要でサーバアクセスの負荷が大きく、表示までの時間もかかりやすいという問題があった。また、複数な動きのアニメーションなど多様な表示の実現には不向きという限界もあった。 In other words, the former screen display using HTML / CSS is easy to develop and has a high level of technical recognition. However, a large number of image files are required to realize a complicated layout, and the load of server access is large. There was a problem that it took a long time. In addition, there is a limit that is not suitable for realizing various displays such as animation of multiple movements.
一方、後者のプラグインを利用した画面表示は、画像の加工や動きなど高度な内部処理が可能で、少ない画像ファイルで複雑多様な表示レイアウトを行えたり、画像ファイルの数を削減することができ、サーバへのアクセスも抑制可能である反面、技術的な認知度が低く、専用ツールやコストなどを含め開発の負担が大きい問題があった。 On the other hand, the screen display using the latter plug-in can perform advanced internal processing such as image processing and movement, and can perform complex and diverse display layouts with a small number of image files, and can reduce the number of image files. Although access to the server can be suppressed, there is a problem that the technical recognition is low, and the burden of development is large, including dedicated tools and costs.
特に従来、HTML/CSSによる画面レイアウト内に、プラグインによるアニメーション装飾など動画の要素を配置する場合は、ブラウザウィンドウのサイズ変更に合わせて動画の位置やサイズを変更したり、各装飾箇所ごとに動画を配置したり、それらを並行動作させるなど、複雑な画面設計技能や大きなCPU負荷が必須で、困難が大きかった。 In particular, when placing video elements such as plug-in animation decorations in the HTML / CSS screen layout, the position and size of the video can be changed according to the browser window size change. Complex screen design skills and large CPU load, such as arranging moving images and operating them in parallel, are essential and difficult.
なお、プラグインで広範囲の地図をスクロール表示する技術で、互いに異なる範囲を描画するプラグインのプラグラムをサーバからクライアントに順次送信して切り替える際に、直前の表示位置を新たなプログラムにサーバで埋め込む提案は知られているが(例えば、特許文献1参照)、上記のような課題に関るものではなかった。 In addition, when a plug-in program that scrolls and displays a wide range of maps with a plug-in is used to sequentially switch plug-in programs that draw different ranges from the server to the client, the previous display position is embedded in the new program on the server. Although the proposal is known (for example, refer to Patent Document 1), it has not been related to the above-described problem.
本発明は、上記のような課題を解決するもので、その目的は、ブラウザがレイアウトした位置情報をもとにプラグインで動的に画像を加工配置することにより、高度な表示を容易に実現することである。 The present invention solves the above-described problems, and its purpose is to easily realize advanced display by dynamically processing and arranging images by plug-ins based on positional information laid out by the browser. It is to be.
上記の目的をふまえ、本発明の一態様は、ウェブブラウザを備えたクライアントシステムに対してウェブ表示を提供するサーバ装置において、表示対象を記述したマークアップデータ、表示体裁を記述したスタイルシートデータ並びに所定のスクリプトを含むウェブページデータと、所定のブラウザプラグイン上で動作する表示プログラムと、を所定の通信ネットワーク経由で前記クライアントシステムの前記ウェブブラウザへ送信する送信手段を有し、前記スクリプトは、前記ウェブページデータを前記ウェブブラウザが表示したことを検知して、各表示対象の表示位置の情報を前記ウェブブラウザから取得し、その表示位置に対応して表示すべき画像の内容及び加工態様を表す情報を前記ウェブページデータから取得し、これら取得した各情報を表示指示情報として前記表示プログラムに渡すように構成し、前記表示プログラムは、前記ウェブブラウザの表示ウィンドウにプラグイン表示層を生成して、そのプラグイン表示層に、前記表示指示情報の表す前記加工態様及び前記表示位置に対応した位置で画像を表示するように構成したことを特徴とする。 Based on the above object, according to one aspect of the present invention, in a server device that provides a web display to a client system including a web browser, markup data that describes a display object, style sheet data that describes a display format, and a predetermined format Transmission means for transmitting the web page data including the script and a display program operating on a predetermined browser plug-in to the web browser of the client system via a predetermined communication network, It detects that the web browser displayed the web page data, acquires information on the display position of each display target from the web browser, and represents the content and processing mode of the image to be displayed corresponding to the display position Information was acquired from the web page data, and these were acquired The information is passed to the display program as display instruction information, and the display program generates a plug-in display layer in the display window of the web browser and represents the display instruction information in the plug-in display layer. An image is displayed at a position corresponding to the processing mode and the display position.
また、上記装置に限らず、上記装置に対応する方法及びコンピュータ・プログラムもそれぞれ本発明の態様である。さらに、上記のように構成される本発明の作用及び効果、並びに本発明の他の各態様における構成、作用及び効果については、実施形態などを通じて後述する通りである。 Further, not only the above apparatus but also a method and a computer program corresponding to the above apparatus are also aspects of the present invention. Furthermore, the operations and effects of the present invention configured as described above, and the configurations, functions, and effects in other aspects of the present invention are as described later through the embodiments and the like.
本発明によれば、ブラウザがレイアウトした位置情報をもとにプラグインで動的に画像を加工配置することにより、高度な表示を容易に実現できる。 According to the present invention, it is possible to easily realize advanced display by dynamically processing and arranging an image with a plug-in based on position information laid out by a browser.
次に、本発明を実施するための形態(「実施形態」と呼ぶ)について、図に沿って説明する。なお、背景技術や課題などで既に述べた内容と共通の前提事項については適宜省略する。 Next, modes for carrying out the present invention (referred to as “embodiments”) will be described with reference to the drawings. It should be noted that assumptions common to those already described in the background art and problems are omitted as appropriate.
〔1.構成〕
本実施形態は、図1(構成図)に示すように、インターネットや携帯電話網に代表される通信ネットワークN経由で、ウェブブラウザBを備えたクライアントシステム(以下「端末」とも呼ぶ)1に対してウェブ表示を提供するサーバ装置(以下単に「サーバ」とも呼ぶ)2に関するもので、そのような端末1に対して、サーバ2からウェブ表示を提供するウェブページ表示方法や、コンピュータ・プログラムとしても把握可能である。[1. Constitution〕
In the present embodiment, as shown in FIG. 1 (configuration diagram), a client system (hereinafter also referred to as “terminal”) 1 provided with a web browser B via a communication network N represented by the Internet or a mobile phone network. And a web page display method for providing web display from the
端末1及びサーバ2は、図1に示すように、一般的なコンピュータの構成として、少なくとも、CPUなどの演算制御部5と、外部記憶装置(HDD等)や主メモリ等の記憶装置6と、通信ネットワークNとの通信手段7(LANアダプタなど)と、を有し、それぞれ、記憶装置6に予め記憶(インストール)した図示しない所定のコンピュータ・プログラムが演算制御部5を制御することで、図1に示す各手段(端末1のウェブブラウザB及びプラグインFを含む)を実現する。 As shown in FIG. 1, the
これら各要素のうち、情報を記憶する手段は、記憶装置6においてファイルや各種データベース(以下「DB」と表す)、配列等の変数、システム設定値など任意の形式で実現し、また、その他の情報処理を行う各要素は、以下のような各機能や処理を実現・実行する処理手段である。また、プラグインFは、SilverlightやFlash(それぞれ登録商標)など、いわゆるインタラクティブ動画ファイルを再生するプレーヤーであるプラグイン・プログラムである。なお、以下、説明をわかりやすくするため、ブラウザBとプラグインFのそれぞれによる表示領域に同じ符号B、Fを用いる。 Among these elements, the means for storing information is realized in an arbitrary format such as a file, various databases (hereinafter referred to as “DB”), a variable such as an array, a system setting value, or the like in the
〔2.基本的な作用及び効果〕
〔2−1.サーバでの処理〕
上記のように構成した本実施形態において、あるウェブページを表示しようとするとき、サーバ装置2の送信手段10が配信データD、すなわち、そのウェブページを表すウェブページデータ8と、プラグインF上で動作する画面表示用の表示プログラムPと、を通信ネットワークN経由でクライアントシステム1のウェブブラウザBへ送信する(送信処理ステップ)。[2. Basic action and effect)
[2-1. Server processing)
In the present embodiment configured as described above, when a certain web page is to be displayed, the transmission means 10 of the
このようなウェブページデータ8については、固定された内容を記憶手段20に予め記憶しておき、これを送信手段10が単に読み出して送信してもよいし、記憶手段20に予め記憶したウェブページデータ8の原型やひな型などを、CGI手段30がユーザとのインタラクション(やり取り)に応じて加工したものを送信してもよい。 For such web page data 8, the fixed content may be stored in advance in the storage unit 20, and the transmission unit 10 may simply read and transmit it, or the web page stored in the storage unit 20 in advance. You may transmit what the CGI means 30 processed the prototype of the data 8, the model, etc. according to the interaction (exchange) with a user.
いずれにしても、送信手段10が最初に送信するのはウェブページデータ8で、このウェブページデータ8は、表示対象を記述したマークアップデータであるHTML(HyperText Markup Language)データ(以下、単に「HTML」と表す)と、前記各表示対象の表示体裁を記述したスタイルシートデータであるCSS(Cascading Style Sheets)データ(以下、単に「CSS」と表す)と、所定のスクリプトSと、を含み、このHTML又はスクリプトSがURL指定などでプログラムPを呼び出して起動する構成である。 In any case, the transmission means 10 first transmits the web page data 8, and this web page data 8 is HTML (HyperText Markup Language) data (hereinafter simply referred to as “HTML”) which is markup data describing a display target. ”, CSS (Cascading Style Sheets) data (hereinafter simply referred to as“ CSS ”) that is a style sheet data describing the display format of each display object, and a predetermined script S. The HTML or script S is configured to call and start the program P by URL designation or the like.
このうち、スクリプトSは、プログラムPを制御するもので、javascriptなどで記述され、また、HTMLは、プログラムPに委託する画像表示等の描画内容を指示する情報を、任意の所定のタグや形式で記述している。端末1の受信手段50は、受信した上記のような配信データDを記憶手段60に記憶する。 Of these, the script S controls the program P and is described in javascript or the like, and the HTML specifies information indicating drawing contents such as image display entrusted to the program P in any given tag or format. It is described in. The
〔2−2.クライアントシステムでの処理〕
上記のような配信データDに基づいて、クライアントシステム1で画面を表示する処理手順を図2のフローチャートに示す。すなわち、まず、ウェブページデータ8を表示する際、HTML又はスクリプトSが表示プログラムPを起動し(ステップS1,S11)、表示プログラムPがまず、ウェブブラウザBの表示ウィンドウにプラグイン表示層を生成する(ステップS12)。ここで、プラグイン表示層すなわちプラグイン表示領域は、初期状態では透明で、かつ、表示ウィンドウにおけるブラウザ表示領域の背面全体に表示するものとする。[2-2. Processing on the client system)
A processing procedure for displaying a screen on the
ここで、実装としては、代表的なウェブブラウザにおいていわゆるzIndexを用いて階層順序を制御する場合、背景色のみのHTML層を最背面(zIndex=0)、その手前を透明なプラグイン表示層(zIndex=1)、実際の文字等を置くHTML層を一番手前(zIndex=2)、のように制御する例が考えられる。 Here, as an implementation, when a hierarchical order is controlled using a so-called zIndex in a typical web browser, an HTML layer of only the background color is the backmost (zIndex = 0), and a transparent plug-in display layer ( An example is conceivable in which zIndex = 1), and the HTML layer on which an actual character or the like is placed is controlled to the front (zIndex = 2).
また、スクリプトSは、ウェブページデータ8について読み込みが完了しウェブブラウザBによる表示が行われたことを検知すなわち判断すると(ステップS3)、HTMLで記述された文字列など各表示対象の表示位置を表す表示位置情報をウェブブラウザBから取得し(ステップS4)、また、その表示位置に対応して(例えば表示位置の周囲などに)表示すべき画像の内容及び加工態様を表す情報をウェブページデータ8から取得する(ステップS5)。そのうえで、スクリプトSは、これら取得した各情報(即ち、前記表示位置情報並びに画像の内容及び加工態様を表す情報)を表示指示情報として表示プログラムPに渡す(ステップS6)。 When the script S detects or determines that the web page data 8 has been read and displayed by the web browser B (step S3), the script S determines the display position of each display target such as a character string described in HTML. Display position information to be displayed is acquired from the web browser B (step S4), and information indicating the content and processing mode of the image to be displayed corresponding to the display position (for example, around the display position) is displayed on the web page data. 8 (step S5). In addition, the script S passes the acquired information (that is, the information indicating the display position information and the contents and processing mode of the image) to the display program P as display instruction information (step S6).
ここで、スクリプトが検知する表示は(ステップS3)、ページを新規に表示する場合に限らず、ウィンドウサイズ変更などによる再表示も含み、このような変更や再表示は、代表的なウェブブラウザにおいて、「onresize」など所定の予約語で検知することができる。また、スクリプトSが表示位置情報をウェブブラウザBから取得する表示対象は、例えば、HTML上において、本発明の表示プログラムP用に記述された全てのHTMLタグ(例えば、タグに記述されているスタイル情報に所定の予約語が入っているもの)についてである。 Here, the display detected by the script (step S3) is not limited to the case where a page is newly displayed, but also includes re-display by changing the window size. Such change and re-display are performed in a typical web browser. , “Onresize”, and the like, can be detected with a predetermined reserved word. Moreover, the display object from which the script S acquires the display position information from the web browser B is, for example, all HTML tags described for the display program P of the present invention (for example, the style described in the tag) on HTML. Information with a predetermined reserved word).
ここで、あるウェブページに関する数組(数行)の表示指示情報の一例を図3に示す。すなわち、表示指示情報は、表示位置情報と、画像指定情報と、加工情報と、を含む。このうち、表示位置情報は、ウェブブラウザBから取得し、例えば、表示対象ごとに、ブラウザ表示領域内で占める(すなわち、ブラウザBから割り当てられた)範囲の始点座標(x,y)と、幅(w)及び高さ(h)を含む。また、表示指示情報は、表示すべき画像の内容を表す情報、例えば表示すべき画像ファイルを指定するURLなどで、以下「画像指定情報」と呼ぶ。 Here, FIG. 3 shows an example of several sets (several lines) of display instruction information related to a certain web page. That is, the display instruction information includes display position information, image designation information, and processing information. Among these, the display position information is acquired from the web browser B. For example, for each display target, the start point coordinates (x, y) of the range occupied in the browser display area (that is, assigned by the browser B), and the width (W) and height (h). The display instruction information is information representing the contents of an image to be displayed, for example, a URL for designating an image file to be displayed, and is hereinafter referred to as “image designation information”.
ここで、図4は、このような位置関係の一例を示す概念図で、この例における座標系は、左上隅を原点(0,0)として、右方向に向けて座標値xが増加し、下方向に向けて座標値yが増加する。この例は、ブラウザ表示領域Bとプラグイン表示領域Fは範囲も座標値も等しく、ピクセル(画素)数を単位として、ある表示対象Hの表示位置が始点座標HZ(400,500)、幅w=500、高さh=300という範囲で、その表示位置に対応して画像を表示する描画範囲Tを、その表示位置の周囲縦横100ピクセルまでの範囲(図中で散点によるグレーで表す)として、その背面レイヤーであるプラグイン表示領域F(図中、始点TZから始まる範囲)に所定の画像内容を描画することで縁飾りを施す例である。 Here, FIG. 4 is a conceptual diagram showing an example of such a positional relationship. In the coordinate system in this example, the coordinate value x increases in the right direction with the upper left corner as the origin (0, 0), The coordinate value y increases in the downward direction. In this example, the browser display area B and the plug-in display area F have the same range and coordinate values, and the display position of a display target H is the start point coordinates HZ (400, 500) and the width w with the number of pixels as the unit. A drawing range T for displaying an image corresponding to the display position in a range of = 500 and a height h = 300 is a range up to 100 pixels around the display position in the vertical and horizontal directions (shown in gray by dotted points in the figure). As an example, border decoration is performed by drawing predetermined image contents in the plug-in display area F (the range starting from the start point TZ in the figure) which is the back layer.
また、加工情報は、加工態様を表す情報で(図3)、パラメータのセットなどであり、拡大縮小などの処理の種類や処理に用いる定数や属性など自由に定めるものであるが、例えば、横方向及び縦方向の各拡大縮小の有無や拡大縮小率、回転角度や動きの速さ、色彩加工などにおける適用フィルタ種類やRGB指定、動きなどのオプションといった要素を自由に組合せて実装可能である。 Further, the processing information is information representing a processing mode (FIG. 3) and is a set of parameters and the like, and is freely determined such as the type of processing such as enlargement / reduction, constants and attributes used for processing, etc. It can be implemented by freely combining elements such as the presence / absence of enlargement / reduction in each direction and the vertical direction, the enlargement / reduction ratio, the rotation angle, the speed of movement, the type of applied filter in color processing, RGB designation, and options such as movement.
そして、表示プログラムPは、受け取った各表示対象ごとに、表示指示情報のうち、画像指定情報が表す画像を取得し、加工情報の表す加工態様で拡大縮小等の加工を施した上で、表示位置の情報に対応したプラグイン表示領域Fの位置すなわち描画範囲Tに表示する(ステップS17)。 Then, the display program P obtains the image indicated by the image designation information from the display instruction information for each received display target, performs processing such as enlargement / reduction in the processing mode indicated by the processing information, and then displays the image. The position is displayed in the position of the plug-in display area F corresponding to the position information, that is, the drawing range T (step S17).
また、ブラウザBの表示ウィンドウについて、リサイズや表示位置が変更されるとスクリプトSはこれを検出し(ステップS3)、表示プログラムPに対してリセット命令を送信し(ステップS8)、表示プログラムPはこのリセット命令を受け取ると(ステップS18)プラグイン表示領域Fに現在表示している全てのものを消去し(ステップS19)、その後、以上と同じ処理で再表示を行うことで表示内容を更新する。 When the resizing or display position of the display window of the browser B is changed, the script S detects this (step S3), transmits a reset command to the display program P (step S8), and the display program P When this reset command is received (step S18), everything currently displayed in the plug-in display area F is erased (step S19), and then the display content is updated by performing re-display in the same processing as above. .
〔2−3.HTML上のx,y,w,h座標の取得方法〕
また、上記のような各表示対象の前記表示位置情報は、例えば以下のように取得する。すなわち、典型的なウェブブラウザを例にとり、あるIDを持つタグ(に対応する文字列や画像などの対象)をブラウザが表示領域上でレイアウトした表示位置等の座標情報の取得に用いる記述例を以下に示す。[2-3. How to obtain x, y, w, h coordinates on HTML]
Further, the display position information of each display target as described above is acquired as follows, for example. That is, taking a typical web browser as an example, a description example used to acquire coordinate information such as a display position in which a browser lays out a tag (corresponding to a character string or image) corresponding to a certain ID on the display area. It is shown below.
まず、HTML上であるタグを取得する:
「
var t=document.getElementById(″HTMLタグ上に記述されたID″);
」
タグの表示領域の高さを取得(tに対して):「
t.scrollHeight
」
タグの表示領域の幅を取得(tに対して):「
t.scrollWidth
」
また、タグの画面上のブラウザ左上からの見た目のx座標を取得:「
t.clientX
」
タグの画面上のブラウザ左上からの見た目のy座標を取得:「
t.clientY
」First, get the tags that are on HTML:
"
var t = document. getElementById ("ID described on HTML tag");
"
Get tag display area height (relative to t):
t. scrollHeight
"
Get tag display area width (for t):
t. scrollWidth
"
Also, get the apparent x-coordinate from the top left of the browser on the tag screen:
t. clientX
"
Get the visual y coordinate from the top left of the browser on the tag screen:
t. clientY
"
また、ブロック要素の直下にいくつかのインライン要素が従属する構成が一般的であるが、あるタグの直下のX番目のタグを取得:「
t.childNodes[X]
」
あるタグの直下のタグの個数を取得:「
t.childNodes.length
」
あるタグのYスタイル情報を取得:「
t.style[Y]
」
あるプラグインプログラムを取得:「
var f=window.[HTMLタグ上に記述されたID];
」
プラグインプログラム上の関数Zを呼び出し:「
f.z(引数1,引数2,...);
」
プラグインプログラム側から呼び出し関数Zを設定:「
ExternalInterface.addCallback(″関数名″,呼び出し関数);
」Also, it is common for some inline elements to be subordinate to block elements, but get the Xth tag directly under a certain tag:
t. childNodes [X]
"
Get the number of tags directly under a tag:
t. childNodes. length
"
Get Y style information for a tag:
t. style [Y]
"
Get a plug-in program:
var f = window. [ID described on the HTML tag];
"
Call function Z on the plug-in program:
f. z (argument1, argument2, ...);
"
Set the call function Z from the plug-in program:
ExternalInterface. addCallback ("function name", calling function);
"
〔2−4.基本的な効果〕
本実施形態では、上記の処理によって、表示内容を主とするHTMLやCSSの記述からブラウザがレイアウトを決定した配置位置の情報をもとに、Flash等のプラグインが高度なアニメーションや画像の加工を含む配置処理の部分を支援するので、複雑なウェブページデザインの場合も含めてレイアウトの動的変更が高速となり、特別な高度な設計技量無しでブラウザのレンダリング性能を超えた高度な表示で優れた表現力が実現できる。[2-4. Basic effect)
In the present embodiment, the plug-in such as Flash performs advanced animation and image processing based on the information on the arrangement position where the browser has determined the layout from the description of HTML and CSS mainly including the display contents by the above processing. Because it supports the part of the layout process that includes, dynamic layout changes, even in the case of complex web page designs, are fast, and it is excellent in advanced display that exceeds the rendering performance of the browser without special advanced design skills Expressive power can be realized.
〔3.切出し範囲の指定〕
また、表示プログラムPにより画像から所望の範囲を切り出して表示させることも可能である。この場合、スクリプトSは、加工情報に、原画像からの切出し範囲を表す情報を含める。切出し範囲を表す情報は、典型的には、図5の概念図に示すように、原画像の座標系における原点(0,0)からみた切出し範囲の始点(x1,y1)座標と、切出しサイズの幅w1と高さh1の情報であるが、例えば、始点座標と終点座標の組その他の表現形式でもよい。[3. (Specify the cutting range)
It is also possible to cut out and display a desired range from the image by the display program P. In this case, the script S includes information representing the cutout range from the original image in the processing information. As shown in the conceptual diagram of FIG. 5, the information representing the cut-out range is typically the start point (x1, y1) coordinates of the cut-out range viewed from the origin (0, 0) in the coordinate system of the original image, and the cut-out size. The information of the width w1 and the height h1 is, for example, a set of start point coordinates and end point coordinates and other representation formats.
そして、上記のような切出し範囲部分の画像を元に、加工情報で指定されている加工を施したうえ、ブラウザ表示領域Bのうち、描画範囲(図5の例では、始点x2,y2と幅w2、高さh2で特定される範囲)に表示する。 Then, based on the image of the cutout area as described above, the processing specified by the processing information is performed, and the drawing range (in the example of FIG. 5, the start points x2 and y2 and the width of the browser display area B). (range specified by w2, height h2).
このように、HTMLのタグの記述などに基づいて、スクリプトが加工態様として、もとの画像からの切出し範囲を指定することにより、多数の画像を用いる表示内容についてもファイル毎に個別にサーバから取得することなく、様々な部分や装飾要素などを単一又は少数の画像に合成してサーバから簡易かつ迅速にまとめて転送することが可能となり、表示のための通信負荷が一層軽減できる。 In this way, the script specifies the cutout range from the original image as a processing mode based on the description of the HTML tag, etc., so that the display contents using a large number of images can be individually received from the server for each file. Without acquisition, it becomes possible to synthesize various parts and decoration elements into a single or a small number of images and transfer them together easily and quickly from the server, further reducing the communication load for display.
〔4.プラグイン表示領域の限定〕
また、プラグイン表示領域は、表示ウィンドウに表示されるブラウザ表示領域の全域に限らず、一部としてもよい。この場合、表示プログラムPは、図6に示すように、ブラウザ表示領域B内の所定の相対原点座標F2Zから始まる部分に前記プラグイン表示層をプラグイン表示領域F2として生成する一方、このプラグイン表示領域F2の配置されている範囲を表す情報、すなわちブラウザ表示領域の原点座標B(0,0)からみた始点である相対限定座標の座標値と、広さ(終点)を表す幅と高さなどの情報を、スクリプトSが表示プログラムPに対して通知する。[4. (Limitation of plug-in display area)
The plug-in display area is not limited to the entire browser display area displayed in the display window, and may be a part of the browser display area. In this case, as shown in FIG. 6, the display program P generates the plug-in display layer as a plug-in display area F2 at a portion starting from a predetermined relative origin coordinate F2Z in the browser display area B. Information representing the range in which the display area F2 is arranged, that is, the coordinate values of the relative limited coordinates that are the starting point viewed from the origin coordinates B (0, 0) of the browser display area, and the width and height representing the width (end point) For example, the script S notifies the display program P of such information.
例えば、図6に示す例では、ブラウザ表示領域Bのうち相対原点座標F2Z(200,100)を始点にプラグイン表示領域F2が配置されている。なお、図中「B(200,100)F(0,0)」のような併記は、その座標(例えば相対原点座標F2Z)の座標値が、ブラウザ表示領域Bの座標系では(200,100)で、プラグイン表示領域F2の座標系では(0,0)となることを表している。 For example, in the example shown in FIG. 6, the plug-in display area F2 is arranged starting from the relative origin coordinate F2Z (200, 100) in the browser display area B. In the drawing, “B (200, 100) F (0, 0)” indicates that the coordinate value of the coordinate (for example, the relative origin coordinate F2Z) is (200, 100) in the coordinate system of the browser display area B. ) Represents (0, 0) in the coordinate system of the plug-in display area F2.
そして、図6の例では、表示プログラムPは、スクリプトSから渡された描画範囲原点TZのブラウザ座標値(例えばB(300,400))から、予め通知された前記相対原点座標F2Z(200,100)の各値を減じることでプラグイン表示領域F2における座標値F(100,300)に換算して表示処理を行う。なお、どの場合も、描画範囲が表示プログラムPにおけるプラグイン表示領域より外の場合には表示の対象外となる。 In the example of FIG. 6, the display program P uses the browser coordinate value (for example, B (300, 400)) of the drawing range origin TZ passed from the script S to notify the relative origin coordinate F2Z (200, By subtracting each value of 100), the display processing is performed by converting into the coordinate value F (100, 300) in the plug-in display area F2. In any case, if the drawing range is outside the plug-in display area in the display program P, it is not displayed.
このように、表示プログラムにおいて、ブラウザ表示領域の一部分にプラグイン表示層を生成し、ブラウザ表示領域の原点座標からみた相対原点座標の差分(オフセット)をスクリプトからの表示位置座標に反映した上で画像を表示することにより、目的や状況に応じてプラグイン表示層の座標範囲を限定しつつ、そのことを意識せずにウェブページデータを構成することが可能となる。なお、プラグイン表示領域は異なる位置範囲に複数設けてもよい。 In this way, in the display program, a plug-in display layer is generated in a part of the browser display area, and the difference (offset) of the relative origin coordinates viewed from the origin coordinates of the browser display area is reflected in the display position coordinates from the script. By displaying the image, it is possible to configure the web page data without being aware of that while limiting the coordinate range of the plug-in display layer according to the purpose and situation. A plurality of plug-in display areas may be provided in different position ranges.
さらに、図6に太い破線の矩形で示すように、ブラウザのスクロールによるウィンドウ表示範囲Wも考慮し、各時点におけるブラウザのスクロール状態を座標値に加味するには、ブラウザの現在の縦スクロール量:「
document.body.scrollTop
」
ブラウザの現在の横スクロール量:「
document.body.scrollLeft
」
と表示対象の位置座標を加算すればよく、すなわち、タグのブラウザ表示領域左上からのx座標を取得:「
t.clientX+document.body.scrollTop
」
タグのブラウザ表示領域左上からのy座標を取得:「
t.clientY+document.body.scrollLeft
」
とすればよい。Further, as shown by the thick broken line rectangle in FIG. 6, in consideration of the window display range W by scrolling the browser, the browser scroll state at each time point is added to the coordinate value in order to add the current vertical scroll amount of the browser: "
document. body. scrollTop
"
Current horizontal scroll amount of browser: “
document. body. scrollLeft
"
And the position coordinates of the display target can be added, that is, the x coordinate from the upper left of the browser display area of the tag is acquired: “
t. clientX + document. body. scrollTop
"
Get the y coordinate from the upper left of the browser display area of the tag:
t. clientY + document. body. scrollLeft
"
And it is sufficient.
つまり、ページ左上に表示されているロゴなどは、当初「t.clientY」はゼロに近い値になるが、画面を下にスクロールした後で、再度「t.clientY」を取得するとマイナスの値が帰ってくることとなる。例えば、図6の例において、プラグイン表示領域F2は、ブラウザ表示領域Bの座標系での始点の座標値はB(200,100)でy座標は100であるが、図6に太い破線の矩形で示すように、200ピクセルスクロールした状態では、表示ウィンドウWの範囲外となり、前記y座標は200減じられて−100となる。 In other words, the logo displayed at the upper left of the page initially has “t.clientY” close to zero, but after scrolling down the screen and acquiring “t.clientY” again, the negative value is I will come back. For example, in the example of FIG. 6, the plug-in display area F2 has a coordinate value of the start point in the coordinate system of the browser display area B, B (200, 100), and the y coordinate is 100. As shown by the rectangle, when the screen is scrolled by 200 pixels, it is out of the range of the display window W, and the y coordinate is reduced by 200 to -100.
〔5.実施例〕
以上のような実施形態によれば、図7に例示するように、ブラウザ表示領域B内の単一のプラグイン表示領域F3を、いわば画面修飾統合部品の位置付けで利用し、タイトルや本文などの表示対象H1,H2,H3,H4ごとに、個別の描画範囲T1,T2,T3,T4に動画装飾のみならず動画広告も容易かつ自在に表示することができる。
〔6.他の実施形態〕
なお、上記実施形態は例示に過ぎず、本発明は、以下に例示するものやそれ以外の他の実施態様も含むものである。例えば、以上の説明や各図に示した構成、処理手順、データや情報、画面構成などは例示に過ぎず、各要素の有無、その順序や具体的内容などは適宜変更可能である。また、本発明において、各手段などの要素は、コンピュータの演算制御部に限らず、ワイヤードロジック等に基づく電子回路で実現してもよい。[5. Example〕
According to the embodiment as described above, as illustrated in FIG. 7, the single plug-in display area F3 in the browser display area B is used for positioning the so-called screen modification integrated parts, and titles, texts, etc. For each display target H1, H2, H3, and H4, not only animation decoration but also animation advertisement can be displayed easily and freely in the individual drawing ranges T1, T2, T3, and T4.
[6. Other embodiments]
In addition, the said embodiment is only an illustration and this invention includes what is illustrated below and other embodiment other than that. For example, the configuration, processing procedure, data and information, screen configuration, and the like shown in the above description and each drawing are merely examples, and the presence / absence of each element, its order, specific contents, and the like can be changed as appropriate. In the present invention, elements such as each means may be realized by an electronic circuit based on a wired logic or the like without being limited to an arithmetic control unit of a computer.
N 通信ネットワーク
1 サーバ装置(サーバ)
2 クライアントシステム(端末)
5 演算制御部
6 記憶装置
7 通信手段
10 送信手段
20,60 記憶手段
30 CGI手段
50 受信手段
D 表示手段
M 入力装置
B ウェブブラウザ
F プラグイン
D 配信データ
P 表示プログラム
S スクリプト
2 Client system (terminal)
5
Claims (4)
表示対象を記述したマークアップデータ、表示体裁を記述したスタイルシートデータ並びに所定のスクリプトを含むウェブページデータと、所定のブラウザプラグイン上で動作する表示プログラムと、を所定の通信ネットワーク経由で前記クライアントシステムの前記ウェブブラウザへ送信する送信手段を有し、
前記スクリプトは、前記ウェブページデータを前記ウェブブラウザが表示したことを検知して、各表示対象の表示位置の情報を前記ウェブブラウザから取得し、その表示位置に対応して表示すべき画像の内容及び加工態様を表す情報を前記ウェブページデータから取得し、これら取得した各情報を表示指示情報として前記表示プログラムに渡すように構成し、
前記表示プログラムは、前記ウェブブラウザの表示ウィンドウにプラグイン表示層を生成して、そのプラグイン表示層に、前記表示指示情報の表す前記加工態様及び前記表示位置に対応した位置で画像を表示するように構成した
ことを特徴とするサーバ装置。In a server device that provides a web display to a client system equipped with a web browser,
Markup data describing a display object, style sheet data describing a display style, web page data including a predetermined script, and a display program operating on a predetermined browser plug-in via the predetermined communication network Transmission means for transmitting to the web browser of
The script detects that the web browser has displayed the web page data, acquires information on the display position of each display target from the web browser, and the content of the image to be displayed corresponding to the display position And information representing the processing mode is acquired from the web page data, each of the acquired information is configured to be passed to the display program as display instruction information,
The display program generates a plug-in display layer in the display window of the web browser, and displays an image on the plug-in display layer at a position corresponding to the processing mode and the display position represented by the display instruction information. A server device that is configured as described above.
ことを特徴とする請求項1又は2記載のサーバ装置。The display program generates the plug-in display layer in a portion starting from a predetermined relative origin coordinate in a browser display area displayed in the display window, and uses the relative value from the display position coordinate value passed from the script. The server apparatus according to claim 1, wherein the image to be displayed is displayed with respect to a position coordinate obtained by subtracting a coordinate value of an origin coordinate.
前記サーバ装置から、表示対象を記述したマークアップデータ、表示体裁を記述したスタイルシートデータ並びに所定のスクリプトを含むウェブページデータと、所定のブラウザプラグイン上で動作する表示プログラムと、を所定の通信ネットワーク経由で前記クライアントシステムの前記ウェブブラウザへ送信する送信処理ステップと、
前記クライアントシステムにおいて、
前記スクリプトが、前記ウェブページデータを前記ウェブブラウザが表示したことを検知するステップと、
前記スクリプトが、各表示対象の表示位置の情報を前記ウェブブラウザから取得する処理ステップと、
前記スクリプトが、その表示位置に対応して表示すべき画像の内容及び加工態様を表す情報を前記ウェブページデータから取得するステップと、
前記スクリプトが、取得した前記表示位置の情報並びに画像の内容及び加工態様を表す情報を、表示指示情報として前記表示プログラムに渡す処理ステップと、
前記表示プログラムが、前記ウェブブラウザの表示ウィンドウにプラグイン表示層を生成するステップと、
前記表示プログラムが、前記プラグイン表示層に、前記表示指示情報の表す前記加工態様及び前記表示位置に対応した位置で画像を表示するステップと、
を含むことを特徴とするウェブページ表示方法。In a web page display method for providing a web display from a server device to a client system having a web browser,
From the server device, markup data describing a display object, style sheet data describing a display style, web page data including a predetermined script, and a display program operating on a predetermined browser plug-in, a predetermined communication network A transmission processing step for transmitting to the web browser of the client system via
In the client system,
Detecting that the script has displayed the web page data by the web browser;
The script acquires processing position information of each display target from the web browser,
The script acquires information representing the content and processing mode of the image to be displayed corresponding to the display position from the web page data;
A process in which the script passes the acquired information on the display position and information representing the content and processing mode of the image to the display program as display instruction information;
The display program generating a plug-in display layer in a display window of the web browser;
The display program displaying an image on the plug-in display layer at a position corresponding to the processing mode and the display position represented by the display instruction information;
A method for displaying a web page, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009095275A JP4874363B2 (en) | 2009-03-17 | 2009-03-17 | Web page display method using browser plug-in |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009095275A JP4874363B2 (en) | 2009-03-17 | 2009-03-17 | Web page display method using browser plug-in |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010218522A JP2010218522A (en) | 2010-09-30 |
| JP4874363B2 true JP4874363B2 (en) | 2012-02-15 |
Family
ID=42977243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009095275A Expired - Fee Related JP4874363B2 (en) | 2009-03-17 | 2009-03-17 | Web page display method using browser plug-in |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4874363B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5538312B2 (en) * | 2011-07-15 | 2014-07-02 | 日本電信電話株式会社 | Web browser-linked game generation device, Web browser-linked game generation method, and program thereof |
| JP6199575B2 (en) * | 2013-02-18 | 2017-09-20 | 株式会社ぐるなび | Computer program, computer, and content usage method |
| JP6478226B2 (en) * | 2016-03-01 | 2019-03-06 | Kddi株式会社 | Image display system, server device, terminal device, and program |
| CN112733053B (en) * | 2020-12-31 | 2023-06-27 | 抖音视界有限公司 | Page detection method, page detection device, electronic equipment and computer readable medium |
| CN114676330B (en) * | 2022-03-30 | 2023-12-08 | 南京厚建软件有限责任公司 | Method for uniformly recovering interactive data of Internet platform |
| CN119202434B (en) * | 2024-09-23 | 2025-03-21 | 上海翱坤信息科技有限公司 | A browser big data rendering implementation method and system |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4433379B2 (en) * | 2003-11-27 | 2010-03-17 | ソニー株式会社 | Content distribution apparatus and method, recording medium, and program |
| US7779105B2 (en) * | 2004-10-22 | 2010-08-17 | Access Co., Ltd. | Parameter setting/storing method |
-
2009
- 2009-03-17 JP JP2009095275A patent/JP4874363B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010218522A (en) | 2010-09-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5324411B2 (en) | Advertisement distribution apparatus, method and program | |
| KR101305781B1 (en) | Display control device, recording medium whereupon display program is recorded, and display control method | |
| EP2360562B1 (en) | Image processing device, information processing device, image processing method, and information processing method | |
| US20140006988A1 (en) | Content display device, content display method, program, and recording medium | |
| US8443277B2 (en) | Digital content enhancement platform | |
| EP3832459B1 (en) | Graphic drawing method and apparatus, device, and storage medium | |
| JP4874363B2 (en) | Web page display method using browser plug-in | |
| JP2013080321A (en) | Information processing apparatus and method, and program | |
| US9792268B2 (en) | Zoomable web-based wall with natural user interface | |
| JP2014149860A (en) | Information display method of portable multifunctional terminal, information display system using the same, and portable multifunctional terminal | |
| JP2012043140A (en) | Web page browsing system and relay server | |
| JP2004320534A (en) | Image display method | |
| JP2018049495A (en) | Calculation device, graph display method of calculation device, and program | |
| US20160004389A1 (en) | Display controller, display control method, control program, and recording medium | |
| JP2007256529A (en) | Document image display device, information processing device, document image display method, information processing method, document image display program, recording medium, and data structure | |
| WO2014188496A1 (en) | Information processing device | |
| JP2012014487A (en) | Information processing device, information browsing device, information processing method and program | |
| JP2011086050A (en) | Information processing terminal and computer program | |
| JP5303534B2 (en) | Appearance information processing apparatus and method | |
| JP2006331142A (en) | Information provision system, information provision method, etc. | |
| CN115469870A (en) | Method, device, electronic equipment and medium for online file processing | |
| KR101345726B1 (en) | Method for printing a captured screen of web pages | |
| JP6339550B2 (en) | Terminal program, terminal device, and terminal control method | |
| WO2014031011A1 (en) | Website building tool | |
| US20140344655A1 (en) | Mapping of Defined Regions Within a Webpage |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111013 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111025 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111122 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141202 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4874363 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees | ||
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |