% response.buffer=true %> <% Function getit(strAdd,strFrom,strTo) Dim objXMLHTTP, strGot, strSource Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") objXMLHTTP.Open "GET", strAdd, False objXMLHTTP.Send strSource = objXMLHTTP.responseText Set objXMLHTTP = Nothing Dim b,e b=Instr(strSource,strFrom) If b<>0 Then b=b+Len(strFrom) e=Instr(b,strSource,strTo) strGot=Mid(strSource, b, e-b) Else Response.Write " " End If getit = strGot End Function dim Grabbed, CopyFrom, CopyTo Grabbed = "http://search.dmoz.org/cgi-bin/search?search=" & request("search") & "&utf8=1&locale=en_us&start=" & request.querystring("start") CopyFrom = "Open Directory Sites " CopyTo = "
" 'Dim strSource 'strSource = getit(Grabbed,CopyFrom,CopyTo) Dim strPreSource, strSource strPreSource = Replace(getit(Grabbed,CopyFrom,CopyTo),"http://dmoz.org/","scat.asp?ID=") strSource = Replace(strPreSource,"href=""search?","href=""ssearch.asp?ID=") dim howmany,iNewLen,sBox sBox = "
![]() |
<% If CINT(next1) > 0 Then response.write sBox & (strSource) & "