jQuery-menu-aim

编程之家收集整理的这个编程导航主要介绍了jQuery-menu-aim编程之家,现在分享给大家,也给大家做个参考。

jQuery-menu-aim 介绍

Amazon网站分类导航的下拉菜单被使用得非常频繁,但你有没有注意过它的反应非常迅速?

menu-aim 是一个 jQuery 下拉菜单插件,该插件能够甄别用户是尝试移动鼠标到下拉列表项还是将鼠标移至子菜单内容上。  

使用如下:

$("#menu").menuAim({

activate: $.noop,// fired on row activation

deactivate: $.noop // fired on row deactivation

});

以下选项可以传递给menuAim。所有函数都使用相关行的html元素作为执行上下文('this')执行:

.menuAim({

// Function to call when a row is purposefully activated. Use this

// to show a submenu's content for the activated row.

activate: function() {},

// Function to call when a row is deactivated.

deactivate: function() {},

// Function to call when mouse enters a menu row. Entering a row

// does not mean the row has been activated,as the user may be

// mousing over to a submenu.

enter: function() {},

// Function to call when mouse exits a menu row.

exit: function() {},

// Function to call when mouse exits the entire menu. If this returns

// true,the current row's deactivation event and callback function

// will be fired. Otherwise,if this isn't supplied or it returns

// false,the currently activated row will stay activated when the

// mouse leaves the menu entirely.

exitMenu: function() {},

// Selector for identifying which elements in the menu are rows

// that can trigger the above events. Defaults to "> li".

rowSelector: "> li",

// You may have some menu rows that aren't submenus and therefore

// shouldn't ever need to "activate." If so,filter submenu rows w/

// this selector. Defaults to "*" (all elements).

submenuSelector: "*",

// Direction the submenu opens relative to the main menu. This

// controls which direction is "forgiving" as the user moves their

// cursor from the main menu into the submenu. Can be one of "right",

// "left","above",or "below". Defaults to "right".

submenuDirection: "right"

});

menu-aim假设您使用的子菜单扩展到菜单右侧。当用户的鼠标进入新的下拉项目以及有意悬停该项目时,它将触发事件

GitHub:https://github.com/kamens/jQuery-menu-aim

网站描述:一个jQuery下拉菜单插件

jQuery-menu-aim

官方网站:

小编说

以上是编程之家为你收集整理的jQuery-menu-aim全部内容。

如果觉得编程之家网站内容还不错,欢迎将编程之家推荐给好友。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


jquery-labelauty,是一个基于 jQuery非常小巧的单选框复选框美化插件
jQuery.fontFlex,轻量级jQuery响应式字体插件
jQuery.Marquee,基于 jquery 实现的 marquee 无缝滚动插件
magnificent.js,一款响应式jQuery图片放大镜插件
Nestable,一个可拖拽的树结构表现插件
gridster.js,可拖放的多列网格布局
vegas,一个jQuery / Zepto幻灯片插件
jQuery-Knob,生成超酷的旋钮特效的jquery插件
Parallax.js,一款jQuery滚动视觉差插件
jquery.toast.js,一个向用户显示高度可定制的通知的插件
fakeLoader.js,十分炫酷的jQuery页面预加载Loading特效插件
OrgChart,一款简单实用的组织结构图表jQuery插件
jquery.danmu.js,jQuery弹幕插件
query-mousewheel,一个用于添加跨浏览器的鼠标滚轮支持的 jQuery 插件。
enlarge.js,一款支持移动手机的响应式jquery放大镜插件
jquery.fileDownload,实现ajax下载体验的jQuery插件
timeline.js,一款jQuery时间轴幻灯片插件
Uploadify,jQuery的一个上传插件( 支持批量上传)
cPager.js,基于jQuery的客服端分页插件
jTable,创建基于 AJAX 的增删改查表 jQuery 插件