站内搜索:
首页 >> 前端 >> 内容
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="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>  

 

  • 上一篇:超链接和按钮 设计中默认样式的强大威力
  • 下一篇:设计是让用户觉得好用,而不是好看
  • 返回顶部