Code
Function click (e ){
If (document. All ){
If (event. Button = 1 | event. Button = 2 | event. Button = 3 ){
Oncontextmenu = 'Return false ';
}
}
If (document. layers ){
If (E. Which = 3 ){
Oncontextmenu = 'Return false ';
}
}
}
If (document. layers ){
Document. captureevents (event. mousedown );
}
Document. onmousedown = click;
Document. oncontextmenu = new function ("Return false ;")
VaR travel = true
VaR hotkey = 17/* hotkey is the key value of the hotkey, which is an asii code. Here 99 represents the C key */
If (document. layers)
Document. captureevents (event. keydown)
Function Gogo (E)
{If (document. layers ){
If (E. Which = hotkey & travel)
{
Alert ("Operation error. Maybe you have pressed the wrong button! ");
}
}
Else if (document. All ){
If (event. keycode = hotkey & travel ){
Alert ("Operation error. Maybe you have pressed the wrong button! ");
}}
}
Document. onkeydown = gogo