<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jQuery�����б�������˵� - վ���ز�</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<script src="js/jqmin.1.10.1.js" type="text/javascript"></script>
<script src="js/jquery.hoverintent.r7.js" type="text/javascript"></script>
<script src="js/jquery.mnmenu.js" type="text/javascript"></script>
<script>$(document).ready(function() {
$('#idmenu').mnmenu();
//Create and init additional menus
var $demoContainer = $('#demoContainer');
$demoContainer.append($("<h3>Regular menus</h3>"));
$demoContainer.append($("<p>Menus with different colors and styling.</p>"));
//Create lists
$(["bluemenu", "grayround", "squarewhite", "blue2menu"]).each(function() {
var color = this;
var $temp = generateMenu(color);
$demoContainer.append($temp);
$temp.mnmenu({menuClassName: color.toString()});
});
$demoContainer.append($(["<h3>Right aligned menu</h3>"].join("")));
$demoContainer.append($("<p>This menu is the reversed version of the top menu."
+ " Menus will be displayed from bottom to top and from right to left.</p>"));
//Init right to left menu with custom level settings
var rightMenuLevelSettings = {};
//Defaults
rightMenuLevelSettings[0] = new MNLevelSettings();
rightMenuLevelSettings[0].parentAttachmentPosition = "SW";
rightMenuLevelSettings[0].attachmentPosition = "SE";
//First level
rightMenuLevelSettings[1] = new MNLevelSettings();
rightMenuLevelSettings[1].parentAttachmentPosition = "NE";
rightMenuLevelSettings[1].attachmentPosition = "SE";
var $rightbtmenu = generateMenu("rightbtmenu");
$demoContainer.append($rightbtmenu);
$rightbtmenu.mnmenu({menuClassName: "rightbtmenu", levelSettings: rightMenuLevelSettings});
/////////////////////////////////////////////////////
function generateMenu(id) {
var $temp = $(["<ul id='", id, "'></ul>"].join(""));
//ADD Submenus
for (var i = 1; i < 6; i++) {
var label = ["Level-", i].join("");
var $firstLevel = $(["<li>", label, "</li>"].join(""));
$temp.append($firstLevel);
addLevels(1, 5, $firstLevel, label);
}
return $temp;
}
function addLevels(current, max, $component, label) {
var $newContainer = null;
for (var i = 1; i < Math.floor(Math.random() * 6) + 1; i++) {
if ($newContainer === null) {
$newContainer = $("<ul></ul>");
$component.append($newContainer);
}
var newLabel = [label, "-", i].join("");
var $newLevel = $(["<li>", newLabel, "</li>"].join(""));
$newContainer.append($newLevel);
if (current < max) {
addLevels(current + 1, max, $newLevel, newLabel);
}
}
}
});</script>
<link href="css/styleIE.css" type="text/css" rel="stylesheet"/>
<link href="css/blue.css" type="text/css" rel="stylesheet"/>
<link href="css/grayround.css" type="text/css" rel="stylesheet"/>
<link href="css/squarewhite.css" type="text/css" rel="stylesheet"/>
<link href="css/blue2.css" type="text/css" rel="stylesheet"/>
<link href="css/rightbt.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<ul id="idmenu">
<li><a href="#" id="idTestLink"><span>File</span></a>
<ul>
<li><a href="#" ><span>New</span></a></li>
<li><a href="#" ><span>Open</span></a></li>
<li><a href="#" ><span>Open Recent</span></a>
<ul>
<li>/home/user/documents/mnmenu-userguide.pdf</li>
<li>/home/user/documents/TakingOverTheWorldIn10days.pdf</li>
<li>/home/user/documents/WorldDominationForDummies.pdf</li>
<li>/home/user/documents/HowToUninstallWindows.pdf</li>
</ul>
</li>
<li><hr></hr></li>
<li><a href="#" ><span>Save</span></a></li>
<li><a href="#"><span>Save as...</span></a></li>
<li><a href="#" ><span>Quit</span></a></li>
</ul>
</li>
<li><a href="#" id="id31"><span>Sales</span></a>
<ul>
<span>
<li><a href="#" id="id32"><span>Accounts</span></a></li>
<li><a href="#" id="id33"><span>Companies</span></a></li>
<li><a href="#" id="id34"><span>Leads</span></a></li>
<li><a href="#" id="id35"><span>Activities</span></a>
<ul>
<li><a href="#" id="id36"><span>Calls</span></a></li>
<li><a href="#" id="id37"><span>Tasks</span></a></li>
<li><a href="#" id="id38"><span>Meetings</span></a></li>
</ul>
</li>
</span>
</ul>
</li><li><a href="#" id="id39"><span>Master</span></a>
<ul>
<li> <a href="#" id="id3a"><span>Company</span></a></li>
<li><a href="#" id="id3b"><span>System</span></a>
<ul>
<li><a href="#" id="id3c"><span>Places</span></a>
<ul>
<li><a href="#" id="id3d"><span>Countries</span></a></li>
<li><a href="#" id="id3e"><span>States</span></a></li>
<li><a href="#" id="id3f"><span>Postal Codes</span></a></li>
</ul>
</li>
<li><a href="#" id="id40"><span>Currency</span></a></li>
<li><a href="#" id="id41"><span>Taxes</span></a></li>
<li><a href="#" id="id42"><span>Invoice Series</span></a></li>
</ul>
</li>
<li>
<a href="#" id="id43"><span>Issues</span></a>
<ul><li><a href="#" id="id44"><span>Types</span></a></li>
<li><a href="#" id="id45"><span>Solutions</span></a></li>
</ul>
</li>
<li><a href="#" id="id46"><span>Users</span></a></li>
</ul>
</li>
<li>
<a href="#">Menu</a>
<ul>
<li><a href="#">Level M-1</a></li>
<li><a href="#">Level M-2</a></li>
<li><a href="#">Level M-3</a></li>
<li><a href="#">Level M-4</a></li>
jQuery无序列表的下拉菜单.zip
版权申诉
156 浏览量
2022-11-22
17:15:46
上传
评论
收藏 117KB ZIP 举报
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
最新资源
- c51_2_2.c
- ASCII American Standard Code for Information Interchange
- 一个chm格式的 SQL 函数手册-SQL语言手册文档
- 计算当前月份的天数和剩余天数
- 基于ARM的指令调度和延迟分支
- 基于Vue和TypeScript的极简聊天应用设计源码 - HasChat
- 基于Vue2全家桶和Zcool数据的图片收集网站设计源码 - cool-picture
- 基于C和C++的二维绘制工具设计源码 - DrawPro
- Object.defineProperty 的 IE 补丁object-defineproperty-ie-master.zip
- 整卷预览.mhtml
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