function click() { if (event.button==2) {alert('你好, 右键已被禁止使用。如需收藏本站,请按浏览器收藏按钮'); } } document.onmousedown=click