我已经为我的网站付了Google Site Search,尽管它说你不需要品牌化,但它会在文本框中添加一个“Google Custom Search”水印。我不希望显示它,但似乎它是由Google的API通过javascript添加的。Google Site Search - 如何摆脱品牌?
任何想法如何删除此?
的代码我使用看起来像这样
它采用了谷歌
<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', {"nocss" : true});
google.setOnLoadCallback(function(){
var customSearchControl = new google.search.CustomSearchControl('XXXXXXXXXXXXXXX:xxxxxxxxxx');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setSearchFormRoot('cse-search-form');
customSearchControl.draw('cse', options);
}, true);
</script>
<link rel="stylesheet" href="search.css" type="text/css" />
我使用“搜索元素。提供大多数布局和自定义选项。”选项从外观和感觉部分。
另外,我怎么只得到1页的结果,然后从谷歌获得更多的链接?我想让人们留在我的网站上,当他们到第2页时,他们应该在第1页看到它。
任何想法?
感谢
我已经下载了cse.xml文件,我注意到这里有一个元素像这样 如何设置'googlebranding'元素以使水印不显示? Google API甚至没有提及它。 –
Graeme
2009-11-20 10:38:11