日期:2014-05-19  浏览次数:20827 次

百分相赠,求能编译通过的代码.操作网页方面的.我努力了几月,还是没成功.
这个程序实现两个功能,

第一,从http://group.hexun.com/ZHH1997/member.html中读取 "用户名 "写到一文本文件中,如 "ZHH边缘 "等,

第二,将文本文件中的诸个用户名,填到http://group.hexun.com/qiniuzhe/invite.aspx(代码附后:)
的输入框内,再点击, "发送邀请 "

第二步的网页代码如下:


<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<HTML>
<HEAD>
<title> 邀请首页 </title>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<link   href= "/inc/h_css_manage.css "   rel= "stylesheet "   type= "text/css ">
<link   href= "/template/h_css_manage.css "   rel= "stylesheet "   type= "text/css ">
<script   language= "javascript ">
function   cancelinvite()
{
window.reload();
return   false;
}
function   submitinvite(e,e1,e2)
{
re   =   /[a-zA-Z][_a-zA-Z0-9]{2,100}/;
if(e.value   ==   " "   ||   e1.value   ==   " ")
{
alert( "请填入用户名和邀请说明! ");
return   false;
}
if(e2.value==2)
{
if(!re.test(e.value))
{
alert( "输入正确的博客名! ");
return   false;
}
}
return   true;
}
</script>
</HEAD>
<body   class= "aud "   topmargin= "0 "   leftmargin= "0 ">
<div   align= "center ">
<div   style= "WIDTH:956px;   BACKGROUND-COLOR:#f6f6f6 "   align= "left ">
<!--   top_1:on   -->

<table   width= "100% "   border= "0 "   cellpadding= "0 "   cellspacing= "0 "   class= "li_aud_02 "   style= "BACKGROUND-IMAGE:   url(../images/li_aud_01.gif) ">
  <tr>
        <td   width= "60% ">
  <div   class= "li_aud_02 ">
            <ul   class= "li_aud_04 ">
              <li   class= "li_aud_05 ">
<a   href= "/qiniuzhe/default.html "   target= "_blank "   class= "liadd_04 "> 骑牛者 </a> </li>
              <li   class= "li_aud_05_2 "> </li>
    </ul>
          </div>
</td>
        <td   width= "40% ">
  <div   class= "li_aud_02 ">
              <ul   class= "li_aud_04 ">
<li   class= 'li_aud_05 '> <a   href= 'http://hexun.com/metababy/default.html '   target= '_blank '   class= 'li_2 '> [metababy] </a>   <a   href= 'http://wayup.hexun.com/quit.aspx?gourl=http://group.hexun.com/qiniuzhe/default.html '   class= 'li_2 '> 登     出 </a> </li>
<li   class= "li_aud_05 ">
&