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

 1 <script type="text/javascript" language="javascript">
 2 function SearchGoogle(parm,path){
 3    form1.action='http://cn.bing.com/search?q='+parm+'+site:'+path;
 4    form1.submit();
 5 }
 6 </script>
 7 <form name="form1" method="post" action="?" target="_blank">
 8 <div align="left" style="top: 0px; position: relative;">
 9 <nobr>
10 <input name="q" id="q" style=" 96px;" type="text" />
11 <input name="sa" style=" 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
12 ('q').value,'http://www.cnblogs.com/FKdelphi/')" type="button" value="搜索本博客">
13 <br />
14 <br />
15 </nobr>
16 <nobr>
17 <input name="sa" style=" 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
18 ('q').value,'http://bbs.2ccc.com/')" type="button" value="搜索盒子论坛">
19 <input name="sa" style=" 96px; font-size: 12px;" onclick="SearchGoogle(document.getElementById
20 ('q').value,'http://csdn.net/')" type="button" value="搜索 CSDN">
21 <br />
22 </nobr>
23 </div>
24 </form>
25 <nobr>
26 </nobr>
原文地址:https://www.cnblogs.com/FKdelphi/p/4669664.html