honeyprakash / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

search google misda #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
<div id="cse-search-form" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'id', style : google.loader.themes.MINIMALIST});
  var _gaq = _gaq || [];
  _gaq.push(["_setAccount", "UA-21067072"]);
  function _trackQuery(control, searcher, query) {
    var gaQueryParamName = "ibc.misda";
    var loc = document.location;
    var url = [
      loc.pathname,
      loc.search,
      loc.search ? '&' : '?',
      gaQueryParamName == '' ? 'q' : encodeURIComponent(gaQueryParamName),
      '=',
      encodeURIComponent(query)
    ].join('');
    _gaq.push(["_trackPageview", url]);
  }
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('016378069712876150291:b2ylyuhhapu');
    customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
    customSearchControl.setSearchStartingCallback(null, _trackQuery);
    var options = new google.search.DrawOptions();
    options.setAutoComplete(true);
    options.enableSearchboxOnly("http://www.google.com/cse?cx=016378069712876150291:b2ylyuhhapu", null, true);    
    customSearchControl.draw('cse-search-form', options);
  }, true);
</script>

Original issue reported on code.google.com by ibc.mi...@gmail.com on 30 Jul 2011 at 5:42

Attachments: