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>

  • 相关阅读:
    Java中equals与==异同
    CGI与WSGI
    Javazh中static的简单理解
    MySQL 4.1/5.0/5.1/5.5各版本的主要区别
    php生成随机密码的几种方法
    phpmyadmin里MySQL字符集:cp1252 West European (latin1) ,解决乱码问题
    GoogleMap API 离线版
    [转]为前端开发人员制作的 Chrome 扩展 jsbeautifier
    Google Map Tile 下载脚本
    Google 地图 API 参考
  • 原文地址:https://www.cnblogs.com/encounter/p/2189294.html
Copyright © 2011-2022 走看看