これはpopup プラグインを使ったテストです。
ポップアップヘルプを表示する
ある文字列にポップアップヘルプをつけることができるようになります。これを使うことによって、ユーザーはより使いやすくなると思います。
popup.inc.php は plugin へ、popup.css と popup.js は skin へ入れてください。そして、pukiwiki.skin.ja.php を開いて meta の中に popup.css と popup.js をインクルードすることを記述します。
<link rel="stylesheet" href="skin/popup.css" type="text/css" media="screen" charset="Shift_JIS" /> <script type="text/javascript" src="skin/popup.js"></script>
次に body タグのすぐ下に
<script type="text/javascript"> <!-- if (document.layers) { document.write('<layer class="popup_style"></layer>'); } else if (document.all) { document.write('<div id="popupLayer" class="popup_style"></div>'); } else if (document.getElementById) { document.write('<div id="popupLayer" class="popup_style"></div>'); } --> </script>
と書いて、保存します。これでインストール完了です。あとは
これは&popup(popup プラグイン,ポップアップヘルプを表示するための PukiWiki プラグインで
「popup プラグイン」にポップアップヘルプが付きます。
&popup(text, help[, option]);
option に image 、help にイメージの URL を指定すると画像のポップアップヘルプを表示することができます。それ以外は option は不要です。
あと、JavaScript を使っている関係で help にシングルコーテーションを含めることはできません。