• Summary概略
    About multis
    • multis is an easy to use html-embeded program which implements a multilingual web page.
    • multis generates a selector collecting informaion about languages from embeded html file.
    • The language information consists of html elements with the lang attribute and the predefined classes.
    • The elements selected by the language from the selector will be displayed and the others not selected will be hidden on the page.
    • Note that mulits is embeded into this page as multilingual description for itself. Go to the top of this page to try a language selection from the selector multis generated.
    multis について
    • multisは、多言語Webページを実現する、利用の易しいHTML組み込みプログラムである
    • multisは組み込んだHTMLファイルから言語に関する情報を収集しセレクタを自動生成する
    • 収集される言語情報は、lang属性と所定クラスで限定したHTML要素から構成される
    • セレクタから選ばれた言語で限定されたHTML要素は表示され、その他の非限定HTML要素は当該ページから隠される
    • 注)このページには、自身を多言語解説する為にmultisが組み込まれている。当ページ先頭部にはmultisが生成したセレクタがあり言語を選んでみることが出来る。
  • Sourceソース
    • _multis.js
  • Prerequisite前提
    • fss installed
    • jlog recommended
    • fss 設置済み
    • jlog 推奨
  • Install設置
    How to install設置方法 / Your choice個別設定, Recommendation推奨
    • Extract the distribution archive in your working directory配布物を作業ディレクトリで展開
    • Insert a few lines into your web pageウェブページへの組み込み (foobar.html)
      
      	<html>
      	<head>
      	    :
      |	<script src="_fss.js" type="text/javascript"></script>
      |	<script src="_jlog.js" type="text/javascript"></script>
      |	<script src="_multis.js" type="text/javascript"></script>
      |	<script src="foobar.js" type="text/javascript"></script>
      	    :
      	</head>
      	<body>
      	    :
      |	    <p class="foobar-block" lang="en">
      		foo paragraph...
      |	    </p>
      |	    <p class="foobar-block" lang="ja">
      		foo 段落…
      |	    </p>
      	    :
      |	    <span class="foobar-inline" lang="en">
      		bar example inline
      |	    </span>
      |	    <span class="foobar-inline" lang="ja">
      		bar 例 inline
      |	    </span>
      	    :
      	</body></html>
      
      
    • Insert several lines into your JavaScript fileJavaScript ファイルへの組み込み (foobar.js)
      
      	function foobarInit() {
      			:
      |		_multis.prototype._multisLangLabelObject = {
      |			en: 'English',
      |			ja: '日本語'
      |		};
      |		_multis.prototype._multisClassInline = 'foobar-inline';
      |		_multis.prototype._multisClassBlock = 'foobar-block';
      |		this.oMultis = new _multis;
      |		this.oMultis._multisStart();
      			:
      	}
      
      	window.onload = function () {
      |	//	_fss.prototype._jlOffStartup = true; // to inactivate
      |	//	_fss.prototype._jlHideJlogButtonOnStartup = true; // to hide
      |		_multis.prototype._jlogSetUp(foobarInit);  // log for all
      		foobarInit();
      	}
      
      
    • put the following files to the appropriate directory of your web site以下ファイルをサイトの該当ディレクトリに転送
      • _fss.js, _fss.html
      • _jlog.js
      • _multis.js
      • gpl.txt, dlgpl.php
      • foobar.js
      • foobar.html
  • Sampleサンプル

    n/a

  • Downloadダウンロード

    multis is one of Use? components.

    multis は Use? のコンポーネントである