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 |
121 |
ahitrov |
<table border="0" width="95%" style="font-size:11px; font-weight:; font-family:Tahoma;background-color:#dcdcdc;color:#000000;"> |
26 |
3 |
ahitrov@rambler.ru |
<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 |
127 |
ahitrov |
<textarea name="<% $name %>" rows="<% $prop->{rows} || 30 %>" cols="60" style="width:95%;font-family:arial;font-size:9pt;"><% $check %></textarea> |
49 |
3 |
ahitrov@rambler.ru |
<%args> |
50 |
|
|
|
51 |
127 |
ahitrov |
$name => undef |
52 |
|
|
$check => undef |
53 |
|
|
$prop => {} |
54 |
3 |
ahitrov@rambler.ru |
|
55 |
|
|
</%args> |