Right Click Alert

NotO6.03

ToFILE
msg='右クリック禁止';
ie=document.all;
n4=document.layers;
gk=(navigator.userAgent.match(/Gecko/i)!=null);
function mousedown(e){
if(navigator.platform.indexOf('Mac')!=-1){
if((ie&&event.ctrlKey)||((n4||gk)&&e.modifiers==2)){alert(msg);return false}
}else{
if(ie){
e=event;
if(e.button>=2){
if(event.type=='mouseup')document.body.createTextRange().select();
alert(msg);return false
}
}else{
if(n4||gk){
if(e.which==3){alert(msg);return false}
}
}
}
}
function keydown(){
if(ie){
if(event.keyCode==93)alert(msg);
if(event.shiftKey&&event.keyCode==121)alert(msg);
}
}
if(n4)document.captureEvents(Event.MOUSEDOWN);
document.onkeydown=keydown;
document.onmousedown=mousedown;
document.onmouseup=mousedown

ToHEAD
<SCRIPT SRC="sta.js" LANGUAGE="JavaScript1.2"></SCRIPT>

RESERVED
ie,n4,gk


[BACK]       [TOP]       [Next]

Copyright (c) 2001-2002 ばあど All Rights Reserved