文字破碎

来源:互联网 发布:江苏省教育局官网通知 编辑:程序博客网 时间:2024/04/26 06:09
<script language="Javascript">
<!--
function showlen(obj)
{
document.getElementById("contentlen").value=obj.value.length;
}
//-->
</script>
<p><textarea name="zhaiyao" rows=5 cols=50 onkeydown="showlen(this)" onkeyup="showlen(this)"></textarea></p>
<p>当前字符数<input type=text name=contentlen value=0 size=2 style="border-width:0;background:transparent;">个</p>
原创粉丝点击