VB Code:
Option Explicit
Dim cat() As String
Dim i As Integer
Dim x As String
Private Sub Form_Load()
x = Inet1.OpenURL("http://www.neopets.com/market.phtml", icString)
cat() = Split(x, Chr(10)) 'this splits on everynew line
For i = 0 To UBound(cat)
If InStr(cat(i), "<area shape=rect coords=") Then
Text1.Text = Text1.Text & cat(i)
End If
Next i
i = 0
Do Until InStr(Text1.Text, i) = 0
Text1.Text = Replace(Text1.Text, i, vbNullString)
i = i + 1
Loop
Text1.Text = Replace(Text1.Text, "<area shape=rect coords=", vbNullString)
Text1.Text = Replace(Text1.Text, "onmouseover=" & Chr(34) & "sh()" & Chr(34), vbNullString)
Text1.Text = Replace(Text1.Text, """,,,""", vbNullString)
cat() = Split(Text1.Text, "href=/")
For i = 0 To UBound(cat)
MsgBox ("http://www.neopets.com/market" & cat(i))
Next i
End Sub