用ASP做一个TOP COOL的站内搜索。

作者:网络 来源:佚名 更新时间:2008-02-05 12:14:42 点击:
该搜索引擎由一个htm文件一个asp文件组成,主要是运用filesystemobject组件来达到目的,功能强大,修改界面以后可以直接拿来使用,当然加上一点自己的东西就更加好了。

searchpage.htm
该htm文件用来传入条件

<html>
    <head>
        <title>asp搜索引擎范例</title>
    </head>
    <body>
        <center>
            <form method=post action="search.asp">
                
    <table bgcolor="#cc6633" border="0">
      <tr>
                        
        <td rowspan="3" bgcolor="#cc6633" width="21" nowrap>  </td>
                        
        <td width="363" nowrap> <font color="#ffffff">
          <input type="text" name="searchtext" size="22">
                                <input type="checkbox" name="case">
          高度敏感</font> </td>
                        
        <td rowspan="3" width="10">
          <input type="submit" value="确定">
                                <p>
                            
            <input type="reset" value="清除">
                        </td>
                        
        <td rowspan="3" bgcolor="#cc6633" width="28">  </td>
                    </tr>
                    <tr>
                        
        <td width="363" nowrap> <font color="#ffffff"> 返回结果
          <select name="rlength" >
            <option value="200" selected>长信息 </option>
            <option value="100">短信息</option>
            <option value="0">只返回连接</option>
          </select>
                                <select name="rresults">
                                    <o