调用外部的搜索引擎(百度和Google)
2015-11-22 10:31
881 查看
调用的百度和Google的代码如下:
<form method=get action="http://www.google.com/search" target="_blank">
<input type=text name=q size=40 maxlength=255 >
<input type=submit name=btnG value="谷歌搜索">
</form>
<form action="http://www.baidu.com/baidu" target="_blank">
<input type=text name=word size=40>
<input type="submit" value="百度搜索">
</form>
注:
1.调用Google,只是注意method=get 和action="http://www.google.com/search" ,input 文本框的name必须为q,否则提交会失败,返回google搜索首页
2.注意输入搜索关键字的文本框name为word,如果是其他的返回百度搜索首页。
<form method=get action="http://www.google.com/search" target="_blank">
<input type=text name=q size=40 maxlength=255 >
<input type=submit name=btnG value="谷歌搜索">
</form>
<form action="http://www.baidu.com/baidu" target="_blank">
<input type=text name=word size=40>
<input type="submit" value="百度搜索">
</form>
注:
1.调用Google,只是注意method=get 和action="http://www.google.com/search" ,input 文本框的name必须为q,否则提交会失败,返回google搜索首页
2.注意输入搜索关键字的文本框name为word,如果是其他的返回百度搜索首页。
相关文章推荐
- ASP.NET 调用百度搜索引擎的代码
- 用html或jsp最简单的调用百度搜索的方式
- Unable to start the virtual deice. The virtual device got no IP address.
- GoogleDoc - 温故而知新Activity生命周期方法
- Go 作用
- win7下go web之revel
- Django模型修改及数据迁移
- GFS Google File System(中文翻译)
- golang 实现并发计算文件数量
- django 报错问题集锦
- Company Brief Intro - Tango
- golang学习之win7下go web之revel安装
- LightOJ 1057 - Collecting Gold (状压dp)
- Django笔记教程:二、模版
- 修改hosts文件使得能够安装ADT且SDK能更新,能够访问dl.google.com和dl-ssl.google.com
- Django笔记教程:一、安装命令以及常用命令
- 递归算法Recursion algorithm
- LightOJ 1030-Discovering Gold
- UVa-11292 - Dragon of Loowater:简单题
- go 语言之ReadFromUDP使用