在aspx页中使用Google搜索代码
2007-10-06 14:27
405 查看
Google官网提供代码不能直接在aspx页中使用,尤其是母版页更没办法用,在网上查了半天也没找到一个可以用的,后来看了一下博客园的脚本,拿来就能用,爽哉爽哉!
<script language="JavaScript">
function SearchGoogle(key,evt,site)
</script>
<table>
<tr>
<td style="width: 100px">
<input style="WIDTH: 130px; background-color: #cccccc;" type="text" name="q" id="q" onkeydown="return SearchGoogle(document.getElementById('q'),event,'http://www.yongcheng-winery.com')"></td>
<td style="width: 100px">
<input onclick="SearchGoogle(document.getElementById('q'),event,'http://www.yongcheng-winery.com')" type="button" value="站内搜索" name="sa"></td>
</tr>
</table>
<script language="JavaScript">
function SearchGoogle(key,evt,site)
</script>
<table>
<tr>
<td style="width: 100px">
<input style="WIDTH: 130px; background-color: #cccccc;" type="text" name="q" id="q" onkeydown="return SearchGoogle(document.getElementById('q'),event,'http://www.yongcheng-winery.com')"></td>
<td style="width: 100px">
<input onclick="SearchGoogle(document.getElementById('q'),event,'http://www.yongcheng-winery.com')" type="button" value="站内搜索" name="sa"></td>
</tr>
</table>
相关文章推荐
- 灵活使用Google的代码搜索
- Google和百度、雅虎的站内搜索代码
- Google和百度、雅虎的站内搜索代码
- 搜索pl/sql破解版的时候baidu,google,soso使用的不同结果
- Google和百度、雅虎的站内搜索代码
- Google搜索使用参数参考
- 基于visual c++之windows核心编程代码分析(56)使用winsock搜索蓝牙设备
- Bing Maps中使用Google全球本地化搜索服务详解
- 使用google进行关键字搜索的域名采集。
- Google顶级搜索引擎搜索方法使用技巧大全(二)
- 搜狗浏览器使用google加密ssl搜索
- Chrome使用技巧-使用Google https(SSL)加密搜索
- (java开源框架)使用Google Guava来编写优雅的代码一Guava简介
- Google 推出代码搜索
- Google 推出代码搜索
- Google添加代码搜索功能。
- 程序员如何使用google搜索
- 基于visual c++之windows核心编程代码分析(55)使用GoogleUrl方便安全地解析URL
- 如何使用google进行搜索
- google-analytics的使用: 解析页面引入代码