您现在的位置:首页 >> 前端 >> 内容

baidu、google 简搜索框嵌入网页代码

时间:2013/2/20 11:15:12 点击:

  核心提示:[css] !--baidu-- p form action=http://www.baidu.com/s input type=text name=wd id=kw/ input type=subm...
[css]  

<!--baidu-->  

<p>  

<form action="http://www.baidu.com/s">  

<input type="text" name="wd" id="kw"/>  

<input type="submit" value="Baidu" />  

</form>  

</p>  

  

<!--google-->  

<p>  

<form action="http://www.google.com/search" method="get">  

<input type="text" name="q" size="20" maxlength="255" value="" />  

<input type="submit" name="btnG" value="Google" />  

</form>  

</p>  

  

<!--google search-->  

<p>  

<FORM method="GET" action="http://www.google.com/search">    

<input type="hidden" value="GB2312">    

<input type="hidden" value="GB2312">    

<INPUT TYPE="hidden" VALUE="zh-CN">   

<p style="float:left">    

<IMG SRC=http://up.2cto.com/2013/0220/20130220111540745.gif" border="0" ALT="Google" height="20px">  

</p>  

<p style="float:left">  

<INPUT TYPE="text" name="q" size="18" maxlength="255"  value="">   

<INPUT type="submit" name="btnG" VALUE="Google搜索">    

</p><br><br>  

<p>  

<input type="radio" name="sitesearch" value="这里输入你的网站地址" checked>全球搜索    

<input type="radio" name="sitesearch" value="" > 本站搜索  

</p>   

</FORM>   

</p>  

  

<!--baidu search-->  

<p>  

<iframe border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"    

  framespacing="0" frameborder="0" scrolling="no" width="200" height="30"    

  src="http://unstat.baidu.com/bdun.bsc?tn=dabaoku&cv=1&cid=31577&csid=102&rkcs=2&bgcr=EDEDEB&ftcr=FF0000&rk=1&bd=1&bdas=0">    

</iframe>   

</p>  

 

Tags:BA AI ID DU 
作者:网络 来源:不详