var _iframe=e("#" + pb),_offset=_iframe.offset();//e("#" + pb) 是图片所在的框架的id
e(w.body).find('img').live('contextmenu',function(ev){
//menu.show({x:ev.clientX+_offset.left,y:ev.clientY+_offset.top});
menu.show({x:ev.clientX+_offset.left,y:ev.clientY+_iframe.offset().top});//menu是一个弹出框
window['xheditor-img']=this;
return false;
});
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)