日期:2014-05-17 浏览次数:20430 次
<script LANGUAGE="JavaScript">
function click()
{ if (event.button==2)
{alert('禁用右键'); }
}
document.onmousedown=click
</script>
function window.onhelp(){return false} //屏蔽F1帮助
/*keyCod从113-123分别禁用了F2-F12键,13禁用了回车键(Enter),8禁用了退格键(BackSpace)*/
document.onkeydown = function()
{
if(window.event && window.event.keyCode == 113)
{
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 114)
{
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 115)
{
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 116)
{
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 117)