Public Class Form1
Dim c
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim tmp As String
If c = 1 Then Exit Sub '这个是为了防止这个过程无限执行下去
c = c + 1
tmp = WebBrowser1.Document.Body.InnerHtml
tmp = tmp.Replace("swf", "") '将swf过虑了.就不会加载swf了
WebBrowser1.Document.Body.InnerHtml = tmp
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
c = 0
WebBrowser1.Navigate("http://www.tudou.com/playlist/playindex.do?lid=10766496")
End Sub
End Class
[本日志由 tiancao1001 于 2011-05-31 07:23 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |