Alguien que me ayude para este buscador
Hola miren tengo este codigo. Pero el problema es que selecciono con que buscador (buscar!!)y me muestra el resultado en la misma pag - y lo que quiero es que abra otra pag con los resultado y en esta siga la opcion de buscar - alguien sabe que modificar? O denme uno parecido que pueda maniobrarlo
a mi antojo - osea tamaño de tablas y eso.
table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="125" height="107">
<script language="JavaScript">
<!--
function startSearch(){
searchString = document.searchForm.searchText.value;
if(searchString != ""){
searchEngine = document.searchForm.whichEngine.selectedIndex + 1;
finalSearchString = "";
if(searchEngine == 1){
finalSearchString = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
}
if(searchEngine == 2){
finalSearchString = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0";
}
if(searchEngine == 3){
finalSearchString = "http://www.excite.com/search.gw?trace=a&search=" + searchString;
}
if(searchEngine == 4){
finalSearchString = "http://www.hotbot.com/?SW=web&SM=MC&MT=" + searchString + "&DC=10&DE=2&RG=NA&_v=2&act.search.x=89&act.search.y=7";
}
if(searchEngine == 5){
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString + "&col=WW&sv=IS&lk=noframes&nh=10";
}
if(searchEngine == 6){
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + searchString + "&x=45&y=11";
}
if(searchEngine == 7){
finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
}
location.href = finalSearchString;
}
}
// -->
</script>
<basefont face="Verdana, Arial, sans-serif">
<form name="searchForm">
<table width=125 border cellpadding=3 cellspacing=2 bgcolor=#444444>
<tr>
<td bgcolor=#1c6ca8>
<input style="background: dddddd" name="searchText" type="text" size="15">
</tr>
<tr>
<td bgcolor=#1c6ca8>
<select style="background: dddddd" name="whichEngine">
<option selected>Altavista
<option>Yahoo!
<option>Excite
<option>Hotbot
<option>Infoseek
<option>Lycos
<option>AOL Netfind
</select>
</tr>
<tr>
<td bgcolor=#1c6ca8 align="left" valign="top">
<input type="button" value="Buscar" onClick="startSearch()">
</tr>
</table>
</form>
perdon por lo largo
gracias desde ya!!!
a mi antojo - osea tamaño de tablas y eso.
table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="125" height="107">
<script language="JavaScript">
<!--
function startSearch(){
searchString = document.searchForm.searchText.value;
if(searchString != ""){
searchEngine = document.searchForm.whichEngine.selectedIndex + 1;
finalSearchString = "";
if(searchEngine == 1){
finalSearchString = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
}
if(searchEngine == 2){
finalSearchString = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0";
}
if(searchEngine == 3){
finalSearchString = "http://www.excite.com/search.gw?trace=a&search=" + searchString;
}
if(searchEngine == 4){
finalSearchString = "http://www.hotbot.com/?SW=web&SM=MC&MT=" + searchString + "&DC=10&DE=2&RG=NA&_v=2&act.search.x=89&act.search.y=7";
}
if(searchEngine == 5){
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString + "&col=WW&sv=IS&lk=noframes&nh=10";
}
if(searchEngine == 6){
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + searchString + "&x=45&y=11";
}
if(searchEngine == 7){
finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
}
location.href = finalSearchString;
}
}
// -->
</script>
<basefont face="Verdana, Arial, sans-serif">
<form name="searchForm">
<table width=125 border cellpadding=3 cellspacing=2 bgcolor=#444444>
<tr>
<td bgcolor=#1c6ca8>
<input style="background: dddddd" name="searchText" type="text" size="15">
</tr>
<tr>
<td bgcolor=#1c6ca8>
<select style="background: dddddd" name="whichEngine">
<option selected>Altavista
<option>Yahoo!
<option>Excite
<option>Hotbot
<option>Infoseek
<option>Lycos
<option>AOL Netfind
</select>
</tr>
<tr>
<td bgcolor=#1c6ca8 align="left" valign="top">
<input type="button" value="Buscar" onClick="startSearch()">
</tr>
</table>
</form>
perdon por lo largo
gracias desde ya!!!
1 respuesta
Respuesta de abetop
1