Retroceder   Foros del Web > Diseño de Sitios web > Web general

Respuesta
 
Herramientas Desplegado
Antiguo 17-may-2006, 11:30   #1 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
Crear Buscador

Hola amigos alguien conoce como crear un buscador en una pagina que busque el contenido solo de esa pagina. "Es decir busque solo el contenido solo de la pagina en que esta.. Si la pagina es de deportes solo busque deportes en esa pagina..

ES UN BUSCADOR INTERNO..

Gracias

Última edición por Krlos07; 18-may-2006 a las 13:55.
Krlos07 está desconectado   Responder Citando
Antiguo 18-may-2006, 11:50   #2 (permalink)
jac_o_bo no se puede cailificar en este momento
 
Avatar de jac_o_bo
 
Fecha de Ingreso: diciembre-2005
Ubicación: Guatemala
Mensajes: 78
Enviar un mensaje por MSN a jac_o_bo Enviar un mensaje por Skype™ a jac_o_bo
Te refieres a que la bùsqueda se realice solo en el sitio?
__________________
Este es mi blog! http://vivoenguatemala.wordpress.com
jac_o_bo está desconectado   Responder Citando
Antiguo 18-may-2006, 11:51   #3 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
Tengo esto pero como hago para que funcione dentro de mi buscador en mi pagina web..

<form name="form1" method="post" action="buscador-de-seminarios-interno.php">
<table width="300" border="0">
<tr>
<td width="96" rowspan="2"><img src="index_r6_c14.jpg" width="86" height="55"></td>
<td width="194"><div align="center">
<input name="TxtPalabra" type="text" id="TxtPalabra" size="30" maxlength="50">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="Buscar cursos">
</div></td>
</tr>
</table>
</form>
Krlos07 está desconectado   Responder Citando
Antiguo 18-may-2006, 11:54   #4 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
Aquí un buscador creado por un script lo unico que busca lo que le indicas no busca automaticamente si conocen alguno que busque automaticamente me dicen por favor...

<HTML>

<HEAD>
<base target="leftframe">
<TITLE>UN JAVASCRIPT A LA SEMANA - demostración práctica </TITLE>

<style>
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
</style>


</HEAD>
<BODY BGCOLOR="white" vlink="blue" link="blue">

<br><br><br>
<font size=3 face=arial><b><div align=center>


<script
LANGUAGE="JavaScript">

<!-- Hide Script from Old Browsers
/*

Optimized by Daniel Bergman [http://botw.cjb.net].

Java Search Engine
(c)1997 Adam ALLEN.
Version 2.0
You may use this search engine on your page, but keep this
notice intact, and at the bottom of leave the Copyright notice at
the bottom of this page.
This scripts is my property, so please honnour my requests,
If you do so, you may freely copy, distribute, give this scripts
But it will FOREVER REMAIN MY PROPERTY.
This is the first Java Script that I have wrote, and am proud of it,
I feel pleased that I can contribute back to the bank of JavaScripts
that I have used on my page from other people, AN EYE FOR AN EYE!
*/

Keyword = new Object();
Descrip = new Object();
Address = new Object();

// Keyword[0] = n (where n is the number of keywords which can be searched
Keyword[0] = 6

// Each entry is split into
// Keyword[n] = text (where text is the keyword of which the entry is to
// be searched by (type Keywords in lowercase)
// Descrip[n] = text (where text is the description associated to this entry
// Address[n] = text (where text is the URL associated to the entry
// n is the entry number.

Keyword[1] = "javascript"
Descrip[1] = "350 ejemplos javascript gratis"
Address[1] = "http://www.htmlpoint.com/jscript"

Keyword[2] = "html"
Descrip[2] = "La guía en italiano al HTML"
Address[2] = "http://www.htmlpoint.com/guida"

Keyword[3] = "applet"
Descrip[3] = "Más de 300 applet Java para descargar"
Address[3] = "http://www.htmlpoint.com/java"

