导航条代码

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
<a href="http://www.izhuoyue.com/">门户动态</a> |
<a href="http://www.2vjia.com/">搜索引擎</a> |
<a href="http://www.dhc55.com/">网络游戏</a> |
<a href="http://www.yamaxun.org/">电子商务</a> |
divID.style.display = 'block';
};
function hide () {
showMenu.timer = setTimeout(function () {divID.style.display = 'none';}, 1000);
}
divID.onmouseout = hide;
}
.subnav a:hover, .subnav a:active {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
font-weight: normal;
background: none;
border-bottom: 2px solid;
}
#subnav6 .pointer { left: auto; right: 180px; }
#subnav7 .pointer { left: auto; right: 70px; }
#subnav1, #subnav2, #subnav3, #subnav4 {
min-width: 110px;
<div class="subnav disable" id="subnav2">
<p class="pointer">.</p>
<p><span>
<a href="http://www.2vancl.cn/">好站推荐</a> |
<a href="http://www.ivancl.cn/">站长聚会</a> |
}
#subnav5 { min-width: 340px; }
#subnav6 { min-width: 240px; }
#subnav7 { min-width: 130px; }
/* Note
==========================================================*/
}
.subnav p {
padding: 0 10px;
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 100% -234px;
}
.subnav p span {
display: block;
background: url(http://www.qpsh.com/icon/nav_bg.png) repeat-x 0 -207px;
}
.navlist {
height: 36px;
line-height: 36px;
overflow: hidden;
margin: 0 10px;
background: url(http://www.qpsh.com/icon/nav_bg.png) repeat-x 0 0;
}
.nav li {
}
.subnav p.pointer {
position: absolute;
top: -4px;
left: 0;
height: 5px;
width: 11px;
padding: 0;
margin-left: 20px;
text-indent: -999em;
background: url(http://www.qpsh.com/icon/nav_bg.png) repeat-x 0 -261px;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>中国</title>
<style type="text/css">
body {
color: #333;
background: url(body_bg.jpg) repeat-x #deebf3;
.note {
margin: 0 15px 10px;
color:#666666;
}
.note span{
float:right;
}
.disable {
display: none;
}
</style>
<script>
function isMatch(str1,str2)
{
var index = str1.indexOf(str2);
baseID.onmouseout = hide;
}
function hideCur () {
showMenu.cur && (showMenu.cur.style.display = 'none');
}
}
</script>
</head>
<body>
<div class="nav">
<div class="navinner">
}
function showMenu (baseID, divID) {
baseID = $(baseID);
divID = $(divID);
//var l = GetOffsetLeft(baseID);
//var t = GetOffsetTop(baseID);
//divID.style.left = l + 'px';
if (! divID.isCreate) {
divID.isCreate = true;
//divID.timer = 0;
divID.onmouseover = function () {
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
<div class="subnav disable" id="subnav1">
<p class="pointer">.</p>
<p><span>
<a href="http://www.fankelipinka.com/">业界动态</a> |
<a href="http://www.pc555.com/">收购融资</a> |
<a href="http://www.wangtx.com/">广告传媒</a> |
<a href="http://www.18115.com/">厂商开发</a>
</span></p>
</div>
</li>
<li><a href="/Webmaster/Index.html" id="nav_2" onmouseover="showMenu('nav_2','subnav2')">站长在线</a>
<ul class="navlist">
<li><a href="http://www.fankeka.com/">网页特效</a></li>
<li><a href="/News/Index.html" id="nav_1" onmouseover="showMenu('nav_1','subnav1')">新闻资讯</a>
// divID.style.top = t + baseID.offsetHeight + 'px';
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
divID.style.display = 'block';
showMenu.cur = divID;
left: auto;
right: 0px;
}
#subnav1 .pointer,
#subnav2 .pointer,
#subnav3 .pointer,
#subnav4 .pointer { left: 30px; }
#subnav5 .pointer { left: auto; right: 290px; }
white-space: nowrap;
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 0 -180px;
}
* html .subnav {
margin: 0 10px 0 -10px; /* IE 6 and below */
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 50% -144px;
}Fra Baidu bibliotek
.subnav {
position: absolute;
top: 41px;
left: 0;
float: left;
height: 27px;
line-height: 27px;
float: left;
display: inline;
margin: 0 0 0 -2px;
padding: 0 4px 0 6px;
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 0 -108px;
}
.nav a {
display: block;
width: 102px;
text-align: center;
font-size: 120%;
}
.nav a:link, .nav a:visited {
color: #fff;
}
.nav a.current, .nav a:hover, .nav a:active {
color: #fff;
font-weight: bold;
}
.subnav a {
display: inline;
padding: 0;
font-size: 100%;
}
[class~="subnav"] a {
padding: 0 3px;
}
.subnav, .subnav a:link, .subnav a:visited {
color: #235e99;
/* subnav position and pointer position */
#subnav1 { left: 120px; }
#subnav2 { left: 230px; }
#subnav3 { left: 340px; }
#subnav4 { left: 450px; }
#subnav5, #subnav6, #subnav7 {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<a href="/Webmaster/Visit/Index.html">站长访谈</a> |
<a href="http://www.cnosa.com/">站长茶馆</a> |
<a href="http://www.cnwenger.com/">网站排行</a>
</span></p>
text-align: center;
font: 12px/1.5 Tahoma, Helvetica, Arial, sans-serif;
}
a:link, a:visited {
color: #333;
text-decoration: none;
}
/* Nav
==========================================================*/
if(index==-1) return false;
return true;
}
function ResumeError() {
return true;
}
window.onerror = ResumeError;
function $(id) {
return document.getElementById(id);
.nav {
position: relative;
margin: 0 10px 10px;
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 0 -36px;
}
.navinner {
background: url(http://www.qpsh.com/icon/nav_bg.png) no-repeat 100% -72px;
相关文档
最新文档