网页的知识,求助.

来源:百度知道 编辑:UC知道 时间:2024/06/19 17:44:08
我今天看到一个网站,它集合百度,GOOGLE,雅虎的搜索功能.你在他们网站输入你要的关键词,点百度按钮就显示百度的结果,点GOOGLE的按钮就显示GOOGLE的结果,点雅虎的就显示雅虎的结果.我刚学网站制作,也想在我的网站上做这样一个功能,请问这样的技术怎样实现 ,代码怎么样写?会的朋友,教一下我,或者发给我行吗?
那个网址是:http://www.58search.com 你们那些全不行啦..那位高手会呀,发代码过来啊..

我提供给你`

<center><input id=xx><br>
<input type=button value=百度 onclick=check(this)> <input type=button value=Google onclick=check(this)> <input type=button value=Yahoo onclick=check(this)>

<script language=javascript>
function check(obj)
{
switch (obj.value)
{
case "百度": window.open("http://www.baidu.com/s?wd="+ xx.value+"&cl=3");break;
case "Google":window.open("http://www.google.com/search?q="+ xx.value+"&hl=zh-CN&lr=&nxpt=20.952533533710071388794");break;
case "Yahoo":window.open("http://search.yahoo.com/search?p="+xx.value+&quo