Keyword[4] = "cgi"
Descrip[4] = "El punto de referencia italiano sobre CGI"
Address[4] = "http://www.htmlpoint.com/cgi"

function checkDatabase() {

var Found = false
var Item = document.forms[0].searchfor.value.toLowerCase();

stats='toolbar=no,location=no,directories=no,statu s=no,menubar=no,height=300,width=300,'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","msgWindow",stats)
MsgBox.opener = window;
MsgBox.opener.name = "opener";
MsgBox.document.write("<head><title>Resultados de la búsqueda</title></head>");
MsgBox.document.write ("<body bgcolor=white text=black link=blue vlink=darkblue alink=blue><H2><CENTER><font face=arial>Resultados de la búsqueda</CENTER></H2>")
MsgBox.document.write ("<font size=3><b><center>Para el término: "+Item+"</center><hr width=50%></b></font>");
for (var i=1; i <= Keyword[0]; i++) {
if(Item == Keyword[i]) {
Found = true;
MsgBox.document.write ("<li><font face=arial><font size=2><b>"+Descrip[i]+"<BR><A HREF="+Address[i]+" target='opener'>Haz clic aquí</A></font></font>")

}
}
if(!Found)
MsgBox.document.write ("<H4>Ningún resultado</H4>")
// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<font size=2><font color=arial><INPUT type='button' value='cierra' onClick = 'self.close()'></font></font>")
MsgBox.document.write ("</CENTER></FORM>")
MsgBox.document.write ("<H6><small><small><small><b></b><font color=white><font face=arial><font size=1><font color=black>Originally created by Adam Allen <br>© 1997 All Rights Reserved</font></font></small></small></small>")
// There must be my notice above if you are to use this script legally.
// It took many hours work, fairs is fair, I just want that little line in
// and you get a fully working Search ENGINE, for FREE, on your site
// In Java Scripts as well, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
}
// -->

</script>

<form NAME="form1">

Buscar <input TYPE="text" NAME="searchfor" VALUE="" SIZE="20">
<input type="button" value="Ir" onClick="checkDatabase()"><br><br>
(cgi, javascript, applet, html)
</form>


</div>
</font>
<!---- CODICE RISERVATO AI RICHIAMI AD HTMLpoint, NON LO PRENDERE IN CONSIDERAZIONE ----->

</div>

<font size=1 face="arial">
<div align="center">
&nbsp;</div>

</BODY>
</HTML>

Última edición por Krlos07; 18-may-2006 a las 12:12.
Krlos07 está desconectado   Responder Citando
Antiguo 18-may-2006, 11:56   #5 (permalink)
pablasso tiene algunos puntos positivos de karma
 
Avatar de pablasso
 
Fecha de Ingreso: noviembre-2002
Ubicación: Guadalajara, México
Mensajes: 2.603
lo mejor seria que tuvieras indexado tu sitio, guardado palabras clave asociadas a esa pagina o todo en una base de datos y asi harias muy flexible la busqueda
__________________
pablasso.com | ciberpc.com
pablasso está desconectado   Responder Citando
Antiguo 18-may-2006, 12:32   #6 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
hola pablo como puedo puedo indexar mi sitio.. con palabras claves?? disculpa pero no se de esto uf y la base de datos no se como hacerla??? para que esto me funcione disculpa y gracias...
Krlos07 está desconectado   Responder Citando
Antiguo 18-may-2006, 17:05   #7 (permalink)
pablasso tiene algunos puntos positivos de karma
 
Avatar de pablasso
 
Fecha de Ingreso: noviembre-2002
Ubicación: Guadalajara, México
Mensajes: 2.603
lo que te comentaba era meter todas las palabras o bien palabras clave, que esten relacionadas con cada una de tus paginas, en una base de datos (mysql, postgresql) y hacer consultas SQL para la busqueda, esto se hace con algun lenguaje dinamico como php o asp.

