100分求制作hao123上面的百度搜索条(网页,MP3,图片)这个
发布网友
发布时间:2022-05-05 18:36
我来回答
共2个回答
热心网友
时间:2022-06-27 22:20
1.百度搜索代码 (468*50):
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=101&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
2.百度搜索代码(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.baidu.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>
3.百度搜索代码(670*40)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=103&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
4.百度搜索代码(410*80)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=104&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
5.百度搜索代码(140*75)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=105&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
6.百度搜索代码(468*60)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=106&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
7.百度搜索代码(468*40)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=107&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
8.百度搜索代码(400*40)
<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.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=108&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
9.百度搜索代码(360*45)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="360" height="45"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=221&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
10.百度搜索代码(360*55)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="360" height="55"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=222&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
11.百度搜索代码(760*45)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="760" height="45"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=227&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
12.百度搜索代码(600*45)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="600" height="45"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=225&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
13.百度搜索代码(562*57)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="562" height="57"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=223&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
14.百度搜索代码(594*55)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="594" height="55"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=224&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
15.百度搜索代码(760*30)
<iframe id="frame" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="760" height="30"
src="http://unstat.baidu.com/bn.bsc?tn=cn88net_pg&cv=1&cid=1023960&csid=226&rkcs=16&bgcr=FFFFFF&ftcr=0000CC&rk=1&bd=1&tbsz=&tbst=&bdas=0">
</iframe>
任选其一
热心网友
时间:2022-06-27 22:21
看看这个
<SCRIPT language=javascript>
var haoCurrHighLight = document.getElementById("haoweb");
function trim(str){
return str.replace(/(^\s*)|(\s*$)/g, "");
}
function setStyle(a,b){
var c=document.styleSheets[0];
if(c.addRule){
c.addRule(a,b);
}else if(c.insertRule){
c.insertRule(a+" { "+b+" }",c.cssRules.length);
}}
function haoValidate(source){
wval = trim(f.word.value);
if (f.sc.value=="post")
{
f.kw.value=f.word.value
f.ct.value=""
f.tn.value=""
f.rn.value=""
f.lm.value=""
f.rs2.value=0
f.myselectvalue.value=1
f.ie.value=""
f.cl.value=""
f.z.value=""
f.from.value=""
}
if (f.sc.value=="img")
{
f.ct.value=201326592
f.lm.value=-1
f.cl.value=2
f.tn.value="image"
f.pv.value=""
f.rs2.value=""
f.myselectvalue.value=""
f.ie.value=""
f.z.value=0
f.rn.value=""
f.from.value=""
f.f.value=""
}
if (f.sc.value=="")
{
f.ct.value=17
f.tn.value="ikaslist"
f.rn.value=10
f.lm.value=""
f.cl.value=""
f.ie.value=""
f.rs2.value=""
f.f.value=""
f.myselectvalue.value=""
f.z.value=""
f.from.value=""
}
if (f.sc.value=="web")
{
f.cl.value=3
f.tn.value="oig1986_pg"
f.ct.value=0
f.ie.value="gb2312"
f.myselectvalue.value=""
f.rn.value=""
f.rs2.value=""
f.z.value=""
f.from.value=""
f.lm.value=""
}
if (f.sc.value=="mp3")
{
f.ct.value=134217728
f.lm.value=-1
f.rn.value=""
f.cl.value=""
f.tn.value="mp3"
f.f.value="ms"
f.myselectvalue.value=""
f.ie.value="gb2312"
f.z.value=""
f.from.value=""
}
if (f.sc.value=="news")
{
f.tn.value="news"
f.cl.value=2
f.rn.value=20
f.ct.value=0
f.z.value=""
f.from.value="news"
f.ie.value=""
f.myselectvalue.value=""
f.lm.value=""
f.rs2.value=""
}
return true;
}
function haoSubSearch(sc){
changePage(sc);
imglogo=document.getElementById("imglogo");
if(sc != ""){
if(sc == "post")
{
f.action = "http://tieba.baidu.com/f";
imglogo.src="logo_post.gif";
imglogo.alt="百度贴吧";
urllogo.href="http://tieba.baidu.com/";
}
else if(sc == "")
{
f.action = "http://zhidao.baidu.com/q";
imglogo.src="logo_.gif";
imglogo.alt="百度知道";
urllogo.href="http://zhidao.baidu.com/";
}
else if(sc == "mp3")
{
f.action = "http://mp3.baidu.com/m";
imglogo.src="logo_mp3.gif";
imglogo.alt="百度MP3";
urllogo.href="http://mp3.baidu.com/";
}
else if(sc == "img")
{
f.action = "http://image.baidu.com/i";
imglogo.src="logo_pic.gif";
imglogo.alt="百度图片";
urllogo.href="http://image.baidu.com/";
}
else if(sc == "news")
{
f.action = "http://news.baidu.com/ns";
imglogo.src="logo_news.gif";
imglogo.alt="百度新闻搜索";
urllogo.href="http://news.baidu.com/";
}
else if(sc == "Video")
{
f.action = "http://video.baidu.com/v";
imglogo.src="logo_video.gif";
imglogo.alt="百度视频搜索";
urllogo.href="http://video.baidu.com/";
}
else
{
f.action = "http://www.baidu.com/s";
imglogo.src="logox3.gif";
imglogo.alt="百度首页";
urllogo.href="http://www.baidu.com/index.php?tn=oig1986_pg";
}
f.sc.value = sc;
}
else{
f.sc.value = "post";
haoGoSoba();
}
}
function haoGoSoba(){
f.action = "http://www.baidu.com/s";
f.kw.value = f.word.value;
}
function G(id)
{
return document.getElementById(id);
}
function changePage(sc){
if(haoCurrHighLight == null){
haoCurrHighLight = document.getElementById("haoweb");
}
haoCurrHighLight.className = "searchfod2";
haoCurrHighLight = document.getElementById("hao"+sc);
haoCurrHighLight.className = "searchfod1";
document.f.word.focus()
f.word.value="";
}
function isSoba(){
if(haoCurrHighLight == document.getElementById("haosoba")){
haoGoSoba();
return true;
}
else{
return true;
}
}
function goSearch(){
changeHotWords(document.f.sc.value);
if(!haoValidate(1))
{
return false;
}
else{
return false;
}
}
function changeHotWords(category){
document.getElementById("td_hotlist").innerHTML = eval(category + "Words");
}
function showData(id)
{
var stock = getCookie("HAOSTOCK");
var lottery = getCookie("HAOLOTTERY");
var sStock=sLottery="";
if(stock!=null||lottery!=null)
{
var stockData = eval(stock);
var lotteryData = eval(lottery);
for(var i in stockData)
{
sStock+="<a href="+stockData[i].url+" target=_blank>"+stockData[i].name+"</a> ";
}
for(var i in lotteryData)
{
sLottery+="<a href="+lotteryData[i].url+" target=_blank>"+lotteryData[i].name+"</a> ";
}
G(id).innerHTML="<b><a id=mylikeopen href=javascript:void(0) onclick=\"haoGX.openGX();event.returnValue=false;return false;\"> 我定制的网站:</a></b>"+sStock+sLottery;
}else
{
G(id).style.display="none";
}
}
</SCRIPT>