<P>演示: <BR> <BR> <A href="http://www.qs163.com/v2/vip_private_disk/user/lzx/jz1.html">http://www.qs163.com/v2/vip_private_disk/user/lzx/jz1.html</A><A href="http://www.qs163.com/v2/vip_private_disk/user/lzx/jz.html"></A><BR><BR><BR>以下就是源码,自己改一下<BR><BR>保存为htm,传到空间即可<BR>
复制内容到剪贴板
代码:
<html></P>
<P><head><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR><title>文字自动排版工具</title><BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><BR><title>文字自动排版工具</title><BR></head><BR><body topmargin="0" leftmargin="0" background="<A href="http://qq.up.topzj.com/data/qq/33/65/0/a/07/02/12/b029_fMau5RyZzWrm.gif">http://qq.up.topzj.com/data/qq/33/65/0/a/07/02/12/b029_fMau5RyZzWrm.gif</A>"></P>
<P><style type="text/css"><BR><!--<BR>body {font-size:10pt}<BR>td {font-size:10pt}<BR>--><BR></style><BR><html><BR></head><BR><body background="<A href="http://qq.up.topzj.com/data/qq/33/65/0/a/07/02/12/b029_fMau5RyZzWrm.gif">http://qq.up.topzj.com/data/qq/33/65/0/a/07/02/12/b029_fMau5RyZzWrm.gif</A>"></P>
<P> </P>
<P><div align="center"><BR> <center></P>
<P><BR><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="760" bgcolor="#FFFFFF" height="532" ><BR><SCRIPT language=JavaScript type=text/JavaScript><BR>function quickreply(){<BR>if(formreply.body.value=='')<BR>{ <BR> alert('请输入回复内容!');<BR> formreply.body.focus(); <BR> return false;<BR> }else{ <BR> return true;<BR> }<BR>}<BR>function format()<BR>{<BR> var body = "\n"+document.getElementById("thebody").value;<BR> body = body.replace(/ | /ig,"");<BR> body = body.replace(/\n/ig," ");<BR> body = body.replace("\n\n","");<BR> document.getElementById("thebody").value=body;<BR>}</P>
<P></SCRIPT><BR><SCRIPT language=JavaScript type=text/JavaScript><BR>function quickreply(){<BR>if(formreply.body.value=='')<BR>{ <BR> alert('请输入回复内容!');<BR> formreply.body.focus(); <BR> return false;<BR> }else{ <BR> return true;<BR> }<BR>}<BR>function format2()<BR>{<BR> var body = "\n"+document.getElementById("thebody").value;<BR> body = body.replace(/ | /ig,"");<BR> body = body.replace(/\r\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n/ig," \n");<BR> body = body.replace("\n\n","\n");<BR> document.getElementById("thebody").value=body;<BR>}<BR>function format3()<BR>{<BR> var body = "\n"+document.getElementById("thebody").value;<BR> body = body.replace(/ | /ig,"");<BR> body = body.replace(/\r\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n\n/ig,"\n");<BR> body = body.replace(/\n/ig,"\n\n");<BR> body = body.replace("\n\n","");<BR> document.getElementById("thebody").value=body;<BR>}</P>
<P></SCRIPT><script language="javascript"><BR>function chklen() {<BR> var strlen;<BR> strlen= KKsForm.Content.value.length;<BR> alert("目前长度" + strlen + "文字\n");<BR> return;<BR> }<BR> //打开窗口</P>
<P> </script><BR><form method="POST" action="addarticle.asp?action=save" name=KKsForm ><BR> <tr><BR> <td width="85%" height="82" bgcolor="#F3F3F3" background="<A href="http://lzx.any2000.com/l/z/lzx/up/87.jpg">http://lzx.any2000.com/l/z/lzx/up/87.jpg</A>"> <BR> </td></tr><BR> <td width="85%" height="133" bgcolor="#F3F3F3"> <div align="center"><BR> <center><BR> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1" height="1"><BR> <td width="100%" height="1"><BR> <p style="line-height: 150%"><br><BR> &nbsp;<font color="#000080">&nbsp; </font><BR> <font color="#494949">&nbsp;</font>本站投稿程序后台完善了自动排版功能,一键轻松实现稿件规范排版&nbsp;&nbsp; <BR> 先看看[<a target="_blank" href="<A href='http://ls126.cc.topzj.com"><font'>http://ls126.cc.topzj.com"><font</A> color="#008000">交流论坛</font></a>]<br><BR> &nbsp;&nbsp;&nbsp;&nbsp;1、<font color="#494949"><input type="button" value="统计字数" name="len1" title="统计输入汉字数"class=button onClick="chklen()" ></font> 计算文本框里的稿件字数。每次投稿,不超过15000字,超过分(1)(2)形式连载。<br><BR> &nbsp;&nbsp;&nbsp;&nbsp;2、<font color="#494949"><input type="button" value="消除空行" name="body2" title="仅用于删除文章内多余空行及空格" class=button onClick="javascript:format2()" ></font> <BR> 删除文章中多余空行。<br><BR>&nbsp;&nbsp;&nbsp; 3、<font color="#494949"><input type="button" value="自动排版" name="body3" title="系统自动排版"class=button onClick="javascript:format()" ></font> <BR> 让每个自然段落前空出两格。<br><BR> &nbsp;&nbsp;&nbsp;&nbsp;4、如果你投稿的是诗歌,每行开头也请空出两格,直接点<font color="#494949"><input type="button" value="自动排版" name="body5" title="系统自动排版"class=button onClick="javascript:format()" ></font> <BR> 。但请注意:诗句中必要的间距也会被删除。<br><BR>&nbsp;&nbsp;&nbsp; 5、如果对稿件有错误操作,可将鼠标定位在投稿文本框里,按Ctrl+Z逐步恢复。<br><BR>&nbsp;&nbsp;&nbsp; 6、这是最便捷的排版工具了,如果稿件还不符合版式规范,编辑只能做退稿处理了。</td><BR> </tr><BR> </table><BR> </center><BR> </div><BR> </td><BR> </tr><BR> <BR> <tr ><BR> <td width="85%" height="53" bgcolor="#FAFAFA"> <BR><p align="center"> <BR><input type="button" value="自动排版" name="body" title="系统自动排版"class=button onClick="javascript:format()" >&nbsp;&nbsp;<BR> <BR> <input type="button" value="消除空行" name="body1" title="仅用于删除文章内多余空行及空格" class=button onClick="javascript:format2()" >&nbsp;&nbsp; <BR><font color="#008000"> <BR> <input class="button" title="自动段间空行自动排版" onClick="javascript:format3()" type="button" value="添加空行" name="body3" >&nbsp;&nbsp; </font> <BR> <input type="button" value="统计字数" name="len" title="统计输入汉字数"class=button onClick="chklen()" ></td><BR> </tr><BR> <BR> <tr><BR> <td width="85%" height="262" bgcolor="#FAFAFA"> <BR><p align="center">&nbsp;<textarea id=thebody rows="22" name="Content" cols="100" ></textarea></td><BR> </tr><BR> <BR> <tr><BR> <td width="85%" bgcolor="#F3F3F3" height="86"><BR> <p align="center" style="line-height: 200%"><font color="#000080">[</font><a href="<A href='http://wwc.0234.net"><font'>http://wwc.0234.net"><font</A> color="#000080">站长信息网</font></a><font color="#000080">]&nbsp; [</font><a href="<A href='http://ls126.cc.topzj.com"><font'>http://ls126.cc.topzj.com"><font</A> color="#000080">论坛首页</font></a><font color="#000080">]&nbsp;&nbsp;[<span style="CURSOR: hand" onClick="window.external.addFavorite('http://ls26.cc.topzj.com','站长信息网')" title="站长信息网">收藏论坛</span>]&nbsp; <BR> [<a href="<A href='http://ls126.cc.topzj.com/register.php"><font'>http://ls126.cc.topzj.com/register.php"><font</A> color="#000080">注册会员</font></a>]<br><BR> </font><font color="#494949">本页域名 </font><font color="#666666"><BR> <input onmouseover="this.focus()" onfocus="this.select()" size="18" value="<A href="http://lzx.any2000.com">http://lzx.any2000.com</A>" name="dp" style="border-style:dotted; border-width:0px; color: #494949; background-color:#F5F5F5"></font></P>
<P> </P>
<P> </P>
<P></td><BR></tr><BR><tr ><BR> <td width="85%" bgcolor="#E3E3E3" height="31"><BR> <p align="right">&copy;2007-2008&nbsp;站长信息网&nbsp;<BR> <a style="color: #000000; text-decoration: none" href=<A href="http://wwc.0234.net">http://wwc.0234.net</A>><BR> fukun</a><BR> <a style="color: #000000; text-decoration: none" href=<A href="http://wwc.0234.net">http://wwc.0234.net</A>><BR> lzx.any2000</a>&nbsp;&nbsp;&nbsp; </td><BR> </tr><BR> <tr><BR> <td width="85%" bgcolor="#F3F3F3" height="1"> </td><BR> </tr><BR> </form><BR></table></P>
<P> </center><BR></div></P>
<P><style TYPE="text/css"><BR><!--<BR>A:link{text-decoration:none}<BR>A:visited{text-decoration:none}<BR>A:hover {color: #ff00ff;text-decoration:underline}<BR>--><BR></style><BR></body><BR></html><BR></P>