|
JavaScript邮箱分离器2.0版 |
|
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>邮箱分离器</title> <link rel="stylesheet" href="../hy12.css"> </head> <body background="../gif/mbg.gif" bgcolor="#FFFFFF"> <div style="position:absolute"></div><script src="../ts.js"></script> <script> //程序设计 虹雨 网址:http://chy.126.com //该程序为虹雨版权所有,如果你要转载使用请保留作者相关信息 cstr="abcdefghijklmnopqrstuvwxyz_0123456789";function sfrom(nf){em=0;for(;nf>=0;em=1){if(cstr.indexOf (temp1.charAt(--nf))==-1)break}return++nf}function sto(nt){en=0;if(cstr.indexOf(temp1.charAt(++nt))!=-1) {for(;nt<temp1.length;){if(cstr.indexOf(temp1.charAt(++nt))==-1){if(cstr.indexOf(temp1.charAt(nt+1))!=- 1&&temp1.charAt(nt)=="."){en=1}else{break}}}}return nt;}function auto(obj){No=0;temp2="";if(! obj.data.value){alert("n你还没有贴入内容!n")}else{hh=obj.chy.value;if(!hh)hh=" ";if (obj.C1.checked==true)hh+="n";strgl=obj.gl.value.toLowerCase();if(!strgl) strgl="$";temp1=obj.data.value.toLowerCase();temp3="";for(i=1;i<temp1.length;i++){if((i=temp1.indexOf ("@",i))==-1)break;j=sfrom(i);i=sto(i);temp2=temp1.substring(j,i++);if(em&&en&&temp2.indexOf(strgl)==- 1&&temp3.indexOf(temp2)==-1){temp3+=temp2+hh;temp1=temp1.substring(i,temp1.length);i=1;No++}} obj.no.value=No;obj.data.value=temp3;alert("n 程序运行完成! nn分离出邮件地址数:"+No)}}</script> <div align="center"><center> <table border="0" cellspacing="0" bgcolor="#000000"> <tr> <td><table border="0" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td><table width="200" background="../gif/tb1.gif" height="25" cellspacing="0" cellpadding="0"> <tr> <td align="center" width="50%"><a href="java.htm">《《 返回</a></td> <td align="center" width="50%"><font color="#FF0000" style="font-size:12pt">邮箱分离器 </font></td> </tr> </table> <table border="1" bordercolor="#0080FF" cellpadding="2" bgcolor="#FDFBD0" width="700"> <tr> <td width="100%"><b><font color="#FF0000">☆JavaScript邮箱分离器2.0版☆</font></b>[如果你要转载 使用请保留作者相关信息]<br> [作者:虹雨][作者网址:<a href="http://chy.126.com">彩虹细雨 http://chy.126.com</a>]<br> [程序特点]1、分离速度快2、可多次叠加分离3、程序不需要在线运行<br> 4、不会产生重复的邮箱5、可统计分离出的邮箱数6、过滤掉不需要的一类邮箱(2.0新功能)</td> </tr> <tr> <td width="100%" align="center"><form> <p><span class="font"><input type="button" value="开 始" onclick="auto(this.form)" class="font"><input type="reset" value="复 位" class="font">换行:<input type="checkbox" name="C1" value="ON" checked> 分隔符号:<input type="text" name="chy" size="2" maxlength="5" value=","> 过滤关键字:<input type="text" name="gl" size="15" value="chyemail" class="font"> 邮箱数:<input type="text" name="no" size="5" onFocus="blur()"><br> <textarea rows="14" name="data" cols="110" class="font">注意:一次贴入的文本内容要小于64kb, 但可以分多次叠加贴入大于64kb的文本。</textarea><br> </span></p> </form> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center></div><script src="../down.js"></script> </body> </html> |