请为这个asp全文检索程序增加二次检索功能

来源:百度知道 编辑:UC知道 时间:2024/06/04 10:58:34
<%
Head = "htm文件全文搜索"
SearchString = Request("SearchString")
count=0

'把当前目录的实际路径转换为虚拟路径
Function UnMapPath( Path )
UnMapPath = Replace(Mid(Path, Len(Server.MapPath("/")) + 1), "\", "/")
End Function

Function SearchFile( f, s, title )
Set fo = fs.OpenTextFile(f)
content = fo.ReadAll'读全部文本到content
fo.Close
SearchFile = InStr(1, content, S, vbTextCompare) > 0 '从第一个字符开始检查content里面是否有S
If SearchFile Then'如果有,则提出文件TITLE存入变量
pos1 = InStr(1, content, "<TITLE>", vbTextCompare)
pos2 = InStr(1, content, "</TITLE>", vbTextCompare)
title = ""
If pos1 > 0 And pos2 > 0 Then'取TITLE标记中间的字符
title = Mid( content, pos1 + 7, pos2 - pos1 - 7 )
End If
End If
End Function

Function FileLink( f, title )
vPath = UnMapPath( f.Path )&#

●ღღღღღღღღღღღღღღღღღღ UG教程ღღღღღღღღღღღღღღღღღღ●
没有作者均于:xaxinran制作

【教程】怎样制作闪闪的背景http://post.baidu.com/f?kz=76633553UGA
【教程】不同颜色的闪字:http://post.baidu.com/f?kz=71189304
【教程】闪底小的背景 :http://post.baidu.com/f?kz=71181559
【教程】初级闪字 :http://post.baidu.com/f?kz=70615428
【教程】给闪字加图片 http://post.baidu.com/f