zoukankan      html  css  js  c++  java
  • Google站内搜索代码

    1 <!-- Search Google -->
    2  <form method="get" action="http://www.google.com/search">
    3 <div style="background-color:white">
    4 <a href="http://www.google.com/intl/zh-CN/">
    5 <img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" />
    6 </a>
    7 <input type="text" name="q" size="31" maxlength="255" value=" " />
    8 <input type="hidden" name="ie" value="GB2312" />
    9 <input type="hidden" name="oe" value="GB2312" />
    10 <input type="hidden" name="hl" value="zh-CN" />
    11 <input type="submit" name="btnG" value="Google Search" />
    12 </div>
    13  </form>
    14  <!-- Search Google -->
    15

    Google站内搜索代码

    把下面代码中的http://www.dreamdu.com/替换成你的域名就可以实现搜索站内信息了。

    1 <!-- SiteSearch Google -->
    2 <form method="get" action="http://www.google.com/search">
    3 <div style="background-color:white">
    4 <a href="http://www.google.com/">
    5 <img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" />
    6 </a>
    7 <input type="text" name="q" size="31" maxlength="255" value="html" />
    8 <input type="hidden" name="ie" value="GB2312" />
    9 <input type="hidden" name="oe" value="GB2312" />
    10 <input type="hidden" name="hl" value="zh-CN" />
    11 <input type="submit" name="btnG" value="Google Search" />
    12 <input type="hidden" name="domains" value="http://www.dreamdu.com/" />
    13 <br />
    14 <input type="radio" name="sitesearch" value=" " />
    15 <label for="sitesearch">搜索WWW</label>
    16 <input type="radio" name="sitesearch" value="www.dreamdu.com" checked="checked" />
    17 <label for="sitesearch">搜索梦之都</label>
    18 </div>
    19 </form>
    20 <!-- SiteSearch Google -->
    21
  • 相关阅读:
    测试常用的sql语句总结
    测试常用的Linux命令总结
    【转载】vim 中如何替换选中行或指定几行内的文本
    1074 Reversing Linked List
    1077 Kuchiguse
    LC 355. Design Twitter
    LCP 5. 发 LeetCoin
    LC 1409. Queries on a Permutation With Key
    1095 Cars on Campus
    LC 1369. Get the Second Most Recent Activity
  • 原文地址:https://www.cnblogs.com/superfeeling/p/1883351.html
Copyright © 2011-2022 走看看