日期:2014-05-16 浏览次数:20362 次
<div id="mlay" style="position: absolute; display: none; cursor: default;"onClick="return false;">菜单</div> <script type="text/javascript"> document.oncontextmenu = function (event) { var mlay = document.getElementById('mlay'); mlay.style.display = ""; event = event || window.event; mlay.style.top = event.clientY + 'px'; mlay.style.left = event.clientX + 'px'; return false; } </script>