Authored by zhengyouwei

禁止刷新

... ... @@ -210,4 +210,15 @@
}
</script>
\ No newline at end of file
<script>
document.onkeydown = function()
{
if(event.keyCode==116 || event.keyCode==8 || (event.ctrlKey && event.keyCode==82) || event.keyCode == 13) {
event.keyCode=0;
event.returnValue = false;
}
}
document.oncontextmenu = function() {event.returnValue = false;}
</script>
\ No newline at end of file
... ...
... ... @@ -67,6 +67,7 @@
</body>
<script>
var myArray = new Array();
var removeArray = new Array();
... ... @@ -177,8 +178,17 @@
}
});
});
}
</script>
<script>
document.onkeydown = function()
{
if(event.keyCode==116 || event.keyCode==8 || (event.ctrlKey && event.keyCode==82) || event.keyCode == 13) {
event.keyCode=0;
event.returnValue = false;
}
}
document.oncontextmenu = function() {event.returnValue = false;}
</script>
\ No newline at end of file
</script>
\ No newline at end of file
... ...