網頁中插入百度搜索
我用的是網路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種。現在網路搜索代碼就是框架的形式,所以說這就是完整代碼。