• Summary概略
    About wn
    • wn is a program detects new contents for visitors.
    • wn consists of a few HTML embedded scripts and the server script.
      • On a visitor's browser wn scripts embedded in an arbitrary web page collects links from the page itself, and requests the server script to obtain the time stamps of the links.
      • And then the server script gets and responses the time stamps.
      • The browser's script decides new contents for this particular visitor and marks the HTML links as new.
    • wn decides the new contents for an every visitor
      • The date and time of every visit is saved into the Cookie of the visitor's browser.
      • Any links have the newer date and time than the last visit date and time are marked as new.
    wn について
    • 訪問者別コンテンツ最新情報検出ソフトウェア
    • ブラウザ・スクリプトおよびサーバ・スクリプトが連携
      • ブラウザ・スクリプトがページ内リンク情報を収集し、サーバ・スクリプトにタイムスタンプ取得依頼
      • サーバ・スクリプトがタイムスタンプを収集し、ブラウザ・スクリプトに通知
      • ブラウザ・スクリプトがサイト訪問者毎の最新を判断しマーク付ける
    • サイト訪問者毎に最新を判断
      • 訪問者ブラウザのクッキーに訪問日時を保存
      • 前回訪問した日時よりも後に更新されたものを最新コンテンツとする
  • Sourceソース
    • _wn.js
    • _wn.php
    • _wn.html (a group of browsers seems to ignore 'Content-type: text/plain', and browsing the html file may collapse)(一部のブラウザは 'Content-type: text/plain' を無視するらしく表示できない場合がある)
  • 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="_wn.js" type="text/javascript"></script>
      |	<script src="foobar.js" type="text/javascript"></script>
      	    :
      	</head>
      	<body>
      	    :
      	<div id="foo-elt-id">
      	    :
      		<a href="foo-1.html">foo #1</a>
      		<a href="foo-2.html">foo #2</a>
      	    :
      	</div>
      	    :
      	<div id="bar-elt-id">
      	    :
      		<a href="bar-a.html">bar A</a>
      		<a href="bar-b.html">bar B</a>
      	    :
      	</div>
      	    :
      	</body></html>
      
      
    • Insert several lines into your JavaScript fileJavaScript ファイルへの組み込み (foobar.js)
      
      
      	function foobarInit() {
      		:
      |	// _wn() constructor interface: [cf. _wn.js]
      |	//	//_wn.prototype._wnEra = 'date -u style string';
      |	//	//_wn.prototype._wnObsolete = digits in days;
      |	//	//_wn.prototype._wnRefresh = 'date -u style string';
      |	//	_wn(elementIds,			// elements array
      |	//		iframeId,		// internal iframe id
      |	//		checkNewMarkObject,	// method
      |	//		setNewMarkObject,	// method
      |	//		modifyNewMarkElement,	// method
      |	//		noCookie,		// [false]
      |	//		revisitEstimated,	// secs no update cookie
      |	//		lastVisitDefault,	// secs when noCookie
      |	//		setNewMark,		// method
      |	//		setNewMarkElt,		// method
      |	//		completion) {		// method
      |		_wnO = new _wn(['foo-elt-id',bar-elt-id, ...]);
      		:
      	}
      
      	window.onload = function () {
      |	//	_fss.prototype._jlOffStartup = true; // to inactivate
      |	//	_fss.prototype._jlHideJlogButtonOnStartup = true; // to hide
      |		foobar.prototype._jlogSetUp(foobarInit);  // log for only foobar 
      |	//	_fss.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
      • _wn.js, _wn.php, _wn.html
      • gpl.txt, dlgpl.php
      • foobar.js
      • foobar.html
  • Sampleサンプル

    n/a

  • Downloadダウンロード

    wn is one of Use? components.

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