% 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=" & replace(request("strSearch"), " ", "+") Grabbed = "http://search.dmoz.org/cgi-bin/search?search=" & request.querystring("strSearch") CopyFrom = "Open Directory Sites " 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 = "
Sorry No Match |