url是你的xxx.asp?xx=yy
set xmlhttp1 = CreateObject("Microsoft.XMLHTTP")
xmlhttp1.open "GET",url,false
xmlhttp1.send()
text1=xmlhttp1.responsetext
把text1写到你要显示的地方就可以了,这个就不多写了
xxx.asp中是这样的
theword=request("xx")
set fso=server.createobject("scripting.filesystemobject")
set objTStream=fso.OpenTextFile(你要检查的文件,1)
do while not objTStream.AtEndOfStream
str=str & objTStream.ReadLine
loop
objTStream.close
比如这个页面里你只要<p></p>的内容
wordlen=lenb(theword)
startpos=instrb(str,"<p>")
startpos=startpos+3
endpos=instrb(str,"</p>")
endpos=endpos+4
do while true
thewordpos=instrb(starpos,str,theword,endpos)
if thewordpos<>0 then
finalstr=fianlstr & midb(str,starpos,thewordpos-startpos)
finalstr=fianlstr & "<font color='ffffcc'>" & theword & "</font>" midb(str,thewordpos+thewordlen,endpos-thewordpos-thewordlen)
startpos=instrb(str,"<p>")
if stratpos=0 then
exit
end if
startpos=startpos+3
endpos=instrb(str,"</p>")
endpos=endpos+4
end if
loop