|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does any onw know how i can disable right clicking capabilities????
|
|
#2
|
||||
|
||||
|
i know what the code is but it is a big no no for having it on ur website cause there is other ways of getting to the source code for ur web pages but if u must have it, it is this code right here
Code:
<script language=JavaScript>
<!--
//
//
//
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.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")
// -->
</script>
|
|
#3
|
|||
|
|||
|
Thank you so much
Quote:
|
|
#4
|
||||
|
||||
|
no problem
|
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > No Right Click |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|