0
我對我的網站上的谷歌自定義網站搜索有疑問。谷歌自定義網站搜索(商業版)如何使搜索結果顯示在彈出式窗口中
我已付出100 $在我的網站上獲得自定義網站搜索一切工作只有一件事我不能修復。
我已經設置谷歌網站搜索以顯示結果在一個新的頁面上,這工作完美!
問題是我會把它在一個彈出窗口中,而不是在同一頁上的新窗口中! 我試圖添加一個彈出腳本,但每次我改變擴展search.htm它將不再做antyhing,所以我不能給它一個onclick事件或任何東西! :(
這是搜索欄的JavaScript:
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('011481879946604973384:9cjokptmuey');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.enableSearchboxOnly("search.htm");
customSearchControl.draw('cse-search-form', options);
}, true);
</script>
這行:options.enableSearchboxOnly("search.htm");
將使它進入search.htm在搜索結果中顯示
希望有人能幫助我。
謝謝..
它不會工作或我無法修復:( - (真正的快速重播tanx) – geert86
你只是停止瀏覽器導航到search.htm並加載與iframe中給定的搜索關鍵字search.htm。 – Mohsen
它已經是一個iframe,但在一個新的頁面上,我的意圖是使新頁面成爲一個彈出頁面,以便人們保持在同一頁面上! – geert86