为什么这个搜索框不工作?

  <!--got this from http://www.getgooglesearch.com/-->
  <fieldset id="searchbox">  
    <form method="get" action="http://www.google.com/search">
      <input type="text"   name="q" size="25" maxlength="255" value="" />
      <input type="image" src="../media/google.gif" alt="Submit button" title="Submit" /><br />
      <input type="checkbox"  name="sitesearch" value="arenanewbs.com" checked="checked" />Only search Areneanewbs.com<br />
    </form>
  </fieldset>

如果您取消选中Google网站搜索框,但在我的实际网站上不起作用。 谁能帮我?


我认为这个名称应该是网站而不是网站搜索


它“不起作用”,因为搜索不会在您提供的页面上返回结果 。 您提供的arenanewbs.com域名甚至不存在。

看到这个jsfiddle的证明, 实际上对不同页面的搜索工作 (在我的例子中,这是bbc.co.uk和“华尔街”的短语)。


使value="http://www.google.com" ,它会工作。

链接地址: http://www.djcxy.com/p/15657.html

上一篇: Why doesn't this searchbox work?

下一篇: XML in markup, any ideas why?