PC-博客首页中增加必应或GOOGLE搜索功能

时间:2022-10-27 14:25:26
 <script type="text/javascript" language="javascript">
function SearchGoogle(parm,path){
form1.action='http://cn.bing.com/search?q='+parm+'+site:'+path;
form1.submit();
}
</script>
<form name="form1" method="post" action="?" target="_blank">
<div align="left" style="top: 0px; position: relative;">
<nobr>
<input name="q" id="q" style="width: 96px;" type="text" />
<input name="sa" style="width: 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
('q').value,'http://www.cnblogs.com/FKdelphi/')" type="button" value="搜索本博客">
<br />
<br />
</nobr>
<nobr>
<input name="sa" style="width: 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
('q').value,'http://bbs.2ccc.com/')" type="button" value="搜索盒子论坛">
<input name="sa" style="width: 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
('q').value,'http://csdn.net/')" type="button" value="搜索 CSDN">
<br />
</nobr>
</div>
</form>
<nobr>
</nobr>