
Function GetIpAdder(ByVal szIPID As String)
Dim html As String, t
With CreateObject("msxml2.xmlhttp")
.Open "GET", "
http://www.ip138.com/ips138.asp?ip=" & szIPID & "&action=2", False
.send
If .Status = 200 Then
html = StrConv(.responsebody, vbUnicode)
If InStr(html, "本站主数据") > 0 Then
t = Mid(html, InStr(html, "本站主数据") + Len("本站主数据") + 1, 99)
t = Left(t, InStr(t, "</li>") - 1)
GetIpAdder = t
Else
GetIpAdder = "无效"
End If
End If
End With
End Function