Google Custom Search

1 resposta
evertonsilvagomesjav

Criei uma Custom Search no site da google me deram esse javascript aqui:

<!-- Put the following javascript before the closing </head> tag. -->
<script>
  (function() {
    var cx = '006241583181166892497:49qhgfx0vxe';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>

<!-- Place this tag where you want both of the search box and the search results to render -->
<gcse:search></gcse:search>
So que quando vou entrar na pgina nao da erro pq nao consigo utilizar a tag
<gcse:search></gcse:search>

como vou usar essa tag que me deram?

1 Resposta

ricardoleme

Olá!

Tente substituir

<gcse:search></gcse:search>

em seu código, por:

<div class="gcse-search"></div>
Criado 27 de outubro de 2012
Ultima resposta 29 de out. de 2012
Respostas 1
Participantes 2