你可以在Google web elements上面找到最新自定义Google搜索引擎的方法,并且此方法适合于任何网站,你可以把它加入到侧边栏或任何,你想要加入的位置。

下面是需要加入到网站的代码:

<!-- Google Custom Search Element -->
<div id="cse" style="width:100%;">Loading</div><script src="http://www.google.com/jsapi" type="text/javascript"></script><script type="text/javascript">google.load('search', '1');google.setOnLoadCallback(function(){var cse = new google.search.CustomSearchControl();cse.draw('cse');}, true);</script>

就是如此简单,快来加入吧。当然你也可以加入自己的搜索广告,一举数得。

Last modification:April 11th, 2020 at 09:18 pm
如果觉得我的文章对你有用,请随意赞赏