开发者

how can i use this jquery plugin theres no examples or guide

http://plugins.jquery.com/project/conmenu

its a plugin for right click menu..... however it has no example usages or illustration or demonstration....

like where can i include additional selector optio开发者_运维百科ns like top.document, or parent.window.document

$.conmenu({
  selector:".node",
  choices:[{
    label:"Edit",
    action:function(div){
      var nid = $(div).attr("id").substring(5);
      window.location.href = "/node/" + nid + "/edit";
    }
  }]
});


I would recommend looking at some other plugins as they are better documented. For example, this plugin has better docs and examples:

http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/


It is pretty simple to use, based on the documentation. Just paste in their sample, and then add in some more menu items, using their code as a template, and see what happens.

If you still have problems then you can ask here, showing the code that is causing you problems.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