標題:
[java/VB script]
鎖右鍵與防止全選與選取文字
[打印本頁]
作者:
gswdkimo
時間:
2011-4-9 22:03
標題:
鎖右鍵與防止全選與選取文字
<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"
>
歡迎光臨 資訊家電班NO7 (http://imce07.freehostia.com/forums/)
Powered by Discuz! 7.2