1 |
3 |
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 |
|
|
<table border="0" width="95%" style="font-size:70%; font-weight:; font-family:Tahoma;background-color:#dcdcdc;color:#000000;"> |
26 |
|
|
<tr><td> |
27 |
|
|
������� �����:<br> |
28 |
|
|
<a style="color:#000000" href="javascript: insertTags('<br>','')" title="������� ������"><br></a> |
29 |
|
|
<a style="color:#000000" href="javascript: insertTags('<p>','')" title="�����"><p></a> |
30 |
|
|
|
31 |
|
|
<a style="color:#000000" href="javascript: insertTags('<b>','</b>')" title="���������� �����"><b></a> |
32 |
|
|
<a style="color:#000000" href="javascript: insertTags('<i>','</i>')" title="������"><i></a> |
33 |
|
|
<a style="color:#000000" href="javascript: insertTags('<u>','</u>')" title="�������������"><u></a> |
34 |
|
|
|
35 |
|
|
<a style="color:#000000" href="javascript: insertTags('<h2>','</h2>')" title="��������� h2"><h2></a> |
36 |
|
|
<a style="color:#000000" href="javascript: insertTags('<h3>','</h3>')" title="��������� h2"><h3></a> |
37 |
|
|
<a style="color:#000000" href="javascript: insertTags('<h4>','</h4>')" title="��������� h2"><h4></a> |
38 |
|
|
|
39 |
|
|
<a style="color:#000000" href="javascript: insertTags('<a href=>','</a>')" title="������"><a href></a> |
40 |
|
|
<a style="color:#000000" href="javascript: insertTags('<div align=center>','</div>')" title=""><div center></a> |
41 |
|
|
<a style="color:#000000" href="javascript: insertTags('<ul>','</ul>')" title="������"><ul></a> |
42 |
|
|
<a style="color:#000000" href="javascript: insertTags('<li>','')" title="������� ������"><li></a> |
43 |
|
|
<a style="color:#000000" href="javascript: insertTags('<blockquote>','</blockquote>')" title="������"><blockquote></a> |
44 |
|
|
<a style="color:#000000" href="javascript: insertTags('<code>','</code>')" title="������ ����"><code></a> |
45 |
|
|
</td><td align="right" valign="bottom"> |
46 |
|
|
<a style="color:#000000" href="javascript: li()" title="�������� ������(ul-li)">�������� ������</a> |
47 |
|
|
</td></tr></table> |
48 |
|
|
<textarea name="<% $name %>" rows="30" cols="60" style="width:95%;font-family:arial;font-size:9pt;"><% $check %></textarea> |
49 |
|
|
<%args> |
50 |
|
|
|
51 |
|
|
$name => undef |
52 |
|
|
$check => undef |
53 |
|
|
|
54 |
|
|
</%args> |