0
我已經得到這個代碼:如何讓我的搜索引擎我的網站上,具體地點
<div id="search">
<form action="http://www.google.com/search?site:www.hostelguy.com" method="get">
<input type="text" class="field" name="query" value="Search..." title="Search..." />
<input type="submit" value="" alt="" class="submit-button" title="Search" onclick="doSearch(this.form.query);"/>
</form>
這.js文件
function doSearch (s) {
openDbRelativeURL("All?SearchView&Query=" + s.value);
}
function openDbRelativeURL(url, target){
//Check we have a target window;
target = (target == null) ? window : target;
//Work out the path of the database;
path = location.pathname.split('.nsf')[0] + '.nsf/';
target.location.href = path + url;
,我試圖使這個網站具體...感謝您的幫助到目前爲止,對此有何看法?
你想做什麼? –
將表單提交給Google搜索結果? –
你沒有傳遞查詢字符串到谷歌,您的輸入沒有名稱 –