Buscador Selectivo
Publicado por ScriptShow (692 intervenciones) el 15/12/2018 14:04:06
Un Buscador en Lenguaje JavaScript que realiza búsquedas de términos asociados / relacionados a Webs preseleccionadas.
Un Script que se puede incluir en cualquier página para facilitar búsquedas concretas y selectivas.
El código básico, totalmente operativo:
Un saludo
Un Script que se puede incluir en cualquier página para facilitar búsquedas concretas y selectivas.
El código básico, totalmente operativo:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
//<![CDATA[
function dosearch() {
var sfm=document.searchform;
var bwr = "https://www.google.com/search?q=";
for (i=sfm.sengines.length-1; i > -1; i--) {
if (sfm.sengines[i].checked) {
var submitto = bwr + escape(sfm.searchterms.value) + ' ' + sfm.sengines[i].value;}}
window.open(submitto);
return false;}
//]]>
</script>
<h4>Buscador</h4>
<form method="get" name="searchform" onsubmit="return dosearch()">
<input type="text" name="searchterms">
<input type="submit" name="SearchSubmit" value="Buscar en ...">
<p>
<input name="sengines" type="radio" checked="checked" value=""> Google
<input name="sengines" type="radio" value="site:www.w3schools.com/"> W3Schools
<input name="sengines" type="radio" value="site:www.lawebdelprogramador.com/"> L W P
<input name="sengines" type="radio" value="site:developer.mozilla.org/"> M D N
</p>
Un saludo
Valora esta pregunta


0