百度导航代码(求网址导航搜索代码.带提示框的那种!)

本文目录
求网址导航搜索代码.带提示框的那种!
是用在网站中吗?直接嵌入网站的代码中就可以了。
《script type=’text/javascript’》
alimama_pid=’mm_12474806_0_0’;
alimama_type=’g’;
alimama_tks={};
alimama_tks.style_i=2;
alimama_tks.lg_i=1;
alimama_tks.w_i=290;
alimama_tks.h_i=57;
alimama_tks.btn_i=1;
alimama_tks.txt_s=’’;
alimama_tks.hot_i=1;
alimama_tks.hc_c=’#999999’;
alimama_tks.c_i=0;
alimama_tks.cid_i=0;
《/script》
《script type=’text/javascript’ src=’
百度搜索引擎:
140*75
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“140“ height=“75“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=105&bgcr=ffffff&urlcr=0000ff&tbsz=80&defid=2“》
《/iframe》
200*30
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“200“ height=“30“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=102&bgcr=ffffff&urlcr=0000ff&tbsz=80&defid=2“》
《/iframe》
360*40
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“360“ height=“40“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=221&bgcr=ffffff&urlcr=0000ff&tbsz=130&defid=2“》
《/iframe》
360*60
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“360“ height=“60“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=222&bgcr=ffffff&urlcr=0000ff&tbsz=210&defid=2&kwgp=0“》
《/iframe》
400*90
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“400“ height=“90“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=242&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=335&sropls=1,2,3,4,5,6&defid=2&kwgp=0“》
《/iframe》
468*40
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“468“ height=“40“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=107&bgcr=ffffff&urlcr=0000ff&tbsz=165&sropls=1,2,3,4,5,6,7,9,10&defid=2“》
《/iframe》
468*60
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“468“ height=“60“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=106&bgcr=ffffff&urlcr=0000ff&tbsz=230&sropls=1,2,3,4,5,6,7,9,10&defid=2&kwgp=0“》
《/iframe》
600*40
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“600“ height=“40“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=225&bgcr=ffffff&urlcr=0000ff&tbsz=230&defid=2“》
《/iframe》
600*75
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“600“ height=“75“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=261&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=265&sropls=1,2,3,4,5,6,7,9,10,99&insiteurl=&defid=99&kwgp=0“》
《/iframe》
670*40
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“670“ height=“40“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=103&bgcr=ffffff&urlcr=0000ff&tbsz=230&sropls=1,2,3,4,5,6,7,9,10&defid=2“》
《/iframe》
960*40
代码:《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“960“ height=“40“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=301&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=260&sropls=1,2,3,4,5,6&defid=2“》
《/iframe》
960*60 - 1
代码: 《iframe id=“baiduframe“ marginwidth=“0“ marginheight=“0“ scrolling=“no“
framespacing=“0“ vspace=“0“ hspace=“0“ frameborder=“0“ width=“960“ height=“60“
src=“http://unstat.baidu.com/bdun.bsc?tn=zjw189_pg&cv=0&cid=1187741&csid=321&bgcr=ffffff&ftcr=000000&urlcr=0000ff&tbsz=360&sropls=1,2,3,4,5,6&defid=2“》
《/iframe》
960*60 - 2
有关百度空间导航代码的问题,拜托!
这个:
#tab{top:310px:left:5:background:none}
改为:
#tab{left:20px;top:310px:left:5:background:none}
百百度百科右侧导航滚动代码
function DirectoryNav($h,config){
this.opts = $.extend(true,{
scrollThreshold:0.5, //滚动检测阀值 0.5在浏览器窗口中间部位
scrollSpeed:700, //滚动到指定位置的动画时间
scrollTopBorder:500, //滚动条距离顶部多少的时候显示导航,如果为0,则一直显示
easing: ’swing’, //不解释
delayDetection:200, //延时检测,避免滚动的时候检测过于频繁
scrollChange:function(){}
},config);
this.$win = $(window);
this.$h = $h;
this.$pageNavList = ““;
this.$pageNavListLis =““;
this.$curTag = ““;
this.$pageNavListLiH = ““;
this.offArr = ;
this.curIndex = 0;
this.scrollIng = false;
this.init();
}
DirectoryNav.prototype = {
init:function(){
this.make();
this.setArr();
this.bindEvent();
},
make:function(){
//生成导航目录结构,这是根据需求自己生成的。如果你直接在页面中输出一个结构那也挺好不用 搞js
$(“body“).append(’《div class=“directory-nav“ id=“directoryNav“》《ul》《/ul》《span class=“cur-tag“》《/span》《span class=“c-top“》《/span》《span class=“c-bottom“》《/span》《span class=“line“》《/span》《/div》》’);
var $hs = this.$h,
$directoryNav = $(“#directoryNav“),
temp = ,
index1 = 0,
index2 = 0;
$hs.each(function(index){
var $this = $(this),
text = $this.text();
if(this.tagName.toLowerCase()==’h2’){
index1++;
if(index1%2==0) index2 = 0;
temp.push(’《li class=“l1“》《span class=“c-dot“》《/span》’+index1+’. 《a class=“l1-text“》’+text+’《/a》《/li》’);
}else{
index2++;
temp.push(’《li class=“l2“》’+index1+’.’+index2+’ 《a class=“l2-text“》’+text+’《/a》《/li》’);
}
});
$directoryNav.find(“ul“).html(temp.join(““));
//设置变量
this.$pageNavList = $directoryNav;
this.$pageNavListLis = this.$pageNavList.find(“li“);
this.$curTag = this.$pageNavList.find(“.cur-tag“);
this.$pageNavListLiH = this.$pageNavListLis.eq(0).height();
if(!this.opts.scrollTopBorder){
this.$pageNavList.show();
}
},
setArr:function(){
var This = this;
this.$h.each(function(){
var $this = $(this),
offT = Math.round($this.offset().top);
This.offArr.push(offT);
});
},
posTag:function(top){
this.$curTag.css({top:top+’px’});
},
ifPos:function(st){
var offArr = this.offArr;
//console.log(st);
var windowHeight = Math.round(this.$win.height() * this.opts.scrollThreshold);
for(var i=0;i《offArr.length;i++){
if((offArr[i] - windowHeight) 《 st) {
var $curLi = this.$pageNavListLis.eq(i),
tagTop = $curLi.position().top;
$curLi.addClass(“cur“).siblings(“li“).removeClass(“cur“);
this.curIndex = i;
this.posTag(tagTop+this.$pageNavListLiH*0.5);
//this.curIndex = this.$pageNavListLis.filter(“.cur“).index();
this.opts.scrollChange.call(this);
}
}
},
bindEvent:function(){
var This = this,
show = false,
timer = 0;
this.$win.on(“scroll“,function(){
var $this = $(this);
clearTimeout(timer);
timer = setTimeout(function(){
This.scrollIng = true;
if($this.scrollTop()》This.opts.scrollTopBorder){
if(!This.$pageNavListLiH) This.$pageNavListLiH = This.$pageNavListLis.eq(0).height();
if(!show){
This.$pageNavList.fadeIn();
show = true;
}
This.ifPos( $(this).scrollTop() );
}else{
if(show){
This.$pageNavList.fadeOut();
show = false;
}
}
},This.opts.delayDetection);
});
this.$pageNavList.on(“click“,“li“,function(){
var $this = $(this),
index = $this.index();
This.scrollTo(This.offArr[index]);
})
},
scrollTo: function(offset,callback) {
var This = this;
$(’html,body’).animate({
scrollTop: offset
}, this.opts.scrollSpeed, this.opts.easing, function(){
This.scrollIng = false;
//修正弹两次回调 蛋疼
callback && this.tagName.toLowerCase()==’body’ && callback();
});
}
};
//实例化
var directoryNav = new DirectoryNav($(“h2,h3“),{
scrollTopBorder:0 //滚动条距离顶部多少的时候显示导航,如果为0,则一直显示
});
百度空间的导航栏代码是什么
去不掉的,这个是空间默认保留的部分
要隐藏的话只要把它的字体颜色改成背景的颜色或直接改成font-color:no就可以了
要改的话就是
#tab a.on,#tab a.on:link,#tab a.on:visited TAB选中状态{margin-top:3px;border-left:1px solid #FFFFFF;border-right:1px solid #FFFFFF;border-top:1px solid #FFFFFF;line-height:19px;background-color:#F3F1F1;color:#197CAE;font-size:14px}
#tab span TAB与TAB之间的分割符“|”{color:#FFFFFF;font-size:14px}
#tab a:link TAB未选中状态{color:#FFFFFF;text-decoration:none;font-size:14px}
#tab a:visited{color:#FFFFFF;text-decoration:none;font-size:14px}
#tab2 设置TAB菜单主体{background:#DAE9F5}
#tab2 span TAB选中状态{color:#000000;font-size:12px;font-weight:bold}
#tab2 a TAB未选中状态{font-size:12px}
这几行里面有font项的全部改成无色或背景色
显示导航的代码
我给LZ提供的是最简单实用的代码
免费导航代码 共8款
心爱花藤:javascript:window.top.space_addItem(13,9114,0,0,200,600,0); (推荐)
摘星 javascript:window.top.space_addItem(13,5145,0,0,200,600,0); (很不错!)
流金岁月 javascript:window.top.space_addItem(13,5330,0,0,200,600,0); (很不错!)
深海奥妙 javascript:window.top.space_addItem(13,5003,0,0,200,600,0);
竖着的免费导航:javascript:window.top.space_addItem(13,1,100,80,0,0,94); (换个角度更精彩!)
睡美人竖向导航:(很漂亮哦) javascript:window.top.space_addItem(13,9758,0,0,200,600,0);
粉可爱BUG空导航:javascript:window.top.space_addItem(13,4332,0,0,600,200,0); (就是把导航给隐掉了!)
西瓜导航 javascript:window.top.space_addItem(13,4384,0,0,150,700,0);

更多文章:
dropdownlist 绑定(DropDownList 绑定所有项 并 显示指定项)
2026年10月11日 08:50
易语言网页api接口怎么调用(易语言,怎么读取网页json的api)
2026年10月11日 08:00
majority of(the majority of 和 a majority of的区别以及用法例句)
2026年10月11日 07:40
another time(another time和other time的区别)
2026年10月11日 05:00






