zoukankan      html  css  js  c++  java
  • 在公告栏里加进啦Google自定义搜索引擎(附代码,和参考代码,原代码)

    <script language="javascript">
    function on_search_click(){
     Form1.action 
    = "http://www.google.com/custom?q=";
     Form1.target 
    = "_blank";
     Form1.method 
    = "get";
    }

    </script>
    <!-- Search Google -->
    <center>
    <table bgcolor="#ffffff">
    <tr><td nowrap="nowrap" valign="top" align="left" height="32">

    <br/>
    <input type="text" name="q" size="23" maxlength="255" value=""></input>
    </td></tr>
    <tr><td valign="top" align="left">
    <input type="submit" name="sa" value="Google 搜索" onclick="javascript:on_search_click()"></input>
    <input type="hidden" name="client" value="pub-3938365705781251"></input>
    <input type="hidden" name="forid" value="1"></input>
    <input type="hidden" name="channel" value="0968900262"></input>
    <input type="hidden" name="ie" value="utf-8"></input>
    <input type="hidden" name="oe" value="GB2312"></input>
    <input type="hidden" name="flav" value="0001"></input>
    <input type="hidden" name="sig" value="191Qey090PRjYYr6"></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:114;L:http://www.google.com/logos/Logo_60wht.gif;S:http://blog.csdn.net/clin003;FORID:1"></input>
    <input type="hidden" name="hl" value="zh-CN"></input>
    </td></tr></table>
    </form>
    </center>
    <!-- Search Google -->
     给自己的Blog 上添加定制的搜索引擎

    <script language="javascript">
    function on_search_click(){
     Form1.action 
    = "http://www.google.com/custom/";
     Form1.target 
    = "_blank";
     Form1.method 
    = "get";
    }

    </script>
    <!-- Search Google -->
    <center>
    <table cellspacing="0" border="0">
    <tr><td>Google 查询:</td></tr>
    <tr valign="top"><td>
    <input type="text" name="q" maxlength="255" value="" style="130px;border:3px double #cecece;">
    <input type="submit" name="sa" value="Search" onclick="javascript:on_search_click()">
    <input type="hidden" name="cof" value="AH:center;AWFID:3182aae82da4ddf8;">
    <input type="hidden" name="ie" value="GB2312">
    <input type="hidden" name="oe" value="GB2312">
    <input type="hidden" name="domains" value="blog.csdn.net"><br>
    <input type="radio" name="sitesearch" value=""> By WWW 
    <input type="radio" name="sitesearch" value="blog.csdn.net" checked="checked"> By Me 
    </td></tr></table>
    </center>
    <!-- Search Google --> 
    <br>

  • 相关阅读:
    Python解析Yahoo的XML格式的天气预报数据
    如何卸载wineQQ?
    纪念我的第一篇
    hihocoder1062 最近公共祖先·一
    hihocoder1055 刷油漆(树形DP)
    hihocoder1050 树中的最长路径
    hihocoder1049 根据二叉树的先序序列和中序序列求后序序列
    hihocoder1044 状态压缩
    hihocoder1043 完全背包
    hihocoder1038 01背包
  • 原文地址:https://www.cnblogs.com/encounter/p/2189294.html
Copyright © 2011-2022 走看看