Okay. It's an ASP page.
<%
Dim oFCKeditor ' FOR FCKEDITOR, SEE
www.fckeditor.net
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/Fforumeditor/"
oFCKeditor.Width = 513
oFCKeditor.Create "message"
%>
.....
<SCRIPT language="JavaScript">
<!--
var timeoutobject;
var oEditor;
var temporaryvalue = '';
function FCKeditor_OnComplete( editorInstance )
{
oEditor = editorInstance; //here we store the editor instance for
later use
timeoutobject = setTimeout("timing()",270);
}
function timing()
{
mymaxlength=2500;
t=oEditor.GetXHTML(true);
if (t.length mymaxlength) {
//message too long, warning + set revious state
if (t.length mymaxlength) {
oEditor.SetHTML(temporaryvalue);
alert('Message max length is ' + mymaxlength + ' characters.');
}
} else {
temporaryvalue = t; //set current message, we may need it later
document.frm.qwertyuiop.value = mymaxlength - t.length; //text field,
shows character count
}
timeoutobject = setTimeout("timing()",270);
}
//-->
</SCRIPT>