| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
sergei 21.01.2004 17:30
вот какое сообщение об ошибке выдаёт:@myJAVA[]
<script language="JavaScript">
function changetext(){
document.form1.description.value=document.form1.words.value;
}
</script>
@body[][tempTab]
$tempTab[^table::sql{
SELECT left(word,1) as l
from glossary
where word is not null
group by l
order by l}]
^if(def $form:letter){$L[^form:letter.upper[]]}{$L[$tempTab.l]}
$L[^L.left(1)]
$letterSCROLL[<h3>
^tempTab.menu{
^if($L eq ^tempTab.l.upper[]){$tempTab.l}{<A href="/glossary/?letter=$tempTab.l">$tempTab.l</A>}
}[ - ]
</h3>]
$letterSCROLL
$tempTab[^table::sql{
SELECT word, description
from glossary
where word is not null AND (left(word,1)="$L" OR left(word,1)="^L.lower[]")
order by word}]
<style>
.sel {
width: 500px;
}
.shadow{
width: 500px;
background-color:#f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
border: 1px #999999 solid;
height : auto;
}
</style>
<CENTER>
<table width="1" border="0" cellspacing="5" cellpadding="1">
<form name="form1" method="post" action="">
<tr>
<td align=right>
<select class="sel" name="words" size="10" onchange="javascript:changetext();">
^tempTab.menu{
<option value="$tempTab.word —^; ^taint[as-is][$tempTab.description]">^taint[as-is][$tempTab.word]</option>
}
</select>
</td>
</tr>
<tr>
<td align=right>
<textarea rows="12" cols="50" name="description" class="shadow" onfocus="javascript: document.form1.words.focus();"></textarea>
</td>
</tr>
</form>
</table>