javascript小代码
//禁止右击
<script language = "javascript">
function estopRightclick()
{
if(event.button == 2)
{
alert(你点击了右键!);
}
}
document.onmousedown = estopRightclick();
</script>
<script language = "javascript">
function estopRightclick()
{
if(event.button == 2)
{
alert(你点击了右键!);
}
}
document.onmousedown = estopRightclick();
</script>