• 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' を無視するらしく表示できない場合がある)
    • _gProlog
  • Prerequisite前提
    • fss installed
    • gProlog 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>
      
      
    • Setting up server configuration parameters if necessary 必要があれば、サーバ構成パラメタ設定
      Notes.
      • $_wn['docroot'] should be specified usually in the ._wn.wn configuration file ONLY if $_SERVER['DOCUMENT_ROOT'] is not identical with the actual full path of the server.
      • This configuration is not to need in almost cases.
      註記
      • $_SERVER['DOCUMENT_ROOT']が実際のサーバパスと一致しない場合にのみ、通常は ._wn.wn 構成ファイル内に $_wn['docroot'] パラメタを指定する必要がある。
      • ほとんどの場合、この構成は必要ない。
      
      	<?php
      
      
      	################################################################
      	# _gProlog logputs config parameters
      	################################################################
      	# $_gProlog['logputs'] = YourLoggingFunction ['_gProlog_log_std']
      	# $_gProlog['level'] = IgnoreStdLogputsLowerThanThis [_GPROLOG_ERROR]
      	#   $_gProlog['level'] = _GPROLOG_INSECURE; ## only insecure
      	#   $_gProlog['level'] = _GPROLOG_ERROR; ## insecure+error
      	#   $_gProlog['level'] = _GPROLOG_WARNING; ##  insecure+error+warning
      	#   $_gProlog['level'] = _GPROLOG_VERBOSE; ## debug
      	#   $_gProlog['level'] = _GPROLOG_VERY_VERBOSE; ## more info
      	# $_gProlog['to-std'] = RecipientOfStdLogputs [webmaster]
      	# $_gProlog['Yes_I_am_authorized_sending_webmaster'] = 1; # [undef]
      	# $_gProlog['subject-std'] = AnyStringForSubject
      	# $_gProlog['mb_send_mail'] = TRUE; ## use mb_send_mail() instead mail()
      
      
      	################################################################
      	# _wn config parameters
      	################################################################
      	# $_wn['docroot'] should be specified if $_SERVER['DOCUMENT_ROOT']
      	# is not identical with the actual full path of the server.
      |	 $_wn['docroot'] = '/full/path/doc/root/here';
      	# #### Never change followings if you do not know what you do
      	# $_wn['opname'] = 'filemtime';
      	# $_wn['pathpref'] = 'path';
      	# $_wn['constructorName'] = 'wnHostMtimes';
      	# $_wn['operationTimeName'] = 'wnHostNow';
      
      
      	?>
      
      
    • 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
      |	//		elementsObject,		// elements object
      |	//		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
      • _gProlog
      • _jlog.js
      • _wn.js, _wn.php, _wn.html
      • ._wn.wn
      • gpl.txt, dlgpl.php
      • foobar.js
      • foobar.html
  • Sampleサンプル

    n/a

  • Downloadダウンロード

    wn is one of Use? components.

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