Function HtmlStr$(Url$) '提取网页源码函数
Dim XmlHttp
Set XmlHttp = CreateObject("Microsoft.XMLHTTP")
XmlHttp.Open "GET", Url, False
XmlHttp.send
If XmlHttp.ReadyState = 4 Then HtmlStr = StrConv(XmlHttp.ResponseBody, vbUnicode)
Set XmlHttp = Nothing
End Function
Private Sub Form_Load()
Text1 = ""
Text1 = HtmlStr("http://www.baidu.com/")
End Sub
MsgBox WebBrowser1.Document.getElementById("countDownRight").children(0).innerText