FRAME问题,请大家帮帮忙,谢谢
一个页面有两个FRAME,现在想屏蔽掉右边子页面的复制功能,而右面的页面时不能动的,只能在主页面或左边的页面操作。下面是我主页面的代码,没有效果,请各位帮忙看看。
<html>
<head>
<script language="JavaScript">
<!--
if (rContent.Event)
//alert("godlike");
document.rContent.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.rContent.document.oncontextmenu = nocontextmenu; //对ie5.0以上
document.rContent.document.onmousedown = norightclick; //对其它浏览器
//-->
</script>
</head>
<frameset cols="27%,*" framespacing="1" border="0" >
<frame name="lMenu" border="0" marginheight="0" marginwidth="0" src="index1.html">
<frame name="rContent" border="0" marginheight="0" marginwidth="0" src="index2.html">
</frameset>
<noframes></noframes>
</html>
</head>
<frameset cols="27%,*" framespacing="1" border="0" >
<frame name="lMenu" border="0" marginheight="0" marginwidth="0" src="index1.html">
<frame name="rContent" border="0" marginheight="0" marginwidth="0" src="index2.html">
</frameset>
<noframes></noframes>
</html>