您的位置:首页 - 教程 - 网页特效 - 正文
HoverTree菜单示例
HoverTree菜单示例:
http://hovertree.com/texiao/h/hovertree/

本示例为 HoverTree菜单 0.1.3版本。hovertree菜单是一款jQuery菜单插件。二级菜单可以展开收起。

在HoverTreeTop项目中也使用该菜单作为后台菜单,效果:http://hovertree.com/h/bjag/mej790la.htm

代码如下:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>HoverTree菜单_何问起</title><base target="_blank" />
<meta charset="utf-8" />
<link href="http://hovertree.com/texiao/h/hovertree/jquery.hovertree.0.1.3a.css" rel="stylesheet" />
<script src="http://down.hovertree.com/jquery/jquery-1.12.4.min.js"></script>
<script src="http://hovertree.com/texiao/h/hovertree/jquery.hovertree.0.1.3.js"></script>
<style>
#hovertreecontainer{max-width:920px;margin:0px auto}
#hovertreecontent{width:800px;float:right;}
#hovertreeleft{margin: 0px; width: 110px; float: left;}
#hewenqititle{text-align:center}
</style>
</head>
<body>
<div id="hovertreecontainer">
<div id="hewenqititle">
<h2>HoverTree菜单</h2>
</div>
<div id="hovertreeleft">
<div id="hovertreemenu" class="hovertree">
<div class="hovertreeitem hvtcurrent">
<h3>
<b></b><a>菜单</a>
</h3>
<ul>
<li><a href="http://hovertree.com/">何问起</a></li>
<li><a href="http://hovertree.com/top/">HoverTreeTop</a></li>
</ul>
</div>
<div class="hovertreeitem hvtcurrent">
<h3>
<b></b><a>内容</a>
</h3>
<ul>
<li><a href="http://hovertree.com/tiku/">题库</a></li>
<li> <a href="http://hovertree.com/h/bjaf/l3c6nm7b.htm" target="_blank">何问起键盘</a></li>
<li><a href="http://hovertree.com/code/">代码</a></li>
<li><a href="http://hovertree.com/map/">导航</a></li>

</ul>
</div>
<div class="hovertreeitem">
<h3>
<b></b><a>更多</a>
</h3>
<ul>
<li><a href="http://hovertree.com/about/">关于</a></li>
<li><a href="http://hovertree.com/guestbook/">留言</a></li>
<li><a href="http://hovertree.com/about/follow.htm">关注</a></li>
</ul>
</div>
</div>
</div>

<div id="hovertreecontent">
hovertree菜单是一款jQuery菜单插件。效果如左边所示。二级菜单可以展开收起。

</div>

</div>
<script type="text/javascript">
$("#hovertreemenu").hovertree({
"width": "keleyi", "initStatus": 'keleyi', "subMenuShowSpeed": 200,
"subMenuShowWay": "slidedown"
});
</script>
</body>
</html>

评论: