当前位置:编程学习 > html/css >>

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

[css]  
<!--baidu-->  
<div>  
<form action="http://www.baidu.com/s">  
<input type="text" name="wd" id="kw"/>  
<input type="submit" value="Baidu" />  
</form>  
</div>  
  
<!--google-->  
<div>  
<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>  
</div>  
  
<!--google search-->  
<div>  
<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">   
<div style="float:left">    
<IMG SRC=/2013/0220/20130220111540745.gif" border="0" ALT="Google" height="20px">  
</div>  
<div style="float:left">  
<INPUT TYPE="text" name="q" size="18" maxlength="255"  value="">   
<INPUT type="submit" name="btnG" VALUE="Google搜索">    
</div><br><br>  
<div>  
<input type="radio" name="sitesearch" value="这里输入你的网站地址" checked>全球搜索    
<input type="radio" name="sitesearch" value="" > 本站搜索  
</div>   
</FORM>   
</div>  
  
<!--baidu search-->  
<div>  
<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>   
</div>  
 
补充:web前端 , HTML/CSS  ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,