网页中插入百度搜索
我用的是网络hao123也就是网络搜索框,你首先在任一网页搜索出“网络hao123”然后把它设为主页,就搞定了,再不行就在“主页修改”里找。
B. 如何在我的网页内嵌一个百度搜索的网页
网页内包含网络搜索框代码:
查看代码打印
01 <SCRIPT language=javascript>
02 function g(formname) {
03 var url = "http://www..com/";
04 if (formname.s[1].checked) {
05 formname.ct.value = "2097152";
06 }
07 else {
08 formname.ct.value = "0";
09 }
10 formname.action = url;
11 return true;
12 }
13 </SCRIPT>
14 <form name="f1" onsubmit="return g(this)">
15 <table bgcolor="#FFFFFF" style="font-size:9pt;">
16 <tr height="60"><td valign="top"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-137px.gif" border="0" alt=""></td>
17 <td>
18 <input name=word size="30" maxlength="100">
19 <input type="submit" value="网络搜索"><br>
20 <input name=tn type=hidden value="bds">
21 <input name=cl type=hidden value="3">
22 <input name=ct type=hidden>
23 <input name=si type=hidden value="www.phpernote.com">
24 <input name=s type=radio> 互联网
25 <input name=s type=radio checked> www.phpernote.com
26 </td></tr></table>
27 </form>
C. 网页插入百度搜索
<form action="http://www..com/" target="_blank">
<table bgcolor="#FFFFFF"><tr><td>
<input name=tn type=hidden value=>
<a href="http://www..com/"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-80px.gif" alt="Bai" align="bottom" border="0"></a>
<input type=text name=word size=30>
<input type="submit" value="网络搜索">
</td></tr></table>
</form>
把以上代码插入到网页中即可
<SCRIPT language=javascript>
function gowhere1(formname)
{
var url;
if (formname.myselectvalue.value == "0")
{
url = "http://www..com/";
document.search_form1.tn.value = "";
formname.method = "get";
}
if (formname.myselectvalue.value == "1")
{
url = "http://mp3..com/m";
document.search_form1.tn.value = "mp3";
document.search_form1.ct.value = "134217728";
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 = "20";
url = "http://news..com/ns";
}
if (formname.myselectvalue.value == "5")
{
document.search_form1.tn.value = "iamge";
document.search_form1.ct.value = "201326592";
document.search_form1.cl.value = "2";
document.search_form1.lm.value = "-1";
url = "http://image..com/i";
}
if (formname.myselectvalue.value == "6")
{
url = "http://post..com/f";
document.search_form1.tn.value = "PostSearch";
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="460" height="60" border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" style=font-family:宋体><tr><td>
<TABLE width="460" 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..com/"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-80px.gif"
alt="Bai" 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>
<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></TR>
</form>
以上是包含MP3,图片等搜索的
D. 怎么在网页里面加个百度搜索框
方法一:在网页加入以下代码
<form action="http://www..com/" target="_blank">
<table bgcolor="#FFFFFF"><tr><td>
<input name=tn type=hidden value=>
<a href="http://www..com/"><img src="http://img..com/img/logo-80px.gif" alt="Bai" align="bottom" border="0"></a>
<input type=text name=word size=30 Sug=1>
<input type="submit" value="网络搜索">
</td></tr></table>
</form>
方法二:Javascript代码
<script charset="gbk" src="http://www..com/js/opensug.js"></script>
E. 怎样在自己制作的网页中加入百度搜索栏
网络搜索代码回答(200*30): <iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="200" height="30" src="http://unstat..com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=102&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0"> </iframe>
F. 制作网页怎么加入百度搜索
一种利用嵌套,把网络搜索页面嵌套在网页的适当位置(嵌套之前,要把网络搜索页面做成一个新的页面)这样可以减少页面文件的大小,提高速度,可读性等,嵌套方式:<IFRAME ID='ifm2' WIDTH='500' HEIGHT='90' ALIGN='left' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='.htm'></IFRAME>
其中:SRC='.htm' 为你自己制作成网络搜索代码页面,下面为代码,直接复制保存成.htm 文件即可:
<SCRIPT language=javascript>
function gowhere1(formname)
{
var url;
if (formname.myselectvalue.value == "0")
{
url = "http://www..com/";
document.search_form1.tn.value = "";
formname.method = "get";
}
if (formname.myselectvalue.value == "1")
{
url = "http://mp3..com/m";
document.search_form1.tn.value = "mp3";
document.search_form1.ct.value = "134217728";
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 = "20";
url = "http://news..com/ns";
}
if (formname.myselectvalue.value == "5")
{
document.search_form1.tn.value = "iamge";
document.search_form1.ct.value = "201326592";
document.search_form1.cl.value = "2";
document.search_form1.lm.value = "-1";
url = "http://image..com/i";
}
if (formname.myselectvalue.value == "6")
{
url = "http://post..com/f";
document.search_form1.tn.value = "PostSearch";
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=100% 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..com/"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/search/img/logo_clarity_80_29.gif"
alt="Bai" 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>
<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></TR>
</form>
同时,你也可以把上面的代码直接复制到你网页的相应位置,但这样的话,页面文件会加大,代码可读性要差,比较费时费力!
G. 如何把个人网页添加到百度搜索
通过这里添加的:http://www..com/search/url_submit.html
· 一个免费登录网站只需提交一页(首页),网络搜索引擎专会自动收录网页。
· 符合相关属标准您提交的网址,会在1个月内按网络搜索引擎收录标准被处理。
· 网络不保证一定能收录您提交的网站。
我的网站就是通过这里登录的,呵呵……
H. 在网页中插入百度搜索条
1)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="468" height="50"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=101&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个468X50的搜索框。
2)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="200" height="30"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=102&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个200X30的搜索框。
3)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="670" height="40"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=103&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个670X40的搜索框。
4)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="410" height="80"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=104&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个410X80的搜索框。
5)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="140" height="75"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=105&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个140X75的搜索框。
6)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="468" height="60"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=106&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个468X60的搜索框。
7)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="468" height="40"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=107&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个468X60的搜索框。
8)如果输入以下内容:<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="400" height="40"
src="http://unstat..com/bn.bsc?tn=daqin001&csid=108&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=0">
</iframe>。这个显示的是一个400X60的搜索框。
------------------------------------------------------------------------------------------------------------------
下面是网络提供的网络搜索js代码
<SCRIPT language=javascript>
function gowhere1(formname)
{
var url;
if (formname.myselectvalue.value == "0")
{
url = "http://www..com/";
document.search_form1.tn.value = "";
formname.method = "get";
}
if (formname.myselectvalue.value == "1")
{
url = "http://mp3..com/m";
document.search_form1.tn.value = "mp3";
document.search_form1.ct.value = "134217728";
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 = "20";
url = "http://news..com/ns";
}
if (formname.myselectvalue.value == "5")
{
document.search_form1.tn.value = "iamge";
document.search_form1.ct.value = "201326592";
document.search_form1.cl.value = "2";
document.search_form1.lm.value = "-1";
url = "http://image..com/i";
}
if (formname.myselectvalue.value == "6")
{
url = "http://post..com/f";
document.search_form1.tn.value = "PostSearch";
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="460" height="60" border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" style=font-family:宋体><tr><td>
<TABLE width="460" 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..com/"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-80px.gif"
alt="Bai" 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>
<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></TR>
</form>
包括:新闻、网页、贴吧、图片等 。可以将它修改一下放入自己所需要的地方。
I. 如何在自己做的网页中添加百度搜索栏急!
我给你几种代码,你试试,看哪种好。
1、
<iframe id="frame" marginwidth="0" marginheight="0" scrolling="no"
framespacing="0" vspace="0" hspace="0" frameborder="0" width="400" height="90"
src="http://unstat..com/bn.bsc?tn=hekai_pg&cv=0&cid=1133937&csid=242&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=335&sropls=1,2,3,4,5,6&kwgp=0">
</iframe>
2、
<iframe id="frame" marginwidth="0" marginheight="0" scrolling="no"
framespacing="0" vspace="0" hspace="0" frameborder="0" width="140" height="75"
src="http://unstat..com/bn.bsc?tn=hekai_pg&cv=0&cid=1133937&csid=105&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=80">
</iframe>
3、
<iframe id="frame" marginwidth="0" marginheight="0" scrolling="no"
framespacing="0" vspace="0" hspace="0" frameborder="0" width="200" height="30"
src="http://unstat..com/bn.bsc?tn=hekai_pg&cv=0&cid=1133937&csid=102&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=80">
</iframe>
4、
<iframe id="frame" marginwidth="0" marginheight="0" scrolling="no"
framespacing="0" vspace="0" hspace="0" frameborder="0" width="468" height="60"
src="http://unstat..com/bn.bsc?tn=hekai_pg&cv=0&cid=1133937&csid=106&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=230&sropls=1,2,3,4,5,6,7,9,10&kwgp=0">
</iframe>
这些是最常用的,你可以试试,就知道是怎么样的了,其实没什么详细的解释。这是框架代码。
补充:这就是完整的代码,是网络提供的多种样式中的4种。现在网络搜索代码就是框架的形式,所以说这就是完整代码。