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
  • 相关阅读:
    第108题:将有序数组转换成二叉搜索树
    第107题:二叉树的层次遍历II
    第106题:从中序与后序遍历序列构造二叉树
    java类读取properties文件
    WdatePicker.js开始日期和结束日期比较
    对两个整数变量的值进行互换
    Java基础知识总结
    jdk环境变量
    逻辑运算符有什么用?
    if和switch的应用
  • 原文地址:https://www.cnblogs.com/superfeeling/p/1883351.html
Copyright © 2011-2022 走看看