集成搜索代码

chenyajun  2020-01-29 15:31:34  阅读 2942 次 评论 0 条
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>集成搜索代码</title>
</head>

<body topmargin="1" leftmargin="1">
<table style="border:0px solid #CCCCCC;width:100%;background-color:#FFFFFF" border="0" cellspacing="0" cellpadding="0" height="55" >
<tr>
<td style="font-size:14px"><div>
<FORM name=websearch onsubmit=return(search4())>
<p>
<script>
function search4()
{
if(websearch.google.checked)
window.open("http://www.google.com/search?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q="+websearch.key.value,"mspg6");
if(websearch.baidu.checked)
window.open("http://www1.baidu.com/baidu?tn=1t2t&word="+websearch.key.value,"mspg9");
if(websearch.yahoo.checked)
window.open("http://www.yisou.com/s?p="+websearch.key.value,"mspg0");
if(websearch.sogou.checked)
window.open("http://www.sogou.com/websearch/corp/search.jsp?query="+websearch.key.value+"&searchtype=1&pid=xjl&class=1&cpc=SOGOU","mspg1");
if(websearch.cn.checked)
window.open("http://114search.118114.cn/search_web.html?id=1&kw="+websearch.key.value,"mspg2");
if(websearch.yeah.checked)
window.open("http://www.youdao.com/search?q="+websearch.key.value,"mspg3");
if(websearch.sqey.checked)
//window.open("http://cns.3721.com/cns.dll?argse=new3721&fw=home&p="+websearch.key.value,"mspg5"); 
window.open("http://search.taobao.com/search?shopf=newsearch&q="+websearch.key.value,"mspg5");

return false; 
}
</script>
<a href="http://www.1t2t.com/" target="_blank" style=font-size:9pt;TEXT-DECORATION:none>关键字:</a>
<Input size=18 name=key> 
<Input type=submit value=搜索 name=submit> 
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=google name=google checked> google 
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=baidu name=baidu checked> 
百度 
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px " type=checkbox value=yahoo name=yahoo> 
雅虎 
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=sogou name=sogou> 
搜狗
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=cn name=cn> 
114
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=yeah name=yeah> 
有道 
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=sqey name=sqey> 
淘宝</p>
</form>
</div>

</body>

</html>


本文地址:https://chenyajun.net/index.php/post/35.html
版权声明:本文为原创文章,版权归 chenyajun 所有,欢迎分享本文,转载请保留出处!

评论已关闭!