如何为您的网页或博客创建搜索


如何为您的网页或博客创建搜索

文章插图
提示考虑创建一个Google 自定义搜索引擎以获得更多选项和功能 。
【如何为您的网页或博客创建搜索】如今,许多大型搜索引擎允许您使用其索引为您的页面创建自定义搜索 。例如,您可以将 Google 搜索栏添加到您的网页,该搜索栏仅使用以下代码搜索您网站上的页面 。
<!-- SiteSearch Google --> <form method="GET" action="https://www.google.com/webhp"> <input type="hidden" name="ie" value="https://www.duotin.com/en/UTF-8"> <input type="hidden" name="oe" value="https://www.duotin.com/en/UTF-8"> <table bgcolor="#FFFFFF"><tr><td> <a href="https://www.google. com/"><img src="https://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google 徽标"></a> </td> <td> <input type="text" name="q" size="31" maxlength="255" value="https://www.duotin.com/en/"> <input type="submit" name="btnG" value="https://www.duotin.com/en/Google 搜索"> <input type="hidden" name="domains" value="https://www.duotin.com/en/Computer Hope"><br><input type="radio" name="sitesearch" value=""> WWW <input type="radio" name="sitesearch" value="https://www.duotin.com/en/computerhope.com" 已选中>com “已检查>com “已检查>计算机希望<br> </td></tr></table> </form> <!-- SiteSearch Google -->更改computerhope.com和Computer Hope对您的域和网站的引用可让您使用 Google 搜索您的网站 。附加链接搜索框的其他信息和服务条款位于Google 开发者文档中 。