Revision 3 (by ahitrov@rambler.ru, 2010/03/24 15:19:32) |
The CORE
|
<script LANGUAGE="JavaScript"><!--
function li()
{
document.form.<% $name %>.focus();
sel = document.selection.createRange();
s= "<ul>\n"+sel.text;
re = /\n/g;
s = s.replace(re, "\n<li>");
s=s+"\n</ul>"
sel.text= s;
}
function insertTags( TagOpen, TagClose )
{
document.form.<% $name %>.focus();
selectArea = document.selection.createRange();
selectArea.text= TagOpen + selectArea.text + TagClose;
}
// --->
</script>
<table border="0" width="95%" style="font-size:70%; font-weight:; font-family:Tahoma;background-color:#dcdcdc;color:#000000;">
<tr><td>
������� �����:<br>
<a style="color:#000000" href="javascript: insertTags('<br>','')" title="������� ������"><br></a>
<a style="color:#000000" href="javascript: insertTags('<p>','')" title="�����"><p></a>
<a style="color:#000000" href="javascript: insertTags('<b>','</b>')" title="���������� �����"><b></a>
<a style="color:#000000" href="javascript: insertTags('<i>','</i>')" title="������"><i></a>
<a style="color:#000000" href="javascript: insertTags('<u>','</u>')" title="�������������"><u></a>
<a style="color:#000000" href="javascript: insertTags('<h2>','</h2>')" title="��������� h2"><h2></a>
<a style="color:#000000" href="javascript: insertTags('<h3>','</h3>')" title="��������� h2"><h3></a>
<a style="color:#000000" href="javascript: insertTags('<h4>','</h4>')" title="��������� h2"><h4></a>
<a style="color:#000000" href="javascript: insertTags('<a href=>','</a>')" title="������"><a href></a>
<a style="color:#000000" href="javascript: insertTags('<div align=center>','</div>')" title=""><div center></a>
<a style="color:#000000" href="javascript: insertTags('<ul>','</ul>')" title="������"><ul></a>
<a style="color:#000000" href="javascript: insertTags('<li>','')" title="������� ������"><li></a>
<a style="color:#000000" href="javascript: insertTags('<blockquote>','</blockquote>')" title="������"><blockquote></a>
<a style="color:#000000" href="javascript: insertTags('<code>','</code>')" title="������ ����"><code></a>
</td><td align="right" valign="bottom">
<a style="color:#000000" href="javascript: li()" title="�������� ������(ul-li)">�������� ������</a>
</td></tr></table>
<textarea name="<% $name %>" rows="30" cols="60" style="width:95%;font-family:arial;font-size:9pt;"><% $check %></textarea>
<%args>
$name => undef
$check => undef
</%args>