Buscar palabras en html

30/01/2005 - 16:58 por Txiki | Informe spam
Soy novato y no entiendo mucho de html.

Quisiera saber como se puede crear en html un pequeño buscador que me
encuentre palabras de mi página web (sitio)

Imaginado que mi página web sea:
http://midominio.com

He creado esto
<FORM method=GET action=http://www.google.com/custom>
<INPUT TYPE=text name=q size maxlength%5 value=" Search This Site"
onfocus="this.value='';" onblur="if (this.value == '') this.value = '
Search This site';" />
<INPUT type=submit name=sa VALUE=" Go">
<INPUT type=hidden name=cof
VALUE="S:midominio.com;GL:0;AH:center;LH:72;L:midominio.com/images/mobbing.gif;LW:389;AWFID:b4bbb070937ca800;">
<input type=hidden name=domains value="midominio.com">
<input type=hidden name=sitesearch value=""><input type=hidden
name=sitesearch value="midominio.com" checked>
</FORM>

Que es lo que he hecho mal (copiado diria yop)


Muchas gracias,

Preguntas similare

Leer las respuestas

#6 Miguel Gonzalez
01/02/2005 - 12:29 | Informe spam
Hola Txiki.

La forma oficial de Google es:

(solo tienes que reemplazar "MIDOMINIO.COM" por tu nombre de dominio)

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size1 maxlength%5 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="MIDOMINIO.COM"><br><input
type=radio name=sitesearch value=""> WWW <input type=radio
name=sitesearch value="MIDOMINIO.COM" checked> MIDOMINIO.COM <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->



Si quieres tener más ventajas, como colocar una imagen de tu sitio y más
en la página de resultados, puedes darte de alta en el servicio de
búsqueda en el Google:

http://www.google.com/services/free.html

Saludos!


Txiki wrote:
Soy novato y no entiendo mucho de html.

Quisiera saber como se puede crear en html un pequeño buscador que me
encuentre palabras de mi página web (sitio)

Imaginado que mi página web sea:
http://midominio.com

He creado esto
<FORM method=GET action=http://www.google.com/custom>
<INPUT TYPE=text name=q size maxlength%5 value=" Search This Site"
onfocus="this.value='';" onblur="if (this.value == '') this.value = '
Search This site';" />
<INPUT type=submit name=sa VALUE=" Go">
<INPUT type=hidden name=cof
VALUE="S:midominio.com;GL:0;AH:center;LH:72;L:midominio.com/images/mobbing.gif;LW:389;AWFID:b4bbb070937ca800;">
<input type=hidden name=domains value="midominio.com">
<input type=hidden name=sitesearch value=""><input type=hidden
name=sitesearch value="midominio.com" checked>
</FORM>

Que es lo que he hecho mal (copiado diria yop)


Muchas gracias,

Respuesta Responder a este mensaje
#7 Txiki
01/02/2005 - 23:03 | Informe spam
On Tue, 01 Feb 2005 12:29:32 +0100, in microsoft.public.es.webmasters you
wrote:

Hola Txiki.

La forma oficial de Google es:

(solo tienes que reemplazar "MIDOMINIO.COM" por tu nombre de dominio)

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size1 maxlength%5 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="MIDOMINIO.COM"><br><input
type=radio name=sitesearch value=""> WWW <input type=radio
name=sitesearch value="MIDOMINIO.COM" checked> MIDOMINIO.COM <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->



Si quieres tener más ventajas, como colocar una imagen de tu sitio y más
en la página de resultados, puedes darte de alta en el servicio de
búsqueda en el Google:

http://www.google.com/services/free.html

Saludos!


Txiki wrote:
[26 quoted lines suppressed]





Gracias por la ayuda, seguiré tus instrucciones.
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una pregunta AnteriorRespuesta Tengo una respuesta
Search Busqueda sugerida