<?php
 // PukiWiki - Yet another WikiWikiWeb clone.
 // $Id: ruby.inc.php,v 1.6 2005/05/07 07:41:31 henoheno Exp $
 //
 // Ruby annotation plugin: Add a pronounciation into kanji-word or acronym(s)
 // See also about ruby: http://www.w3.org/TR/ruby/
 //
 // NOTE:
 //  Ruby tag works with MSIE only now,
 //  but readable for other browsers like: 'words(pronunciation)'
 
 define('PLUGIN_TARGET_USAGE', '&target(URL){link name};');
 
 function plugin_target_inline()
 {
 	if (func_num_args() != 2) return PLUGIN_TARGET_USAGE;
 
 	list($url, $body) = func_get_args();
 
 	// strip_htmltag() is just for avoiding AutoLink insertion
 	$body = strip_htmltag($body);
 
 	if ($url == '' || $body == '') return PLUGIN_TARGET_USAGE;
 
 	return '<a href="' . $url . '" target="blank">' . $body . '</a>';
 
 }
 ?>

----
- お札で折り紙→http://www8.ocn.ne.jp/~arumasa/origami/main.html --  &new{2007-02-07 (水) 02:43:10};
- 中村光一さん http://plusd.itmedia.co.jp/games/articles/0607/26/news062.html --  &new{2007-02-07 (水) 16:25:28};

#comment
-----
-[[メモメモ]]


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS