怎样用vb控制网页的
我从一篇文章仿照出以下代码~
====================================================================
<input name="searchtype" type="radio" value="/person/search/search.htm" checked>歌手
<input type="radio" name="searchtype" value="/music/search/search.htm">歌曲
<input type="radio" name="searchtype" value="/zj/search/search.htm">专辑
<input type="radio" name="searchtype" value="/mtv/search/search.htm">MTV
<input type="radio" name="searchtype" value="/concert/search/search.htm">演唱会
比如一个网页里有如上代码 我想选择原创 webbrowser中怎么写
Private Sub Command1_Click() WebBrowser1.Navigate "http://www.uptu.com/" End Sub
Private Sub Option1_Click() Dim x For Each x In WebBrowser1.Document.All("searchtype") If x.Value = "/person/search/search.htm" Then x.Checked = True End If Next End Sub ==================================================================== 但是在调试的时候就出错~谁能告诉我正确的代码~谢谢~
[此贴子已经被作者于2005-8-10 23:26:36编辑过]