Login dark

author: love02xp
title: 免费下载百度搜索代码
date: 2016-10-23 12:32:35
category: [编程代码]
tags: [学习,编程]


#####[阅读原文]()




<form action="http://www.baidu.com/baidu" target="_blank">
<div align="center"> 
<input name=tn type=hidden value=baidu>
<a href="http://www.baidu.com/"><img src="http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif" alt="Baidu" align="bottom" border="0"></a>
<input type=text name=word size=30>
<input type="submit" value="百度搜索">
</div>
</form>


<!--more-->




<SCRIPT language=javascript>
function gowhere1(formname)
{
 var url;
 if (formname.myselectvalue.value == "0")
 {
  url = "http://www.baidu.com/baidu";
  document.search_form1.tn.value = "baidu";
  formname.method = "get";
 }
 if (formname.myselectvalue.value == "1")
 {
  url = "http://mp3.baidu.com/m";
  document.search_form1.tn.value = "baidump3";
  document.search_form1.ct.value = "134217728";
  document.search_form1.lm.value = "-1";
 }
 if (formname.myselectvalue.value == "2")
 {

  document.search_form1.tn.value = "flash";
  document.search_form1.ct.value = "33554432";
  url = "http://www.baidu.com/f";
 }
 if (formname.myselectvalue.value == "3")
 { 
   url = "http://ix.baidu.com/x";
  document.search_form1.tn.value = "baiduwstui";
  document.search_form1.ct.value = "218103808";
  document.search_form1.lm.value = "-1";
 } 
 if (formname.myselectvalue.value == "4")
 { 
  document.search_form1.tn.value = "news";
  document.search_form1.cl.value = "2";
  document.search_form1.rn.value = "30";
  url = "http://news.baidu.com/ns";  
 } 
 if (formname.myselectvalue.value == "5")
 { 
  document.search_form1.tn.value = "baiduiamge";
  document.search_form1.ct.value = "201326592";
  document.search_form1.cl.value = "2";
  document.search_form1.lm.value = "-1";  
  url = "http://image.baidu.com/i";  
}
if (formname.myselectvalue.value == "6")
 { 
  url = "http://post.baidu.com/f";
  document.search_form1.tn.value = "baiduPostSearch";
  document.search_form1.ct.value = "352321536";
  document.search_form1.rn.value = "10";
  document.search_form1.lm.value = "65536";  
 }    
 
  formname.action = url;
 return true;
}
</SCRIPT>
<form name="search_form1" target="_blank" onsubmit="return gowhere1(this)">
<table width="100%" height="80" border="0" cellpadding="0" cellspacing="0" style=font-family:宋体><tr><td>
<TABLE width=144% height="80" border=0 cellPadding=0 cellSpacing=0> 
      <INPUT name=myselectvalue type=hidden value=0>
      <INPUT name=tn type=hidden>
      <INPUT name=ct type=hidden>
      <INPUT name=lm type=hidden>
      <INPUT name=cl type=hidden>
      <INPUT name=rn type=hidden>
      <TR> 
                  <TD width="8%" valign="bottom"> 
                    <DIV align=center><a href="http://www.baidu.com/"><img src="http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif" 
alt="Baidu" align="bottom" border="0"></a></DIV></TD>
                  <TD vAlign=bottom width="92%">
<INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=4; type=radio value=0> 
                    <FONT color=#0000cc style="FONT-SIZE: 12px">新闻</FONT>
                  
                   <INPUT CHECKED name=myselect onclick=javascript:this.form.myselectvalue.value=0; type=radio value=0> 
                    <SPAN class=f12><FONT color=#0000cc style="FONT-SIZE: 12px">网页</FONT></SPAN> 
                    <INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=1; type=radio value=1> 
                    <SPAN class=f12><FONT color=#0000cc style="FONT-SIZE: 12px">mp3</FONT></SPAN> 
<INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=6; type=radio value=0>  
<FONT color=#0000cc style="FONT-SIZE: 12px">贴吧</FONT> 
<INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=5; type=radio value=0> 
                    <FONT color=#0000cc style="FONT-SIZE: 12px">图片</FONT>
       
                    <INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=2; type=radio value=2> 
                    <SPAN class=f12><FONT color=#0000cc style="FONT-SIZE: 12px">flash</FONT></SPAN> 
                    <INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=3; type=radio value=3> 
                    <SPAN class=f12><FONT color=#0000cc style="FONT-SIZE: 12px">信息快递 
                    </FONT></SPAN> <TABLE align=right border=0 cellPadding=0 cellSpacing=0 width="100%">
                      <TBODY>
                        <TR>
                          <TD><FONT style="FONT-SIZE: 12px"> 
                            <input id=word name=word size="40">
                            </FONT> <input type="submit" value="百度搜索"> 
                            </TD>
                         
    <td><br> </TR>
                      </TBODY>
                    </TABLE></TD>
  </TR>
                <TR> 
                  <TD width="8%"> </TD>
                  <TD width="92%"> </TD>
  </TR>
  <td>
</TABLE></td>
</tr> </table></form>






<SCRIPT language=javascript>
<!--
function go(formname)
{
 var url = "http://www.baidu.com/baidu";
 formname.method = "get";
if (formname.myselectvalue.value == "1") {
  document.search_form1.word.value = document.search_form1.word.value+" site:www.guoxue.com";
}
formname.action = url;
return true;
}
//-->
</SCRIPT>
<form name="search_form1" target="_blank" onsubmit="return go(this)">
<input name=word size="30" value="请输入关键字" onMouseOver="this.focus()" onBlur="if (value ==''){value='请输入关键字'}" onFocus="this.select()" onClick="if(this.value=='请输入关键字')this.value=''">
<input type="submit" value="百度搜索"><br>
<INPUT name=myselectvalue type=hidden value=0>
<INPUT name=tn type=hidden value="baidu">
<INPUT name=cl type=hidden value="3">
<INPUT CHECKED name=myselect onclick=javascript:this.form.myselectvalue.value=0; type=radio value=0>
<FONT color=#0000cc style="FONT-SIZE: 12px">互联网</FONT> 
<INPUT name=myselect onclick=javascript:this.form.myselectvalue.value=1; type=radio value=1>
<FONT color=#ff0000 style="FONT-SIZE: 12px">www.guoxue.com站内</FONT> 
</form>