您的位置:首页 > 编程语言 > ASP

在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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: