解决方案 »

  1.   

    很简单啊,你在的输入框加个onchange()事件,这个事件调用ajax,从后台根据你输入的值进行模糊搜索,在把搜索结果用js显示在页面的div上。
    参考goole advise
      

  2.   

    就是一个简单的ajax例子么?<html>
    <body>
    <script type="text/javascript">
    function ajax()
     {
     var xmlHttp;
     try
        {
        xmlHttp=new XMLHttpRequest();
        }
     catch (e)
        {
       try
          {
          xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
          }
       catch (e)
          {
          try
             {
             xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
             }
          catch (e)
             {
             alert("您的浏览器不支持AJAX!");
             return false;
             }
          }
        }
        xmlHttp.onreadystatechange=function()
          {
          if(xmlHttp.readyState==4)
            {
             document.close.time.value=xmlHttp.responseText;
            }
          }
        xmlHttp.open("GET","time.asp",true);
        xmlHttp.send(null);

     }
    </script><form name="close">
    用户: <input type="text" name="username" onkeyup="ajax();" />
    时间: <input type="text" name="time" />
    </form></body>
    </html>
    time.asp:
    <%
    response.expires=-1
    response.write(time)
    %>
      

  3.   

    就是类似google suggest 那种?
      

  4.   

    你自己搜下 仿百度下拉框小例子
    我也搜过 从csdn下载的
      

  5.   

    以前自己写过一个,不过下拉列表总是对不齐的.很郁闷!  最后没办法就用jQuery了!!!
      

  6.   

    使用ajax的AutoCompleteExtender控件,可以查看相关资料,自动补全就是在百度搜索东西时下面会出来一下相关的内容。