| 違反投稿 |
定型文を自動的に挿入するのは無理ですが、フリーエリアにHTMLやJavaScriptを記述できるので、フリーエリアに以下のように記述してみてはいかがでしょうか。
改行設定は「設定しない」にします。
<script language="javascript">
<!--
function DocWin() {
var DocWin;
DocWin=window.open("","TempWin","width=400,height=200,left=0,top=0,s crollbars=yes");
DocWin.document.open();
DocWin.document.write("<html><head><title>定型</title>");
DocWin.document.write("</head>");
DocWin.document.write("<body>");
DocWin.document.write("<p>フォームの上にカーソルを置くと文字列が選択されますので、コピーをして貼り付けてください。</p>");
DocWin.document.write("<center><textarea type='text' onfocus='this.select()' name='temp' cols='50' rows='4'>");
DocWin.document.write("定型1を表示します。"+"\n");
DocWin.document.write("定型2を表示します。"+"\n");
DocWin.document.write("</textarea>");
DocWin.document.write("<input type='button' name='close' value='閉じる' onClick='window.close()'></center>");
DocWin.document.write("<br>");
DocWin.document.write("</body>");
DocWin.document.write("</html>");
DocWin.document.close();
}
//-->
</script>
<form>
<input type="button" value="定型表示" onClick="DocWin()">
</form>
上記を表示すると「定型表示」というボタンが表示されます。
クリックすると、横幅400px、高さ200pxのウィンドウ画面が表示され、定型が書かれたフォームと「閉じる」ボタンが表示されます。
定型文の書かれたフォームの上にカーソルを置くと、文章が選択されますので、これを手動でコピーして貼り付けてもらう形になります。
フォームの横幅を変更する場合には「cols='○○'」、高さは「rows='○○'」を変更してください。
フォーム内に表示される文章は「定型1(または定型2)を表示します。」という項目を適宜書き換えてください。
追加する際にはこの部分をコピー&ペーストしてください。
「\n」は改行するという意味です。
上記を表示させるには、JavaScriptが有効になっている必要があります。 |