<script language="javascript">
function changeHints(){
var l=strlength(document.frmAnnounce.subject.value)
if (l<=100) {
if (document.all!=null)
document.all("hints").innerText="还可以输入"+(100-l)+"字节"
}
return true
}
</script>
<td width="60" nowrap >主题:</td>
<td nowrap ><input type="text" name="subject"
maxlength="255" size="40" value="" onKeyDown="return
changeHints()" onKeyUp="return changeHints()"> (<span
id="hints" color="red">还可以输入100字节</span>)</td>
function changeHints(){
var l=strlength(document.frmAnnounce.subject.value)
if (l<=100) {
if (document.all!=null)
document.all("hints").innerText="还可以输入"+(100-l)+"字节"
}
return true
}
</script>
<td width="60" nowrap >主题:</td>
<td nowrap ><input type="text" name="subject"
maxlength="255" size="40" value="" onKeyDown="return
changeHints()" onKeyUp="return changeHints()"> (<span
id="hints" color="red">还可以输入100字节</span>)</td>