<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "http://www.w3c.org/TR/1999/REC-html401-19991224/ Loose.dtd ">
<HEAD>
<TITLE></TITLE>
<link href= "Css/user_login.css" Type=text/css rel=stylesheet>
<meta http-equiv=content-type content= "textml; Charset=utf-8 ">
<script type= "Text/javascript" src= "Jquery-1.7.2.min.js" ></script>
</HEAD>
<script type= "Text/javascript" >
$ (). Ready (function () {
var ty = document.getElementById ("Cty");
var Motto=document.getelementbyid ("motto");
var Curlen=document.getelementbyid ("Curlen");
var Maxlen=document.getelementbyid ("MaxLen");
var Leftlen=document.getelementbyid ("Leftlen");
motto.onkeyup= function () {
MaxLength = parseint (MaxLen.firstChild.nodeValue);
This.value = This.value.substr (0,maxlength);
var len = this.value.length;
CurLen.firstChild.nodeValue = Len;
LeftLen.firstChild.nodeValue = Maxlength-len;
};
Shade (ty);
});
</script>
<BODY>
<label>
<textarea name= "motto" id= "motto" ></textarea>
<br/>
<em>
<span id= "Curlen" >0</span>/<span id= "MaxLen" >200</span> character, can also input <span id= "Leftlen" >200 </span> words!
</em>
</label>
</BODY>
</HTML>
HTML input Box input to display the remaining words