Line # Revision Author
1 8 ahitrov@rambler.ru <script LANGUAGE="JavaScript"><!--
2
3 function li()
4 {
5 document.form.<% $name %>.focus();
6 sel = document.selection.createRange();
7 s= "<ul>\n"+sel.text;
8 re = /\n/g;
9 s = s.replace(re, "\n<li>");
10 s=s+"\n</ul>"
11 sel.text= s;
12 }
13
14
15 function insertTags( TagOpen, TagClose )
16 {
17 document.form.<% $name %>.focus();
18 selectArea = document.selection.createRange();
19 selectArea.text= TagOpen + selectArea.text + TagClose;
20 }
21
22 // --->
23 </script>
24
25 117 ahitrov <table border="0" width="95%" style="font-size:11px; font-weight:; font-family:Tahoma;background-color:#dcdcdc;color:#000000;">
26 8 ahitrov@rambler.ru <tr><td>
27 Вставка тегов:<br>
28 &nbsp;&nbsp;<a style="color:#000000" href="javascript: insertTags('<br>','')" title="перевод строки">&lt;br&gt;</a>&nbsp;&nbsp;
29 <a style="color:#000000" href="javascript: insertTags('<p>','')" title="абзац">&lt;p&gt;</a>&nbsp;&nbsp;
30
31 <a style="color:#000000" href="javascript: insertTags('<b>','</b>')" title="полужирный текст">&lt;b&gt;</a>&nbsp;&nbsp;
32 <a style="color:#000000" href="javascript: insertTags('<i>','</i>')" title="курсив">&lt;i&gt;</a>&nbsp;&nbsp;
33 <a style="color:#000000" href="javascript: insertTags('<u>','</u>')" title="подчеркивание">&lt;u&gt;</a>&nbsp;&nbsp;
34
35 <a style="color:#000000" href="javascript: insertTags('<h2>','</h2>')" title="заголовок h2">&lt;h2&gt;</a>&nbsp;&nbsp;
36 <a style="color:#000000" href="javascript: insertTags('<h3>','</h3>')" title="заголовок h2">&lt;h3&gt;</a>&nbsp;&nbsp;
37 <a style="color:#000000" href="javascript: insertTags('<h4>','</h4>')" title="заголовок h2">&lt;h4&gt;</a>&nbsp;&nbsp;
38
39 <a style="color:#000000" href="javascript: insertTags('<a href=>','</a>')" title="ссылка">&lt;a href&gt;</a>&nbsp;&nbsp;
40 <a style="color:#000000" href="javascript: insertTags('<div align=center>','</div>')" title="">&lt;div center&gt;</a>&nbsp;&nbsp;
41 <a style="color:#000000" href="javascript: insertTags('<ul>','</ul>')" title="список">&lt;ul&gt;</a>&nbsp;&nbsp;
42 <a style="color:#000000" href="javascript: insertTags('<li>','')" title="элемент списка">&lt;li&gt;</a>&nbsp;&nbsp;
43 <a style="color:#000000" href="javascript: insertTags('<blockquote>','</blockquote>')" title="цитата">&lt;blockquote&gt;</a>&nbsp;&nbsp;
44 <a style="color:#000000" href="javascript: insertTags('<code>','</code>')" title="пример кода">&lt;code&gt;</a>
45 </td><td align="right" valign="bottom">
46 <a style="color:#000000" href="javascript: li()" title="вставить список(ul-li)">Вставить список</a>&nbsp;&nbsp;
47 </td></tr></table>
48 126 ahitrov <textarea name="<% $name %>" rows="<% $prop->{rows} || 30 %>" cols="60" style="width:95%;font-family:arial;font-size:9pt;"><% $check %></textarea>
49 8 ahitrov@rambler.ru <%args>
50
51 126 ahitrov $name => undef
52 $check => undef
53 $prop => {}
54 8 ahitrov@rambler.ru
55 </%args>