87,997
社区成员




<!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">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript">
function showCols(o) {
document.getElementById("span").innerHTML = o.value.length;
var length = o.value.length;
if (length && length > 0) {
document.getElementById("span").innerHTML = "共" + (parseInt(length / 16) + (length % 16 > 0 ? 1 : 0)) + "行";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<textarea name="CH" id="CH" cols="16" rows="5" onkeydown="showCols(this);"> </textarea>
<span id="span"></span>
</div>
</form>
</body>
</html>