仿Win7右键菜单(原生JS)
http://bbs.blueidea.com/thread-3028593-1-1.html
jQuery ContextMenu Plugin(GOOD)
http://www.javascripttoolbox.com/lib/contextmenu/index.php
自定义菜单:
var menu = [{'确认':{
onclick:function(menuItem,menu) {
alert("you clicked me!");
$.ajax({
url: "",
success: function(msg){
alert(msg);
}
});
}
}
}
];
$(function() {
$('.confirm').contextMenu(menu,{theme:'xp'});
});
<div class="confirm">点击弹出右键</div>