puede que sea algo engorroso y te tome algo de tiempo sino estas ya familiarizado con ello
__________________
pablasso.com | ciberpc.com
pablasso está desconectado   Responder Citando
Antiguo 19-may-2006, 08:46   #8 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
Si la verdad si va hacer engorroso porque no conocozco de php ni asp para hacer el buscador interno..

Si tienen algun ejemplo para basarme por favor traten de conseguirlo para verlo por favor..

Gracias..
Krlos07 está desconectado   Responder Citando
Antiguo 31-may-2006, 15:11   #9 (permalink)
Krlos07 ha deshabilitado el karma
 
Fecha de Ingreso: enero-2006
Mensajes: 140
miren esto muchachos digamen que les parece convence o tadavia no convence mucho..

http://services.google.com/searchcode2.html#both
Krlos07 está desconectado   Responder Citando
Antiguo 28-jun-2007, 10:25   #10 (permalink)
eter_6 ha deshabilitado el karma
 
Fecha de Ingreso: marzo-2007
Mensajes: 12
Re: Crear Buscador

Hola Krlos07

Google nos permite colocar un buscador dentro de nuestra página, ya sea con salida al web o dentro de nuestro propio sitio, encontré un ejemplo muy sencillo para implementarlo desde la página del CNICE que espero te sea de utilidad, a continuación te dejo las ligas:

CNICE (Centro Nacional de Educación de Información y Comunicación Educativa)
http://www.cnice.mecd.es/

Liga del artículo:
http://observatorio.cnice.mec.es/mod...rticle&sid=359

Suerte! ;þ
eter_6 está desconectado   Responder Citando
Antiguo 28-jun-2007, 10:26   #11 (permalink)
eter_6 ha deshabilitado el karma
 
Fecha de Ingreso: marzo-2007
Mensajes: 12
Re: Crear Buscador

jajaja xD no ví la fecha de publicación, igual espero sirva para los futuros visitantes ;)
eter_6 está desconectado   Responder Citando
Antiguo 11-jul-2007, 14:46   #12 (permalink)
jaorcor ha deshabilitado el karma
 
Fecha de Ingreso: julio-2007
Mensajes: 6
Re: Crear Buscador

Estimado:
yo tengo un ejemplo de eso que tu necesitas aqui va, reemplaza www.pelambres.cl po tu pagina

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Buscador Google</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<FORM NAME="frmGoogle"
ONSUBMIT="javascript:MiGoogle( document.frmGoogle.topicos.value );
return(false);">
<P><FONT FACE="verdana" SIZE="2"><B>Ingrese datos a Buscar:</B><BR>
<INPUT TYPE="text" SIZE="70" NAME="topicos">
<INPUT TYPE="submit" VALUE="Buscar"> </FONT></P> </FORM><!--- Funcion en JavaScript (requerida!) --->
<SCRIPT LANGUAGE="JavaScript">

function MiGoogle( Topicos )
{

// Verificamos que hayan ingresado alguna palabra..

if(!Topicos)
{ alert( "Por favor ingresa los topicos por los cuales buscar." ); return; }

////////////////////////////////////////////////
// //
// Modifica el valor de la variable "MiSitio" //
// por TU dominio. //
// //
////////////////////////////////////////////////

var MiSitio = "http://www.pelambres.cl";

window.open
(
"http://www.google.com/search?q=site:" + "http://www.pelambres.cl" + "+" + Topicos
);

}

</SCRIPT>

<!--- Fin del Script-->

</body>
</html>


aqui va otro


<HTML>

<HEAD>
<base target="leftframe">
<TITLE>UN JAVASCRIPT A LA SEMANA - demostración práctica </TITLE>

<style>
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
</style>


</HEAD>
<BODY BGCOLOR="white" vlink="blue" link="blue">

<br><br><br>
<div align=center>

<font size="2" face="arial">
<script
LANGUAGE="JavaScript">

