此页面上的内容需要较新版本的 Adobe Flash Player。

获取 Adobe Flash Player

魔快网络 - 建高品质的网站!
电话:(0)15011022561 苏玮
QQ:476289485
MSN:[email protected]
魔快网络:建最优品质的网站 公司建网站,网页设计、制作 技术支持电话:15011022561

首页->横向导航菜单,纵向的只要<br>就行了

横向导航菜单 纵向的只要<br>就行了

 

/********导航开始********/
div, ul, p { margin: 0; padding: 0; font-weight: normal; font-style: normal; font-size: 100%; font-family: inherit; }
body { color: #ededed; background: #147151; text-align: center; font: 12px/1.5 }
a:link, a:visited { color: #ededed; text-decoration: none; }
/* Nav
==========================================================*/
.nav { width:852px; position: relative; margin:0px auto;}
.navinner {no-repeat 100% 72px; }
.navlist { height: 26px; line-height: 26px; overflow: hidden; margin: 0 10px; repeat-x 0 0; }/*<!--导航文字-->*/
.nav li { float: left; display: inline; margin: 0 0 0 -2px; padding: 0 4px 0 6px; no-repeat 0 -108px;}
.nav a { display: block; width: 75px; text-align: center; font-size:14px }
.nav a:link, .nav a:visited { color: #000; }
.nav a.current, .nav a:hover, .nav a:active { color: #000; font-weight: bold; background: no-repeat 50% -144px; }

.subnav { position: absolute; top: 26px; left: 0; float: left; height: 27px; line-height: 27px; white-space: nowrap; background: no-repeat 0 -180px; }
* html .subnav { margin: 0 10px 0 -10px; /* IE 6 and below */ }

.subnav p { padding: 0 10px; no-repeat 100% -234px; }
.subnav p span { display: block; 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: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: #ededed; }
.subnav a:hover, .subnav a:active { color: #ededed; }/*<!--连接颜色-->*/
.subnav a:hover, .subnav a:active { font-weight: normal; background: none; border-bottom: 2px solid; }
/* subnav position and pointer position */
#subnav1 { left: -6px; }
#subnav2 { left: 160px; }
#subnav3 { left: 110px; }
#subnav4 { left: 200px; }
#subnav5 { left: 400px; }
#subnav6 { left: 380px; }
#subnav1 .pointer, #subnav2 .pointer, #subnav3 .pointer, #subnav4 .pointer { left: 30px; }
/* Note
#subnav5 .pointer { left: auto; right: 290px; }
#subnav6 .pointer { left: auto; right: 0px; }
#subnav7 { left: auto; right: 0px; }
#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; }

以上是CSS代码,以下是页面里的

<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>
<div class="nav">
<div class="navinner">
<ul class="navlist">
<li><a href="index.htm">网站首页</a></li>
<li><a href="about.html" id="nav_1" onmouseover="showMenu('nav_1','subnav1')">关于我们</a>
<div class="subnav disable" id="subnav1">
<p class="pointer">.</p>
<p><span> <a href="about.html">六零五公司</a> | <a href="#">发展历程</a> | <a href="#">组织机构</a> | <a href="#">企业文化</a> <!--纵向的只要<br>就行了--> </span></p>
</div>
</li>
<li><a href="#" id="nav_2" onmouseover="showMenu('nav_2','subnav2')">新闻中心</a>
<div class="subnav disable" id="subnav2">
<p class="pointer">.</p>
<p><span> <a href="#">公司新闻</a> | <a href="#">相关报道</a></span></p>
</div>
</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="#">技术实质</a> | <a href="#">专利证书</a> | <a href="#">权威认证</a> | <a href="#">检测报告</a> | <a href="#">专家论述</a> | <a href="#">专题讲座</a></span></p>
</div>
</li>
<li><a href="#" id="nav_4" onmouseover="showMenu('nav_4','subnav4')">产品介绍</a>
<div class="subnav disable" id="subnav4">
<p class="pointer">.</p>
<p><span> <a href="#">优能抗磨剂系列</a> | <a href="#">优能节油精系列</a> | <a href="#">优能润滑油</a> | <a href="#">优能专用液体</a></span></p>
</div>
</li>
<li><a href="#" id="nav_5" onmouseover="showMenu('nav_5','subnav5')">问题解答</a>
<div class="subnav disable" id="subnav5">
<p class="pointer">.</p>
<p><span> <a href="#">常见问题</a> | <a href="#">典型案例</a> | <a href="#">润滑油选择</a></span></p>
</div>
</li>
<li><a href="#" id="nav_6" onmouseover="showMenu('nav_6','subnav6')">视频观看</a>
<div class="subnav disable" id="subnav6">
<p class="pointer">.</p>
<p><span> <a href="#">活动剪影</a> | <a href="#">六零五技术篇</a> | <a href="#">专家谈六零五</a> | <a href="#">汽车应用篇</a> | <a href="#">工业应用篇</a></span></p>
</div>
</li>
<li><a href="#">代理商</a>

</li>
<li><a href="#">产品商城</a>

</li>
<li><a href="#">客户留言</a>

</li>
</ul>
</div>
</div>

关闭窗口   

·[远程桌面控制]错误: 拒绝访问
·[菜单制作]css+js下拉菜单
·[定时关机命令]定时关机命令
·[远程桌面控制]远程桌面控制与IIS设置
·[导航菜单]横向导航菜单 2009-1-25
·[搜索引擎优化] 网站优化-url优化
·[网络营销方法] SEO讲座:关键词布局技巧

◇ 搜索引擎小偷程序初探

成品[朝阳区]
  魔快分站|信诚威|青风荷韵|泛亚西亚|北京隆腾展具制作|祥威胜|优仕配音|诚灵纺织|国顺广告材料|中国设计名站|北京朝阳做网站|北京建网站|北京做网站
©2002-  电话:010-69440493  QQ:476289485 手机:15011022561(苏先生)  Email:[email protected]
地址:北京市建国门外大街17号28号楼 华星擘达商务楼6层2602 做网站找魔快,建站快、优化好!MoKuai.Net