搜尋引擎程式碼

javaprogramers發表於2005-05-08
<script language="javascript">
<!--
var b='宣傳文字';
function d(){
window.status=b;
timerID=setTimeout("d()",10000);}
function check(i){
if(i.MailBox.options.selectedIndex==0){
alert("提示:搜尋你想要的!");
input.Password.focus();
return false;}}
function CP(input){input.Password.value="";}
function News_Window(theURL,winName,features){window.open(theURL,winName,features);}
function s4(){
var v=f.k.value
if(f.a0.checked)
window.open("http://www.google.com/search?hl=zh-CN&ie=GB2312&q="+v,"0");
if(f.a1.checked)
window.open("http://www.baidu.com/baidu?tn=soft111&word="+v,"1");
if(f.a2.checked)
window.open("http://search.union.3721.com/search_result.htm?fw=union&oid=1974188022&e=FwTCF4xBKzV7TdUOcoLeluEr2sNmk0Q%3D&pid=S_qiye1com_69909&name="+v,"2");
if(f.a3.checked)
window.open("http://www.qiye1.com/search/trade.asp?keyword="+v,"3");
if(f.a4.checked)
window.open("http://www.sogou.com/web?query="+v,"4");
if(f.a5.checked)
window.open("http://search.china.alibaba.com/turbine/template/search%2CGoSearch?keywords="+v,"5");
if(f.a6.checked)
window.open("http://music.yisou.com/search?p="+v,"6");
if(f.a7.checked)
window.open("http://image.yisou.com/search?p="+v,"7");
if(f.a8.checked)
window.open("http://sinanews.zhongsou.com/sinanews.exe?word="+v,"8");
if(f.a9.checked)
window.open("http://www.soft111.com/search.asp?type=soft&k="+v,"9");
if(f.a10.checked)
window.open("http://page.zhongsou.com/zspage.cgi?word="+v,"10");
return false;}
//-->
</script> 
 <form name="f" onsubmit="return(s4())">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFD700" background="images/bg_03.gif" height="27">
<tr><td align="right"><input type="text" name="k" size="19" value="請輸入關鍵字" onmouseover="this.focus()" onblur="if (value ==''){value='請輸入關鍵字'}" onfocus="this.select()" onclick="if(this.value=='請輸入關鍵字')this.value=''">
<input type="submit" style="background-color: #FFFFFF; font-size: 12px" value="搜尋">
<input type="checkbox" name="a0"><a href="http://www.google.com/">google</a> <input type="checkbox" name="a1" checked><a href="http://baidu.com/index.php?tn=soft111">百度</a> <input type="checkbox" name="a2"><a href="http://www.yisou.com/">一搜</a> <input type="checkbox" name="a3">商機
<input type="checkbox" name="a4"><a href="http://www.sogou.com/">搜狗</a> <input type="checkbox" name="a5">阿里商機 <input type="checkbox" name="a6"><a href="http://music.yisou.com/">mp3</a> <input type="checkbox" name="a7"><a href="http://image.yisou.com">圖片</a>
<input type="checkbox" name="a8"><font color="#FF0000"><a href="http://news.sina.com.cn/">新聞</a></font><input type="checkbox" name="a9"><a href="http://www.soft111.com">軟體</a><input type="checkbox" name="a10"><a href="http://www.zhongsou.com/">中搜</a></td>
</tr></table></td></form>

相關文章