tcjinformatica 0 Denunciar post Postado Outubro 7, 2013 Bom dia caros colegas aqui do fórum, venho mais uma vez por meio deste tentar solucionar uma dúvida... É o seguinte, estou tentando colocar um mecanismo de busca do google em meu site e o mesma até funciona quando digito algo na barra de pesquisa, mais primeiramente ele redireciona para o site do google, somente isso, e não redireciona já com os resultados da pesquisa... <div id="search_area"> <form method="get" class="search_form" action="http://www.google.com.br"> <p> <input class="text_input" value="Pesquisar no google" name="s" id="s" onfocus="if (this.value == 'Pesquisar no google'){this.value = '';}" onblur="if (this.value == '') {this.value = 'Pesquisar no google;}" type="text"> <input id="searchsubmit" value="Pesquisar" type="hidden"> </p> </form> </div> Esse é o código que estou a utilizar, será que contém algum erro ou está a faltar algo? Ninguém? Compartilhar este post Link para o post Compartilhar em outros sites
jansen marlon rosa 0 Denunciar post Postado Outubro 8, 2013 pra mim funciona esse testa ai <center><FORM method=GET action="http://www.google.com/search"><TABLE bgcolor="#FFFFFF"><tr><td><A HREF="http://www.google.com/"></A><br><INPUT TYPE=text name=q size=100 maxlength=255 value="" background-color="#ff00ff"><br><center><INPUT type=submit name=btnG VALUE="Pesquisa com google"></center></td></tr></TABLE></FORM> Compartilhar este post Link para o post Compartilhar em outros sites
pedrohsb 6 Denunciar post Postado Outubro 20, 2013 Eu tenho um código muito melhor, que você escolhe se quer pesquisar na web ou no seu site. Veja: <form method="get" action="https://www.google.com/search" target="_top"> <input type="text" name="q" size="25" maxlength="255" value=""> <input type="submit" name="sa" value="Pesquisar"> <font face="arial" size="-1"> <input type="hidden" name="domains" value="LINK_DO_SEU_SITE"><br> <label><b>Pesquisar em:</b><input type="radio" name="sitesearch" value="www.fourmilab.ch" checked="checked"> NOME_DO_SEU_SITE</label> <label><input type="radio" name="sitesearch" value=""> a web</label> </font> </td> </tr> </tbody></table> </form> Compartilhar este post Link para o post Compartilhar em outros sites
tcjinformatica 0 Denunciar post Postado Outubro 22, 2013 Boa tarde caro PEDROHSB. Então para mim pesquisar na web eu preciso que o código acima esteja assim : <form method="get" action="https://www.google.com/search" target="_top"> <input type="text" name="q" size="25" maxlength="255" value=""> <input type="submit" name="sa" value="Pesquisar"> <font face="arial" size="-1"> <input type="hidden" name="domains" value="https://www.google.com/search"><br> <label><b>Pesquisar em:</b><input type="radio" name="sitesearch" value="www.fourmilab.ch" checked="checked">TCJ Informática</label> <label><input type="radio" name="sitesearch" value=""> a web</label> </font> </td> </tr> </tbody></table> </form> Compartilhar este post Link para o post Compartilhar em outros sites