字数统计在线字数计算器!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""
html xmlns="
head TITLE字数统计-在线字数计算器/TITLE META http-equiv=Content-Type content="text/html;charset=gb2312"
script type="text/javascript"
//![CDATA[
function bookmark(){
var title=document.title var url=document.location.href
if(window.sidebar)window.sidebar.addPanel(title,url,"");
else if(window.opera&&window.print){
var ateElement_x('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if(document.al.AddFavorite(url,title);
}
//]]
/script style type="text/css"
!--
body{margin:0;}
td{font-size:9pt;line-height:19px;}
h1{font-weight:700;font-size:16px;text-align:center;margin:30px auto 20px}
.
content{font-size:14px;}
A:visited{font-size:9pt;color:#333;text-decoration:none;}
A:link{font-size:9pt;text-decoration:none;}
A:hover{font-size:9pt;color:#0E5EE2;text-decoration:underline;}
A:active{font-size:9pt;color:#00C;text-decoration:none;}
.white{color:#FFF;}
a.d:hover{font-size:13px;color:#CFF1FA;text-decoration:underline;font-weight:700;}
a.d:link{font-size:13px;color:#FFF;text-decoration:none;
font-weight:700;}
a.d:visited{font-size:13px;color:#CFF1FA;font-weight:700;}
a.c:link{color:#666;text-decoration:underline;}
a.c:visited{color:#666;text-decoration:none;}
a.c:hover{font-weight:700;color:#666;text-decoration:underline;}
a.b:hover{font-size:10pt;color:#36F;text-decoration:none;}
a.e:hover{font-size:12px;color:#CFF1FA;text-decoration:underline;font-weight:700;}
a.e:link{font-size:12px;color:#FFF;text-decoration:none;font-weight:700;}
a.e:visited{font-size:12px;color:#CFF1FA;font-weight:700;}
.hongzi{color:red;}
a.f:hover{font-size:13px;border:solid 1px#69F;background-color:#FBFDFF;height:18px;width:26px;font-weight:700;color:#00F;}
.pageNumlink{font-size:13px;border:solid 1px#69F;background-color:#39F;height:18px;width:26px;color:#FFF;font-weight:700;}
TEXTAREA,SELECT{font-size:9pt;color:#000;font-family:Verdana,Arial,Helvetica,sans-serif,
宋体;background-color:#fff;border-color:silver;border-width:1px;}
a.b:link,a.b:visited{font-size:10pt;color:#0321C9;text-decoration:underline;}
a.f:link,a.f:visited{font-size:13px;border:solid 1px#69F;background-color:#FBFDFF;height:18px;width:26px;color:#00F;}
.num{font-size:14px;font-weight:700;color:#F00}
--
/style
/HEAD BODY h1字数统计-在线字数计算器/h1 table
cellspacing="1"cellpadding="5"width="940"align="center"bgcolor="#ffff ff"border="0"
tr td bgcolor="#e5f0fb"
colspan="2"主要是方便计算字数,以控制文字数量的小工具(小说作者和或编辑必备工具)。(a href="javascript:bookmark()"点此收藏/a)/td
/tr tr td bgcolor="#e5f0fb"label文章输入区/label/td td
bgcolor="#e5f0fb"textarea
id="content"name="content"rows="20"cols="120"/textarea/td
/tr tr td bgcolor="#e5f0fb"字数统计/td td bgcolor="#e5f0fb"中文:span id="zhongwen"class="num"0/span中文标点:span id="zbiaodian"class="num"0/span br/
英文:span id="yingwen"class="num"0/SPAN br/
数字:span id="shuzi"class="num"0/span br/
strong字符总数:共记span id=numwords class="num"0/span个字符(汉字算两个字符,数字、空格、英文字母算做一个字符)/strong/td
/tr tr td bgcolor="#e5f0fb"小说作者/td td bgcolor="#e5f0fb"中文+数字:span id="zishu"class="num"0/span/td
/tr
/
table SCRIPT language=javascript function$(id){ElementById_x(id);}
var EventUtil=function(){};
EventUtil.addEventHandler=function(obj,EventType,Handler)
{
//如果是FF if(obj.addEventListener)
{
obj.addEventListener(EventType,Handler,false);
}
//如果是IE else if(obj.attachEvent)
{
obj.attachEvent('on'+EventType,Handler);
}
else
{
obj['on'+EventType]=Handler;
}
}
//alert($("chaptercontent").value);
字符串长度怎么算在线if($("content")){
EventUtil.addEventHandler($('content'),'propertychange',CountChin eseCharacters);
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论