横向和纵向的下拉菜单第三种实现办法及显示效果

by 清泉 7. 九月 2008 08:21

官方网站:http://www.webtech101.com/Javascript/effect-menu
Multi-level effect menu- 这是一个高度可配置的javascript/css下拉菜单,
可以让你轻松生成多级层联的横向或纵向下拉菜单.

附件里面有关于这个下拉菜单的演示及下拉菜单官方的详细使用说明:webtech101_ml_effect_menu.zip (4.07 kb)

下面是这个下拉菜单的横向和纵向的显示效果图,关于这个下拉菜单的详细显示效果请移步官方查看:

下面是官方的一些使用说明:

As the above shows it is capable of producing multiple menus on a single page.In fact you can have an unlimited number of menus. All produced with the following markup.
<div class="mlmenu [horizontal|vertical] [effect] [arrow|plus] [delay] [trail] [left] [color class] [accessible]"> <ul> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a> <ul> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a> <ul> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> </li> </ul> </li> </ul> </div>

Then simply place this code in the head of the document.
<link rel="stylesheet" href="css.css"> <!--[if lte IE 6]> <link rel="stylesheet" href="hack.css"> <script type="text/javascript"> window.mlrunShim = true; </script> <![endif]--> <script type="text/javascript" src="js.js"> //This script Copyright Brady Mulhollem - WebTech101.com //This notice must stay intact for legal use </script> 

Obviously, the menu is very configuarble. The secret is the class portion of the div tag
class="mlmenu [horizontal|vertical] [effect] [arrow|plus] [delay] [trail] [left] [color class] [accessible]"  

Lets go over the options.
horizontal or vertical?
The first choice that needs to be made is whether the menu will be horizontal or vertical.Simply place your choice in the class like so class="mlmenu vertical"

color class

The next required part is the color class. The default css comes with two blackwhite and bluewhite. You would use them like this.
class="mlmenu vertical blackwhite"

Tags: , , ,

JS相关技术

评论

添加评论



(将显示你的Gravatar头像)  

biuquote
微笑得意调皮害羞酷大笑惊讶发呆喜欢可怜尴尬闭嘴噘嘴皱眉伤心抓狂呕吐坏笑漫骂发怒
Loading



Supidea.com 晨飞的梦 @ All Rights Reserved. Powered by BlogYi.NET ver:1.8.0.0. 苏ICP备09011404号

关于博主

kamau
抱着美好的理想背井离乡,这酸甜苦辣只能默默忍受。既然选择了路,就得风雨兼程……

Calendar

<<  二月 2012  >>
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

在日历中查看文章

最近的评论

Comment RSS

声明

      本博所发一切破解相关附件只作学习研究交流之用,严禁用于商业用途,请在下载24小时内删除。
      本博所有网友评论不代表本博立场,版权归其作者所有。

© Copyright 2009