Chinaz菜单
来源:互联网 发布:cf数据异常得多长时间 编辑:程序博客网 时间:2024/05/24 06:41
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Chinaz菜单</title>
<style type="text/css">
<!--
div, ul, p{
margin: 0;
padding: 0;
font-weight: normal;
font-style: normal;
font-size: 100%;
font-family: inherit;
}
body {
color: #333;
background: #deebf3;
text-align: center;
font: 12px/1.5 Tahoma, Helvetica, Arial, sans-serif;
}
a:link, a:visited {
color: #333;
text-decoration: none;
}
.nav {
width:910px;
position: relative;
margin:0px auto;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 0 -36px;
}
.navinner {
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 100% -72px;
}
.navlist {
height: 36px;
line-height: 36px;
overflow: hidden;
margin: 0 10px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 0;
}
.nav li {
float: left;
display: inline;
margin: 0 0 0 -2px;
padding: 0 4px 0 6px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.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;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 50% -144px;
}
.subnav {
position: absolute;
top: 41px;
left: 0;
float: left;
height: 27px;
line-height: 27px;
white-space: nowrap;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 0 -180px;
}
* html .subnav {
margin: 0 10px 0 -10px; /* IE 6 and below */
}
.subnav p {
padding: 0 10px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 100% -234px;
}
.subnav p span {
display: block;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 -207px;
}
.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.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 -261px;
}
.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 a:hover, .subnav a:active {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
font-weight: normal;
background: none;
border-bottom: 2px solid;
}
/* subnav position and pointer position */
#subnav1 { left: 120px; }
#subnav2 { left: 230px; }
#subnav3 { left: 340px; }
#subnav4 { left: 450px; }
#subnav5, #subnav6, #subnav7 {
left: auto;
right: 0px;
}
#subnav1 .pointer,
#subnav2 .pointer,
#subnav3 .pointer,
#subnav4 .pointer { left: 30px; }
#subnav5 .pointer { left: auto; right: 290px; }
#subnav6 .pointer { left: auto; right: 180px; }
#subnav7 .pointer { left: auto; right: 70px; }
#subnav1, #subnav2, #subnav3, #subnav4 {
min-width: 110px;
}
#subnav5 { min-width: 340px; }
#subnav6 { min-width: 240px; }
#subnav7 { min-width: 130px; }
.note {
margin: 0 15px 10px;
color:#666666;
}
.note span{
float:right;
}
.disable {
display: none;
}
-->
</style>
<script type="text/javascript">function $(id) {
return document.getElementById(id);
}
function showMenu (baseID, divID) {
baseID = $(baseID);
divID = $(divID);
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
divID.style.display = 'block';
showMenu.cur = divID;
if (! divID.isCreate) {
divID.isCreate = true;
//divID.timer = 0;
divID.onmouseover = function () {
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
divID.style.display = 'block';
};
function hide () {
showMenu.timer = setTimeout(function () {divID.style.display = 'none';}, 1000);
}
divID.onmouseout = hide;
baseID.onmouseout = hide;
}
function hideCur () {
showMenu.cur && (showMenu.cur.style.display = 'none');
}
}</script>
</head>
<body>
<div class="nav">
<div class="navinner">
<ul class="navlist">
<li><a href="#" id="nav_0" onmouseover="showMenu('nav_0','subnav0')">首页</a>
<div class="subnav disable" id="subnav0">
<p class="pointer">.</p>
<p><span>
<a href="#">菜单导航</a> |
<a href="#">层和布局</a> |
<a href="#">链接特效</a> |
</span></p>
</div>
</li>
<li><a href="#" id="nav_1" onmouseover="showMenu('nav_1','subnav1')">网页特效</a>
<div class="subnav disable" id="subnav1">
<p class="pointer">.</p>
<p><span>
<a href="#">菜单导航</a> |
<a href="#">层和布局</a> |
<a href="#">链接特效</a> |
</span></p>
</div>
</li>
<li><a href="#" id=nav_2 onmouseover="showMenu('nav_2','subnav2')">进出货管理</a>
</li>
<li><a href="#" id=nav_3 onmouseover="showMenu('nav_3','subnav3')">用户管理</a>
<div class="subnav disable" id=subnav3>
<p class="pointer">.</p>
<p><span>
<a href=ledger.portal?action=modifyRegister target="mainFrame">用户资料修改</a> |
</span></p>
</div>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Chinaz菜单</title>
<style type="text/css">
<!--
div, ul, p{
margin: 0;
padding: 0;
font-weight: normal;
font-style: normal;
font-size: 100%;
font-family: inherit;
}
body {
color: #333;
background: #deebf3;
text-align: center;
font: 12px/1.5 Tahoma, Helvetica, Arial, sans-serif;
}
a:link, a:visited {
color: #333;
text-decoration: none;
}
.nav {
width:910px;
position: relative;
margin:0px auto;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 0 -36px;
}
.navinner {
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 100% -72px;
}
.navlist {
height: 36px;
line-height: 36px;
overflow: hidden;
margin: 0 10px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 0;
}
.nav li {
float: left;
display: inline;
margin: 0 0 0 -2px;
padding: 0 4px 0 6px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.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;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 50% -144px;
}
.subnav {
position: absolute;
top: 41px;
left: 0;
float: left;
height: 27px;
line-height: 27px;
white-space: nowrap;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 0 -180px;
}
* html .subnav {
margin: 0 10px 0 -10px; /* IE 6 and below */
}
.subnav p {
padding: 0 10px;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) no-repeat 100% -234px;
}
.subnav p span {
display: block;
background: url(http://www.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 -207px;
}
.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.codefans.net/jscss/demoimg/200905/lrtk.png) repeat-x 0 -261px;
}
.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 a:hover, .subnav a:active {
color: #235e99;
}
.subnav a:hover, .subnav a:active {
font-weight: normal;
background: none;
border-bottom: 2px solid;
}
/* subnav position and pointer position */
#subnav1 { left: 120px; }
#subnav2 { left: 230px; }
#subnav3 { left: 340px; }
#subnav4 { left: 450px; }
#subnav5, #subnav6, #subnav7 {
left: auto;
right: 0px;
}
#subnav1 .pointer,
#subnav2 .pointer,
#subnav3 .pointer,
#subnav4 .pointer { left: 30px; }
#subnav5 .pointer { left: auto; right: 290px; }
#subnav6 .pointer { left: auto; right: 180px; }
#subnav7 .pointer { left: auto; right: 70px; }
#subnav1, #subnav2, #subnav3, #subnav4 {
min-width: 110px;
}
#subnav5 { min-width: 340px; }
#subnav6 { min-width: 240px; }
#subnav7 { min-width: 130px; }
.note {
margin: 0 15px 10px;
color:#666666;
}
.note span{
float:right;
}
.disable {
display: none;
}
-->
</style>
<script type="text/javascript">function $(id) {
return document.getElementById(id);
}
function showMenu (baseID, divID) {
baseID = $(baseID);
divID = $(divID);
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
divID.style.display = 'block';
showMenu.cur = divID;
if (! divID.isCreate) {
divID.isCreate = true;
//divID.timer = 0;
divID.onmouseover = function () {
if (showMenu.timer) clearTimeout(showMenu.timer);
hideCur();
divID.style.display = 'block';
};
function hide () {
showMenu.timer = setTimeout(function () {divID.style.display = 'none';}, 1000);
}
divID.onmouseout = hide;
baseID.onmouseout = hide;
}
function hideCur () {
showMenu.cur && (showMenu.cur.style.display = 'none');
}
}</script>
</head>
<body>
<div class="nav">
<div class="navinner">
<ul class="navlist">
<li><a href="#" id="nav_0" onmouseover="showMenu('nav_0','subnav0')">首页</a>
<div class="subnav disable" id="subnav0">
<p class="pointer">.</p>
<p><span>
<a href="#">菜单导航</a> |
<a href="#">层和布局</a> |
<a href="#">链接特效</a> |
</span></p>
</div>
</li>
<li><a href="#" id="nav_1" onmouseover="showMenu('nav_1','subnav1')">网页特效</a>
<div class="subnav disable" id="subnav1">
<p class="pointer">.</p>
<p><span>
<a href="#">菜单导航</a> |
<a href="#">层和布局</a> |
<a href="#">链接特效</a> |
</span></p>
</div>
</li>
<li><a href="#" id=nav_2 onmouseover="showMenu('nav_2','subnav2')">进出货管理</a>
</li>
<li><a href="#" id=nav_3 onmouseover="showMenu('nav_3','subnav3')">用户管理</a>
<div class="subnav disable" id=subnav3>
<p class="pointer">.</p>
<p><span>
<a href=ledger.portal?action=modifyRegister target="mainFrame">用户资料修改</a> |
</span></p>
</div>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
0 0
- Chinaz菜单
- 仿Chinaz首页菜单导航
- 前端设置- 仿Chinaz首页菜单导航
- (chinaz)巧妙选购付费链接
- Chinaz下载量最多的十个商城系统
- 贴一段不错的js,来自chinaz
- http://www.chinaz.com/中国站长站
- http://book.chinaz.com/database/sqlanywhere/ulcpzh9/ulcpzh9.htm
- dedecms下仿chinaz二级下拉动态读取代码
- 今天完终于完成了ChinaZ站长论坛顶…
- 菜单
- 菜单
- 菜单
- 菜单
- 菜单
- 菜单
- 菜单
- 菜单
- NYOJ 803 A/B Problem(java)
- 折叠、展开
- ARToolKit在VS2013下的使用配置步骤
- SDOI2017 Round1解题报告
- unity3d(3)GameObject-游戏对象类
- Chinaz菜单
- 使用FastJson对数据的常用操作
- Spring Boot的新Gradle插件详解
- 无刷新弹出可拖动登录窗口
- 机器学习中的各种距离
- socket基本连接
- 如何在Ubuntu 16.04上安装并配置Redis
- Oracle12C--视图(十九)
- Dagger2实现依赖注入之深入探究