<search function="hb">
<name>HotBot</name>
<description>
HotBot: More Search. More Engine.<br/>
<div class="helpboxDescLabels">Switches:</div>
<table class="helpboxDescTable">
<tr><td>/f</td><td> - </td><td>Search HotBot using FAST</td></tr>
<tr><td>/g</td><td> - </td><td>Search HotBot using Google</td></tr>
<tr><td>/i</td><td> - </td><td>Search HotBot using Inktomi</td></tr>
<tr><td>/t</td><td> - </td><td>Search HotBot using Teoma</td></tr>
<tr><td>></td><td> - </td><td>Shortcut to search using HotBot's Advanced Search</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
<tr><td>hb dogs /f</td></tr>
<tr><td>hb tony blair /g</td></tr>
<tr><td>hb dogs /i</td></tr>
<tr><td>hb dogs /t</td></tr>
<tr><td>></td></tr>
<tr><td>More advanced searches to be added soon...</td></tr>
</table>
</description>
<category>Search the Web</category>
<link>http://www.hotbot.com/</link>
<contributor>Lincoln Jackson, Director New Products, HotBot/Lycos</contributor>
<form name="hbf"
action="">
method="get">
<input type="hidden" name="query"/>
</form>
<form name="hbf_FAST"
action="">
method="get">
<input type="hidden" name="prov" value="FAST"/>
<input type="hidden" name="query"/>
</form>
<form name="hbf_Google"
action="">
method="get">
<input type="hidden" name="prov" value="Google"/>
<input type="hidden" name="query"/>
</form>
<form name="hbf_Inktomi"
action="">
method="get">
<input type="hidden" name="prov" value="Inktomi"/>
<input type="hidden" name="query"/>
</form>
<form name="hbf_Teoma"
action="">
method="get">
<input type="hidden" name="prov" value="Teoma"/>
<input type="hidden" name="query"/>
</form>
<form name="hbf_Advanced"
action="">
method="get">
<input type="hidden" name="query"/>
</form>
<script><![CDATA[
function hb(q)
//by MLL: warning : news service is still in beta stage, so URLs below may change
{
var args = parseArgs(q, "advanced, fast, google, inktomi, teoma");
var mode, local, local_meta = "", local_tld = "com";
if( nullArgs( "hb", q ) ) return false;
// Establish the locale and mode the search will run in.
if( args.switches.length > 0 )
{
for( var j=0; j<args.switches.length; j++ )
{
if(mode) // multiple 'modes' have been specified
{
nullArgs("hb","?");
return false;
}
else
mode = args.switches[j].name;
break;
}
}
// Change the form data to use the correct locale
document.hbf.action = "" + local_tld + "/";
document.hbf_FAST.action = "" + local_tld + "/";
document.hbf_Google.action = "" + local_tld + "/";
document.hbf_Inktomi.action = "" + local_tld + "/";
document.hbf_Teoma.action = "" + local_tld + "/";
document.hbf_Advanced.action = "" + local_tld + "/adv.asp";
// No parameters, so go to the appropriate web page.
if( args.q == "" )
{
var hotbotURL = "http://www.hotbot." + local_tld;
switch( mode )
{
case "fast": hotbotURL = "http://www.hotbot." + local_tld + "/"; break;
case "google": hotbotURL = "http://www.hotbot." + local_tld + "/"; break;
case "inktomi": hotbotURL = "http://www.hotbot." + local_tld + "/"; break;
case "teoma": hotbotURL = "http://www.hotbot." + local_tld + "/"; break;
case "advanced": hotbotURL = "http://www.hotbot." + local_tld + "/adv.asp"; break;
default:
}
openSearchWindow( hotbotURL );
return;
}
else
{
if( mode )
{
switch( mode )
{
case "fast":
document.hbf_FAST.query.value = args.q;
submitForm(hbf_FAST);
break;
case "google":
document.hbf_Google.query.value = args.q;
submitForm(hbf_Google);
break;
case "inktomi":
document.hbf_Inktomi.query.value = args.q;
submitForm(hbf_Inktomi);
break;
case "teoma":
document.hbf_Teoma.query.value = args.q;
submitForm(hbf_Teoma);
break;
case "advanced":
document.hbf_Advanced.query.value = args.q;
submitForm(hbf_Teoma);
break;
}
}
else
{
document.hbf.query.value = args.q;
submitForm(hbf);
}
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>
