
如何在自己的博客添加Google、百度、雅虎搜索框
把代码添加到自定义HTML那里就可以了:
Google搜索框:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<label for="sbi" style="display: none">输入您的搜索字词</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">提交搜索表单</label>
<input type="submit" name="sa" value="搜索" id="sbb"></input>
<input type="hidden" name="client" value="pub-1715259267288868"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:130;L:http://www.google.com/intl/zh-CN_ALL/images/logo.gif;S:http://xcmx.eu.org;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->
百度搜索框:
<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="468" height="50"
src="http://unstat.baidu.com/bdun.bsc?tn=xcmx_pg&cv=0&cid=1062977&csid=101&rkcs=17&bgcr=FFFFFF&ftcr=0000CC&rk=0&bd=0&tbsz=&tbst=&bdas=0">
</iframe>
雅虎搜索框:
<script>
var YahooCNADConfig=new Array();
YahooCNADConfig['adid']=176
YahooCNADConfig['wid']=46094
YahooCNADConfig['w']=650
YahooCNADConfig['h']=70
var YahooCustConfig=new Array();
YahooCustConfig['ad_width']=650
YahooCustConfig['ad_height']=70
YahooCustConfig['default_keyword_number']=11
YahooCustConfig['keyword_bg_color']='FF9900'
YahooCustConfig['keyword_fr_color']='FFFFFF'
YahooCustConfig['border_color']='EC
</script>
<script type='text/javascript' src='http://view.aliunion.cn.yahoo.com/showad.php'></script>
历史上的今天和天气预报:
<div id="textBookmark" class="operation">
<h4 >【天气预报·历史上的今天】</h4>
天气预报<br>
<iframe src="http://weather.265.com/weather.htm" width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><br>
历史上的今天
<iframe src=http://www.nongli.com/today/today.asp width=180 height=145 frameborder=no border=0 marginheight=0 scrolling=no hspace=0 vspace=0 name="history" style="border: 1px dashed #000000"></iframe> <ul class="bookmarkGroup" id="bookmarkGroup189296">
</ul>
</div>




