2011-11-17 55 views
0

我已經在我的網站驗證碼:谷歌自定義網頁搜索:隱藏控件

<div id="cse" style="width: 100%;">Loading</div> 
      <script src="//www.google.com/jsapi" type="text/javascript"></script> 
      <script type="text/javascript"> 
       google.load('search', '1', {language : 'it'}); 
       google.setOnLoadCallback(function() { 
       var customSearchControl = new google.search.CustomSearchControl('mybigbigbignumber'); 
       customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET); 
       customSearchControl.draw('cse'); 
       }, true); 
      </script> 
      <link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" type="text/css" /> 

它按預期工作:出現在谷歌搜索欄,搜索結果將出現在下面的對話框。

我需要的是一個「透明」搜索操作。

我的意思是在我的表單中傳遞搜索條件到google WebSearch服務,並將結果顯示在由我製作的自定義css-ized列表中。

回答

0

我最終使用一些jQuery來隱藏Google標準表單並觸發其提交。