<!-- Hide Script from Old Browsers
/*

Optimized by Daniel Bergman [http://botw.cjb.net].

Java Search Engine
(c)1997 Adam ALLEN.
Version 2.0
You may use this search engine on your page, but keep this
notice intact, and at the bottom of leave the Copyright notice at
the bottom of this page.
This scripts is my property, so please honnour my requests,
If you do so, you may freely copy, distribute, give this scripts
But it will FOREVER REMAIN MY PROPERTY.
This is the first Java Script that I have wrote, and am proud of it,
I feel pleased that I can contribute back to the bank of JavaScripts
that I have used on my page from other people, AN EYE FOR AN EYE!
*/

Keyword = new Object();
Descrip = new Object();
Address = new Object();

// Keyword[0] = n (where n is the number of keywords which can be searched
Keyword[0] = 6

// Each entry is split into
// Keyword[n] = text (where text is the keyword of which the entry is to
// be searched by (type Keywords in lowercase)
// Descrip[n] = text (where text is the description associated to this entry
// Address[n] = text (where text is the URL associated to the entry
// n is the entry number.

Keyword[1] = "javascript"
Descrip[1] = "350 ejemplos javascript gratis"
Address[1] = "http://www.htmlpoint.com/jscript"

Keyword[2] = "html"
Descrip[2] = "La guía en italiano al HTML"
Address[2] = "http://www.htmlpoint.com/guida"

Keyword[3] = "applet"
Descrip[3] = "Más de 300 applet Java para descargar"
Address[3] = "http://www.htmlpoint.com/java"

Keyword[4] = "cgi"
Descrip[4] = "El punto de referencia italiano sobre CGI"
Address[4] = "http://www.htmlpoint.com/cgi"

function checkDatabase() {

var Found = false
var Item = document.forms[0].searchfor.value.toLowerCase();

stats='toolbar=no,location=no,directories=no,statu s=no,menubar=no,height=220,width=600,'
stats += 'scrollbars=yes,resizable=yes'
MsgBox = window.open ("","msgWindow",stats)
MsgBox.opener = window;
MsgBox.opener.name = "opener";
MsgBox.document.write("<head><title>Resultados de la búsqueda</title></head>");
MsgBox.document.write ("<body bgcolor=white text=black link=blue vlink=darkblue alink=blue><H2><CENTER><font face=arial>Resultados de la búsqueda</CENTER></H2>")
MsgBox.document.write ("<font size=3><b><center>Para el término: "+Item+"</center><hr width=50%></b></font>");
for (var i=1; i <= Keyword[0]; i++) {
if(Item == Keyword[i]) {
Found = true;
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<li><font face=arial><font size=2><b>"+Descrip[i]+"<BR><A HREF="+Address[i]+" target='opener'>Haz clic aquí</A></font></font>")
MsgBox.document.write ("</CENTER></FORM>")
}
}
if(!Found)
MsgBox.document.write ("<H4>Ningún resultado</H4>")
// Leave the line below intact if you want to legally use this script
MsgBox.document.write ("<FORM><CENTER>")
MsgBox.document.write ("<font size=2><font color=arial><INPUT type='button' value='CERRAR' onClick = 'self.close()'></font></font>")
MsgBox.document.write ("</CENTER></FORM>")
// There must be my notice above if you are to use this script legally.
// It took many hours work, fairs is fair, I just want that little line in
// and you get a fully working Search ENGINE, for FREE, on your site
// In Java Scripts as well, and not crap JAVA!
// Also a copyright notice MUST appear with the form.
}
// -->

</script>

</font>
<form NAME="form1">
<font size="2" face="arial"><strong>Ingrese Datos a Buscar</strong><br>
<input TYPE="text" NAME="searchfor" VALUE="JavaScript" SIZE="80">
<input type="button" value="BUSCAR" onClick="checkDatabase()">
</font>
</form>
</div>

</div>


</BODY>
</HTML>

si puedes ayudarme tu ahora, yo necesito un buscador en mi pagina pero este buscador debe ir a buscar a una base de datos access, si tienes algun ejemplo ayudame porfavor..

javier
jaorcor está desconectado   Responder Citando
Respuesta
No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 03:32.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93