home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / hb.xml < prev    next >
Text File  |  2002-12-20  |  2KB  |  63 lines

  1. <search function="hb">
  2.   <name>HotBot</name>
  3.   <description>
  4.     Search FAST, Google, Inktomi, or Teoma on HotBot.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/fst</td><td> - </td><td>FAST - AllTheWeb's search engine.</td></tr>
  8.       <tr><td>/gg</td><td> - </td><td>Google search engine.</td></tr>
  9.       <tr><td>/ink</td><td> - </td><td>Inktomi search engine (HotBot default).</td></tr>
  10.       <tr><td>/tm</td><td> - </td><td>Teoma search using Subject Specific Popularity.</td></tr>
  11.     </table>
  12.     <div class="helpboxDescLabels">Example:</div>
  13.     <table class="helpboxDescTable">
  14.           <tr><td>hb jeep</td></tr>
  15.       </table>
  16.   </description>
  17.   <category>Search the Web</category>
  18.   <link>http://www.hotbot.com/</link>
  19.   
  20.   <form name="hbf"
  21.         action="http://www.hotbot.com/default.asp"
  22.         method="get">
  23.     <input type="hidden" name="prov"/>
  24.     <input type="hidden" name="ps" value=""/>
  25.     <input type="hidden" name="loc" value="searchbox"/>
  26.     <input type="hidden" name="tab" value="web"/>
  27.     <input type="hidden" name="query"/>
  28.   </form>
  29.   
  30.   <script><![CDATA[
  31.     function hb(q)
  32.     //by GAK
  33.     {
  34.       var args = parseArgs(q, "fst, gg, ink, tm");
  35.       var mode = "";
  36.  
  37.       if( nullArgs("hb", args.q) )
  38.         return false;
  39.       else if( args.switches.length == 1 )
  40.       {
  41.             switch (args.switches[0].name)
  42.             {
  43.                 case "fst": mode = "FAST"; break;
  44.                 case "gg": mode = "Google"; break;
  45.                 case "ink": mode = "Inktomi"; break;
  46.                 case "tm": mode = "Teoma"; break;
  47.                 default: mode = "";
  48.             }
  49.         document.hbf.prov.value = mode;
  50.         document.hbf.prov.checked = "checked";
  51.       }    
  52.     document.hbf.query.value = args.q;
  53.     submitForm(hbf);
  54.     }
  55.   ]]></script>
  56.  
  57.   <copyright>
  58.     Copyright (c) 2002 Gregory Krohne
  59.     Distributed under the terms of the
  60.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  61.   </copyright>
  62. </search>
  63.