如何将集成的Google搜索添加到我的网站?

问题描述:

基本上我有一个网站。我有一个正确设置的网站地图,所以我认为谷歌知道我的所有网页。而且我在一些网站上看到,搜索表单会导致带有原始网站外壳的页面,但结果明显由Google提供。与编码horror.com的搜索类似,但他的结果没有显示在他的网站布局中。如何将集成的Google搜索添加到我的网站?

任何想法我在说什么或如何实现这一目标?

https://cse.google.com/cse/

^也许你正在寻找谷歌自定义搜索引擎

喜欢this

<form method="get" action="http://www.google.com/search"> 

<div style="border:1px solid black;padding:4px;width:20em;"> 
<table border="0" cellpadding="0"> 
<tr><td> 
<input type="text" name="q" size="25" 
maxlength="255" value="" /> 
<input type="submit" value="Google Search" /></td></tr> 
<tr><td align="center" style="font-size:75%"> 
<input type="checkbox" name="sitesearch" 
value="askdavetaylor.com" checked /> only search Ask Dave Taylor<br /> 
</td></tr></table> 
</div> 

</form> 

对于在一个单独的帧显示结果,就得this site,例如,

这将是沿着线的东西:

<html> 
<head> 
    <meta http-equiv="Content-Language" content="en-gb"> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 

    <script language="javascript" type="text/javascript"> 
    function showFrame() { 
     var e = document.getElementById("if1"); 
     e.style.visibility = "visible" ; 
    } 
    </script> 
</head> 

<body> 
    <p> </p> 
    <p> 
    <span id="spSearch" onclick="showFrame()">Search</span> 
    </p> 
    <p> </p> 
    <p><iframe name="I1" id="if1" width="100%" height="254" style="visibility:hidden" src="http://www.google.co.uk"> 
     Your browser does not support inline frames or is currently configured not to display inline frames. 
    </iframe></p> 
</body> 
</html> 
+0

ŧ他只是将查询转发给Google,我正在讨论将结果显示在您的布局中。 是否有可能我所看到的仅仅是一个iframe? – 2008-11-08 20:35:53

一个简单的方法有一个定制的谷歌搜索是使用AdSense搜索广告,它可以让你:

  • 搜索于一体或更多的网站,或整个互联网。
  • 在新窗口,当前窗口或iframe中打开。
  • 自定义搜索结果的颜色。
  • 它也可以支付你分毫的广告点击。

由于列出的其他回答者,我beleieve自定义搜索是你在找什么。

只是想提供更多信息。 Google也有网站搜索,但您需要为此付费。

看看谷歌网站管理员工具: http://www.google.com/webmasters/

特别是:

+0

谢谢我认为网站搜索实际上是我在找的东西 – 2008-11-09 01:03:44

对于基于使用site:查询,只有看的有点控制的主要谷歌索引一个免费的解决方案和感觉,试试Google Custom Search Engine

对于数百美元,您的网站有一个更全面和最新的索引,并完全控制外观和感觉,请尝试Google Site Search

对于需要完全控制索引所有方面和搜索体验以及需要索引中成千上万项目的任何项目的企业,请尝试Google Search Appliance

这相同的答案我刚才另一个问题提出所以这就是答案

到这个链接https://www.google.com/cse/和创建账户 创建自定义搜索框 自定义外观为您的心愿 复制代码定制 后粘贴到你的博客或网站,你需要在搜索框中出现..

如果你想在搜索框像我的网站http://www.latestgames2.com/刚刚定制的所有的颜色和形状