自己做一个 "大富翁搜索引擎"(0分)

  • 主题发起人 主题发起人 wan_yi
  • 开始时间 开始时间
W

wan_yi

Unregistered / Unconfirmed
GUEST, unregistred user!
<html>
<head>
<title></title>
</head>
<body>
<script language="JavaScript">
function SearchGoogle(key,evt,site)
{
if(evt.keyCode==13 || evt.keyCode==0 || evt.type =='click')
{
key.focus();
var keystr = encodeURIComponent(key.value);
url = "http://www.google.com/search?q=";
url = url+keystr;
url += "&ie=UTF-8&oe=GB2312&hl=zh-CN&domains="+site+"&sitesearch="+site;
window.location=url;
return false;
}
}
</script>
<input type="text" name="q" id="q" onkeydown="return SearchGoogle(document.getElementById
('q'),event,'http://www.delphibbs.com/')">
<input onclick="SearchGoogle(document.getElementById
('q'),event,'http://www.delphibbs.com/')" type="button" value="搜索" name="sa">
</body>
</html>
-----------------------------------------------------
我的 Delphi 博客就是这样用的: http://del.cnblogs.com/
 
SearchGoogle
 
后退
顶部