2010-11-30 43 views
0
<!--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 site搜索框,但在我的實際網站上不起作用。誰能幫我?爲什麼這個搜索框沒有工作?

回答

0

我覺得這個名字應該是網站,而不是網站搜索

+0

我試過了,它說你的搜索 - 搜索到的信息 - 與任何文檔都不匹配。 – Robert 2010-12-01 01:00:22

-2

化妝value="http://www.google.com",它會工作。

0

據「不起作用」,因爲搜索將返回提供在頁面上沒有結果。您提供的arenanewbs.com域名爲does not even exist

的證明見this jsfiddle,即針對不同頁面的搜索實際工作(在我的例子,這是bbc.co.uk和「華爾街」語)。

相關問題