xiaoqiao0011 - 2009/6/16 10:52:00
<script language="JavaScript">
<!--
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
//-->
</script>
xiyou - 2009/6/16 10:57:00
给客户很不舒服感觉,万一客户想用右键,你有屏蔽了会很郁闷的
xiaoqiao0011 - 2009/6/16 12:15:00
哦..我是看到以前的一个回贴,,有个朋友说要我发出来..他可能想用..
kyst - 2009/6/18 23:39:00
加到哪里呀?