<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml ">
<cabeça>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Documento sem título</title>
<linguagem SCRIPT=javascript1.3><!--
var testleng=300;//允许多少字符串填入
function GC_UpdateCharCount() {
var desc_el = document.getElementById('desc');
var restanteschars_el = document.getElementById('remainingchars');
var num_remaining = testleng - desc_el.value.length;
if (num_remaining >= 0) {
restanteschars_el.innerHTML = num_remaining;
} outro {
restantechars_el.innerHTML = "<cor da fonte=vermelho>" +
(-num_remaining + '') + "caracteres acima de</font>";
}
}
função isOver(sText)
{
var intlen=sText.value.length;
if (intlen>testleng)
{
alert("描述特征的内容的字数必修小于或者等于 "+testleng);
sText.focus();
sText.select();
}
}
//--></SCRIPT>
</head>
<corpo>
<<B>Descrição do grupo</B><BR><TEXTAREA id=desc onkeydown=GC_UpdateCharCount() onkeyup=GC_UpdateCharCount() onblur="isOver(this);"style="WIDTH: 99%" name=desc rows= 4 colunas=50></TEXTAREA>
<BR>Letras restantes: <SPAN id=remainingchars>
<linguagem SCRIPT=javascript1.2><!--
GC_UpdateCharCount();
//--></SCRIPT></SPAN><NOSCRIPT>300 caracteres permitidos </NOSCRIPT>
</body>
</html>