jQuery Right-Click Context Menu Help!

人盡茶涼 提交于 2019-12-18 15:53:00

问题


http://pastebin.com/YyDzQ4Bk this is a plugin for right click context menu, anyone know why it doesn't work in IE?

Not only that, it's breaking many of my other jQuery things, such as fancy box and some jQuery hover functions.


回答1:


Do you really need a plugin?

You could make your own context menu using contextmenu event:

$("element").bind("contextmenu",function(e) {
    e.preventDefault();

    // create and show menu
});

Some ways to achieve it

  • jQuery Context Menu script
  • Create a jQuery Context Menu for Treeview
  • Right or Left Click Context Menu Using jQuery Demo


来源:https://stackoverflow.com/questions/3996204/jquery-right-click-context-menu-help

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!