页面代码是
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>AutoVisiting.com Click4hits</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head><frameset rows="102,*" cols="*" framespacing="0" frameborder="NO" border="0">
  <frame src="myTop.php?UserId=14834&PHPSESSID=c996e390f7fc5fa633fb5bd5a2298669" name="topFrame" scrolling="NO" noresize >
  <frame src="http://www.indogoods4u.com" name="mainFrame">
  <frame src="UntitledFrame-8?PHPSESSID=c996e390f7fc5fa633fb5bd5a2298669">
</frameset>
<noframes><body></body></noframes>
</html>
然后其中topframe的代码是
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Rick Johnson ([email protected]) -->
<!-- Web Site:  http://208.55.209.164/myPage --><script>
<!-- Begin
// quick browser tests
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;function show(sw,obj) {
// show/hide the divisions
if (sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'visible';
if (!sw && (ie4 || ie5) ) document.all[obj].style.visibility = 'hidden';
if (sw && ns4) document.layers[obj].visibility = 'visible';
if (!sw && ns4) document.layers[obj].visibility = 'hidden';
}
// End -->var counter=15;var orgSurftime=15;function count() {
   if (counter >= 0){   document.Show.Counter.value=counter--;
  timerID = setTimeout('count()', 1000); // another second    }else{
show(true,'div2');
   }
 }</script><style type="text/css">
<!--
.myLayersClass { position: relative; visibility: hidden; }
//-->
</style><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head><body bgcolor="#000000" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad='count();'>
<table width="31%" height="77" border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td width="0%" height="77" valign="top"> 
<div id = "div2" class = "myLayersClass" align="center"> 
        <table width="51%" border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td colspan="9" align="center" nowrap><strong>Please select the colour brown [<img src="images/brown.gif" width="21" height="18" border="1" align="absbottom">]</strong></td>
          </tr>
          <tr id=""> 
            <td width="24%" align="center" nowrap> <form action="index.php?UserId=14834" method="post" name="form1" target="_parent"><input type="hidden" name="PHPSESSID" value="af56640a3d30624a8b5597e20982f5dc" />
                <input name="myCol" type="hidden" id="myCol" value="brown">
                <input name="correctColor" type="hidden" id="correctColor" value="brown">
                <input type="image" name="Submit" src="images/brown.gif?PHPSESSID=af56640a3d30624a8b5597e20982f5dc">
              </form></td>
            <td width="24%" align="center" nowrap> <form action="index.php?UserId=14834" method="post" name="form1" target="_parent"><input type="hidden" name="PHPSESSID" value="af56640a3d30624a8b5597e20982f5dc" />
                <input name="myCol" type="hidden" id="myCol" value="orange">
                <input name="correctColor" type="hidden" id="correctColor" value="brown">
                <input type="image" name="Submit" src="images/orange.gif?PHPSESSID=af56640a3d30624a8b5597e20982f5dc">
              </form></td>
            <td width="29%" align="center" nowrap> <form action="index.php?UserId=14834" method="post" name="form1" target="_parent"><input type="hidden" name="PHPSESSID" value="af56640a3d30624a8b5597e20982f5dc" />
                <input name="myCol" type="hidden" id="myCol" value="purple">
                <input name="correctColor" type="hidden" id="correctColor" value="brown">
                <input type="image" name="Submit" src="images/purple.gif?PHPSESSID=af56640a3d30624a8b5597e20982f5dc">
              </form></td>
            <td width="23%" colspan="6" align="center" nowrap> <form action="index.php?UserId=14834" method="post" name="form1" target="_parent"><input type="hidden" name="PHPSESSID" value="af56640a3d30624a8b5597e20982f5dc" />
                <input name="myCol" type="hidden" id="myCol" value="red">
                <input name="correctColor" type="hidden" id="correctColor" value="brown">
                <input type="image" name="Submit" src="images/red.gif?PHPSESSID=af56640a3d30624a8b5597e20982f5dc">
              </form></td>
          </tr>
        </table>
      </div>   
    </td>
    <td width="68%" valign="top">
<table width="88%" border="1" cellpadding="1" cellspacing="0" bordercolor="#FFFF00">
        <tr> 
          <td height="20" colspan="4" nowrap><strong><font size="2" face="Times New Roman, Times, serif">This session you gained the following:</font></strong></td>
          <td rowspan="3" nowrap><a href="http://www.autovisiting.com/report.php?" target="_blank"><img src="images/abuse.gif" alt="Report a site that doen't play by the rules i.e. " width="50" height="34" border="0"></a></td>
        </tr>
        <tr align="center"> 
          <td width="19%" height="20" nowrap><font size="2" face="Times New Roman, Times, serif"><strong>Credits </strong></font></td>
          <td width="29%" nowrap>0.000&nbsp;</td>
          <td width="18%" nowrap><strong><font size="2" face="Times New Roman, Times, serif">$$$</font></strong></td>
          <td width="34%" nowrap>0.000&nbsp;</td>
        </tr>
        <tr align="center"> 
          <td height="26" colspan="4" nowrap> <form name="Show" method="post" action=""><input type="hidden" name="PHPSESSID" value="af56640a3d30624a8b5597e20982f5dc" />
              View site for 
              <input name="Counter" type="text" id="Counter" size="2" maxlength="2">
              Seconds </form></td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<br>
</body>
</html>
_________________________________________
就是用webbrowser获得please select the color ***这些字符串

解决方案 »

  1.   

    这些都是php到客户端的html,里面please select the color ***,***是变的
      

  2.   

    http://www3.autovisiting.com/manual_surf/index.php?UserId=14834
    这个效果
      

  3.   

    加入timer,commandbutton,text
    private sub command1_click()
    webbrowser1.navigate http://www.sohu.com/
    timer1.enabled=true
    end subprivate sub timer1_timer()
    dim doc,objhtml as object
    dim i as integer
    dim strhtml as stringif not webbrowser1.busy then
    set doc=webbrowser1.document
    i=0
    set objhtml=doc.body.createtextrange()
    if not isnull(objhtml) then
    text1.text=objhtml.htmltext
    end if
    timer1.enabled=false
    end if
    end sub得到源文件后,自己分析
      

  4.   

    自己分析代码太烦,我想用webbrowser来或的这个
      

  5.   

    webbrowser1.document.frames.item(0).document.all.item(15)就可以了