网站首页
网站导航
Ctrl+D收藏
首 页
代码段
源码包
文档库
工具箱
代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
JS
】
仿Chinaz首页菜单
作者:
Dezai.CN
/ 发布于
2013/9/25
/
708
<!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 ==========================================================*/ .nav { width:910px; position: relative; margin:0px auto; background: url(http://www.lanrentuku.com/images/uppic/lrtk.png) no-repeat 0 -36px; } .navinner { background: url(http://www.lanrentuku.com/images/uppic/lrtk.png) no-repeat 100% -72px; } .navlist { height: 36px; line-height: 36px; overflow: hidden; margin: 0 10px; background: url(http://www.lanrentuku.com/images/uppic/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.lanrentuku.com/images/uppic/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.lanrentuku.com/images/uppic/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.lanrentuku.com/images/uppic/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.lanrentuku.com/images/uppic/lrtk.png) no-repeat 100% -234px; } .subnav p span { display: block; background: url(http://www.lanrentuku.com/images/uppic/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.lanrentuku.com/images/uppic/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 ==========================================================*/ .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="#">首页</a></li> <li><a href="/News/Index.html" id="nav_1" onmouseover="showMenu('nav_1','subnav1')">asp教程</a> <div class="subnav disable" id="subnav1"> <p class="pointer">. <span> <a href="#">基础教程</a> | <a href="#">实例教程</a> | <a href="#">高级教程</a> | <a href="#">组件教程</a> </span> </div> </li> <li><a href="#" id="nav_2" onmouseover="showMenu('nav_2','subnav2')">javascript教程</a> <div class="subnav disable" id="subnav2"> <p class="pointer">. <span> <a href="#">基础教程</a> | <a href="#">实例教程</a> | <a href="#">高级教程</a> </span> </div> </li> <li><a href="#" id="nav_3" onmouseover="showMenu('nav_3','subnav3')">网站运营</a> <div class="subnav disable" id="subnav3"> <p class="pointer">. <span> <a href="#">建站经验</a> | <a href="#">策划盈利</a> | <a href="#">搜索优化</a> | <a href="#">网站推广</a> | <a href="#">免费资源</a> </span> </div> </li> <li><a href="#" id="nav_4" onmouseover="showMenu('nav_4','subnav4')">css方面</a> <div class="subnav disable" id="subnav4"> <p class="pointer">. <span> <a href="#">酷站推荐</a> | <a href="#">网页设计</a> | <a href="#">WEB标准</a> | <a href="#">设计活动</a> </span> </div> </li> <li><a href="#" id="nav_5" onmouseover="showMenu('nav_5','subnav5')">网络编程</a> <div class="subnav disable" id="subnav5"> <p class="pointer">. <span> <a href="#">Asp编程</a> | <a href="#">Php编程</a> | <a href="#">.Net编程</a> | <a href="#">Xml编程</a> | <a href="#">Access</a> | <a href="#">Mssql</a> | <a href="#">Mysql</a> </span> </div> </li> <li><a href="#" id="nav_6" onmouseover="showMenu('nav_6','subnav6')">联盟资讯</a> <div class="subnav disable" id="subnav6"> <p class="pointer">. <span> <a href="#">联盟新闻</a> | <a href="#">联盟介绍</a> </span> </div> </li> <li><a href="#" id="nav_7" onmouseover="showMenu('nav_7','subnav7')">服务器</a> <div class="subnav disable" id="subnav7"> <p class="pointer">. <span> <a href="#">Web服务器</a> | <a href="#">Ftp服务器</a> </span> </div> </li> </ul> </div> </div> </div> </body> </html>
评论列表
本站所提供的代码,版权归原作者所有,若有侵犯作者版权,请与我们联系,我们将立即删除或修改。谢谢!
本站所有代码发布及提供者。
试试其它关键字
Chinaz首页菜单
同语言下
.
Jquery搜索框获取回车事件
.
H5页面添加倒计时,然后自动跳转
.
通过user-agent判断h5页面是在哪个手机App(QQ、微信
.
nginx 禁止未绑定的域名访问
.
JavaScript 获取按键,并屏蔽系统 Window 事件
.
H5之只允许微信浏览器打开,禁止从外部浏览器访问
.
微信打开网址添加在浏览器中打开提示的办法
.
实现JS复制、粘贴,Chrome/Firefox下可用
.
video视频播放,play()、pause()、duration时长、onen
.
HTML5实现MP3上传前的预览和播放时长的获取
可能有用的
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
.
实现对图片上传的接收
.
判断用户输入的是否为IP地址
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
地图
本站
我们
服务
版权
联系
回馈
博客