不明白你说的什么?
<body oncontextmenu="return false;">
屏蔽右键

解决方案 »

  1.   

    全部的是这样的showmenuie5和hidemenuie5是两个方法cMenu是CSS关于控制右键的if (document.all&&window.print)
    ie5menu.className="cMenu";

    document.oncontextmenu=showmenuie5;
    document.body.onclick=hidemenuie5;
    }
      

  2.   


    <style type="text/css">
    <!--
    .bor {  background-color: #CCCCCC; border-color: #FFFFFF #666666 #666666 #FFFFFF; border-style: none; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
    -->
    </style><body oncontextmenu="document.all.rightshow.style.display='inline';return false;" onclick="document.all.rightshow.style.display='none'">
    <div id="rightshow" style="position:absolute; left:15px; top:27px; width:98px; height:82px; z-index:1; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; display: none" class="bor"> 
      <p onmouseover="this.style.background='0000ff';this.innerHTML='<font color=#ffffff size=2>首页</font>'" style="cursor:hand" onmouseout="this.style.background=''"><font size="2">首页</font></p>
      <p onmouseover="this.style.background='0000ff';this.innerHTML='<font color=#ffffff size=2>返回</font>'" style="cursor:hand"><font size="2">返回</font></p>
      <p onmouseover="this.style.background='0000ff';this.innerHTML='<font color=#ffffff size=2>右键菜单</font>'" style="cursor:hand"><font size="2">右键菜单</font></p>
    </div>