[java/VB script] 鎖右鍵與防止全選與選取文字



[java/VB script] 鎖右鍵與防止全選與選取文字

<head>
<!--防止使用右鍵 start-->
<script type="text/javascript">
<!--
function document.oncontextmenu(){
window.event.returnValue=false; //將滑鼠右鍵事件取消
}
//-->
</script>
<!--防止使用右鍵 End-->
//火狐用
<style>
<!--
body {-moz-user-select:none;}
-->
</style>

</head>
//onselectstart="return false"  IE適用
<body onselectstart="return false">