ik heb hier een schiptje waarmee je met verschillende zoekmachines direct kan zoeken
(hier is een demo)
dit is de code:
hoe kan ik zorgen dat ik maar één zoekmachine heb zonder dat uitklapmenu??
(hier is een demo)
dit is de code:
<script>
function n(naam, statnaam){
top.location.href=naam;
}
function addplus(items){
var plussed = "";
for (var t = 1 ; t <= items.length ; t++)
{
if (items.substring(t-1,t) == " ")
{ plussed+="+"; }
else
{
if (items.substring(t-1,t) == "+")
{ plussed+="%2B"; }
else
{ plussed+=items.substring(t-1,t); }
}
}
return plussed;
}
function doSearch(){
var words;
words = document.searchforit.query.value;
var searchitems;
searchitems=addplus(words);
var index;
index = document.searchforit.service.selectedIndex;
var site;
site = document.searchforit.service.options[index].value;
site+=searchitems;
if (notEmpty(searchitems))
{
n(site, ('searchengine' + index + '.htm'));
}
}
function notEmpty(word){
if (word == "" || word == null)
{
alert("\nU moet natuurlijk wel een zoekwoord opgeven,\n\nvoordat u op 'Zoek' kunt klikken...");
document.searchforit.query.focus();
return false;
}
else
{
return true;
}
}
</script> </font><form
action="javascript:doSearch();void(0)//" method="get"
name="searchforit" target="_self">
<p><select name="service"
size="1">
<option selected
value="http://www.altavista.nl/cgi-bin/query?pg=q&what=web&fmt=&q=">AltaVista</option>
<option
value="http://www.askjeeves.com/main/askJeeves.asp?origin=&qSource=0&ask=">Ask Jeeves</option>
<option value="http://nl.excite.com/search.gw?s=">Excite</option>
<option value="http://www.hotbot.com/?mt=">Hotbot</option>
<option
value="http://www.ilse.nl/?COMMAND=search_for&LANGUAGE=NL&PROFILE=st&FAMILY=no&SEARCH_FOR=">Ilse</option>
<option
value="http://www2.infoseek.com/Titles?qt=">Infoseek</option>
<option
value="http://www.nl.lycos.de/cgi-bin/pursuit?adv=0&query=">Lycos</option>
<option
value="http://www.metacrawler.com/cgi-bin/nph-metaquery.p?general=">Metacrawler</option>
<option
value="http://www.mybegin.nl/search/?action=Search&cat=World%2FNederlands%2F&all=no&query=">MyBegin</option>
<option value="http://www.scoot.nl/start.asp?ce=">Scoot</option>
<option
value="http://zoeken.track.nl/Raven?sm=1&st=1&pl=10&qr=">Track</option>
<option
value="http://search.yahoo.com/bin/search?p=">Yahoo</option>
</select> <br>
<input type="text" size="10" name="query"> <input
type="button" value="Zoek" onclick="doSearch()"></font></p>
</form>
</script
hoe kan ik zorgen dat ik maar één zoekmachine heb zonder dat uitklapmenu??