在 Fancybox 图像弹出窗口中使用上下文菜单

发布于 2024-09-28 07:44:32 字数 318 浏览 0 评论 0原文

我将此右键单击上下文菜单集成到我的网站中: http:// /abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/#download

我现在的问题是当我使用 fancybox 来显示图像时,我似乎找不到要定位的选择器,所以当我右键单击 fancybox 图像弹出窗口时,我可以使用自定义上下文菜单。

有什么想法吗?

I integrated this right click context menu into my website: http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/#download

my problem now is when I use fancybox to show an image, I can't seem to find a selector to target so i can use my custom context menu when i right click on the fancybox image popup.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄离 2024-10-05 07:44:32

哦,我找到了答案。

在 fancybox 选项中,使用 onComplete 回调

onComplete : function() {
$("选择器").contextMenu({
废话
});
}

Oh I found the answer.

in the fancybox options, use the onComplete callback

onComplete : function() {
$("selector").contextMenu({
blah
});
}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文