|
No Right Click Code(modified,codes made by vkey)
1. put this code in MEDIA part
<div id="vkey"></div>
2. then this codes in css part
#vkey {
height:expr/**/ession(var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false"));
}
For further questions just post here for reply. this codes are really working i dont understand it is not working in others page.
WORKS ONLY IN INTERNET EXPLORER AND NETSCAPE. NOT WORKING IN MOZILLA and SOME BROWSER
__________________
ABANDONED
Last edited by alamatski; 04-08-2006 at 07:25 PM.
Reason: not working
|