API接口做外部搜索引擎
我有Vs做了一个 网站 想利用API接口在里面插入一个Google引擎,代码是这样写的:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server" method="get" action="http://www.google.com/search">
<table bgcolor="#FFFFFF">
<tr><td style="height: 72px"><a href="http://www.google.com"><img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" /></a></td>
<td style="height: 72px">
<input type="text" name=q size="31" maxlength="255" value="" />
<input type="hidden" name=ie value="utf-8" />
<input type="hidden" name=oe value="GB2312" />
<input type="hidden" name=hl value="zh-CN "/>
<input type="submit" name=btnG value="Google搜索" />
<font size="-1">
<input type="hidden" name=domains value="站内" /><br />
<input type="radio" name=sitesearch value="" />搜索万网
<input type="radio" name=sitesearch value="http://localhost/Default.aspx" checked="checked" />
搜索站内
</font>
</td>
</tr>
</table>
<div>
</div>
</form>
</body>
</html>
可是调试时,怎么也没办法跳到Goole搜索,什么东西都搜不出来,
请各位帮我看看是什么原因,谢谢了 --------------------编程问答--------------------
<table border="0" width="77%" id="table3">
<tr>
<td>
<p align="center"> <td vAlign="bottom" style="font-family: 宋体; font-size: 12px">
<a style="text-decoration: underline; color: #000088; font-family: 宋体; font-size: 12px" href="http://www.google.cn/webhp?client=aff-sowang&hl=zh-CN&channel=searchlink">
<img height="32" src="http://www.google.com/logos/Logo_25wht.gif" width="75" border="0" align="right" alt="Google 中文"></a></td>
<form name="googleform" target="_blank" action="http://www.google.cn/search">
<td style="font-family: 宋体; font-size: 12px">
<input style="FONT-SIZE: 13pt" size="35" name="q"><input type="hidden" value="aff-sowang" name="client"><input type="hidden" value="GB2312" name="ie"><input type="hidden" value="UTF8" name="oe"><input type="hidden" value="zh-CN" name="hl"><input type="hidden" value="searchbutton3" name="channel">
<input style="FONT-SIZE: 11pt; COLOR: #000000" type="submit" value="Google 搜索"></td>
</form>
<td vAlign="center" style="font-family: 宋体; font-size: 12px" width="4">
</td></td>
</tr>
</table>
放你的网页中
补充:.NET技术 , ASP.NET