<script type="text/javascript">
<!--
var closeWin="1"; // Do you want to close window (1 for yes 0 for no)
var alertVis="1"; // Do you want to alert the visitor (1 for yes 0 for no)
var message="Right click disabled on images!"; // Your no right click message this line
/*
Disable right click script (Annoy-Close)
*/
function detail(){
if(alertVis == "1") alert(message);
alert("You like to right click?")
alert("How about left clicking?")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
alert("Left Click!")
if(closeWin == "1") self.close();
return false;
}
function IE() {
if (event.button == "2" || event.button == "3"){detail();}
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all)){
if (e.which == "2" || e.which == "3"){ detail();}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>
Page 1 of 1
Disable Right Click With 2 Twists
#1
Posted 24 July 2010 - 10:16 PM
This is to be added in the <Body> section of your webpage. Someone right clicks on your webpage they are givin annoying alert messages on the last alert the webpage auto closes.
#2
Posted 24 July 2010 - 11:09 PM
Very pointless!!! If someone wants to steal an image or view source etc., that code aint gonna stop them!!!
#3
Posted 24 July 2010 - 11:57 PM
i agree one of the most annoying things webmasters do to their sites. but to each their own.
#4
Posted 25 July 2010 - 05:43 AM
Hahaha ya both of you are right but i was bored & thought of this annoying idea.
#5
Posted 25 July 2010 - 06:12 AM
i'm sure someone will find it useful.. lots of ppl still like to do it.
#7
Posted 25 July 2010 - 10:34 PM
View > Source 
Also, this won't work if someone doesn't have Javascript enabled.
Also, this won't work if someone doesn't have Javascript enabled.

I don't get paid to know the answer, therefore I'm far more likely to give you a straight and honest answer.
#8
Posted 26 July 2010 - 02:21 AM
Some sites have IonCube so alot of times View -> Source aint gonna work either.. but supposively that aint fool proof either..
Share this topic:
Page 1 of 1
Help




















