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 |
|
|
<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> |