125、禁止鼠标左健右键点击

125、禁止鼠标左健右键点击

<SCRIPT LANGUAGE=javascript>

function click() {

alert('禁止你的左键复制!') }

function click1() {

if (event.button==2) {alert('禁止右键点击~') }}

function CtrlKeyDown(){

if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }}

document.onkeydown=CtrlKeyDown;

document.onselectstart=click;

document.onmousedown=click1;

</SCRIPT>

 

 

Write a comment

Comments: 0