Log in

View Full Version : Right Clicking Code



aaronaz
24-09-2005, 06:06 PM
Hi

Who knows the code to stop right clicking ?

Thanks
Adam

Mentor
24-09-2005, 06:08 PM
Some frank advice:
Unless you want to look like a complet and utter n00b, who hasnt got a clue, dont use the right click code, anyone with an IQ higher than a salid can get past it, and it just ****es off normal users.

aaronaz
24-09-2005, 06:12 PM
I was only asking, dont post if your gonna be rude.

nelly
24-09-2005, 06:12 PM
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus ([email protected]) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
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>
Hi

Who knows the code to stop right clicking ?

Thanks
Adam

aaronaz
24-09-2005, 06:14 PM
Thanks Nelly :D

Mentor
24-09-2005, 06:24 PM
Well if your gona ignor good advice and make your site look n00bish as possible you may as well have some dignty and not use a rediculy huge code for such a simple task

<body oncontextmenu="return false">

replace the body tag "/

I dont know why i even both trying to give people useful advice, seeing as none one even takes notice "/

Carlos
24-09-2005, 06:27 PM
Yea it easy to get past it.

splintercell!
24-09-2005, 07:21 PM
Mentor is absolutely right Right click blockers are annoying and in no way stop people ripping your stuff "/

redtom
24-09-2005, 08:36 PM
yeh there just a waist of time

GommeInc
24-09-2005, 08:41 PM
I hate sites with them on and end up not visiting them ever again.

splintercell!
24-09-2005, 08:45 PM
pretty much because when Im browsing I love to right click stuff for fun ;) Not hear a dam bleeping noise :s

Printings
24-09-2005, 08:46 PM
Hey You!, :) The actual code is

<script LANGUAGE="JavaScript">
<!--
function click() {
if (event.button==2) {
alert('Habbox has disabled right-clicking.');
}
}
document.onmousedown=click
// -->
//-->
</script>
Thanks Again, Sam

GommeInc
24-09-2005, 08:47 PM
pretty much because when Im browsing I love to right click stuff for fun ;) Not hear a dam bleeping noise :s
I like that too, my fetish with things randomly popping up must be kept in working order!

splintercell!
24-09-2005, 08:50 PM
lol ;) Printings Mentor has already given him the most efficient code which dosent waste need less space and dosent include and annoying alert "/

nets
24-09-2005, 10:04 PM
I can't see why you would want to put that on your site.

Carlos
24-09-2005, 10:07 PM
I can't see why you would want to put on on your site.

Me neither, I think they make sites look bad. :p

aaronaz
24-09-2005, 10:22 PM
Ive been reading what you have said. And im not gonna put it on my site cause theres not much point.

Carlos
24-09-2005, 10:23 PM
Ive been reading what you have said. And im not gonna put it on my site cause theres not much point.

Ok then.

Sygon
25-09-2005, 07:36 AM
Mentor is absolutely right Right click blockers are annoying and in no way stop people ripping your stuff "/

This is true, but why right click any way to see the popup? only people who want to see the popup would right click and there are no ways to get round a good combanation of right click and <body> scripts, but as you said you content can still get ripped. But if you do want the no right click script it is best to get the one without the message, and <body oncontextmenu="returnfalse"> stops right cliks but if its image based a little bar will come up t6o save this image :p, and nelly whoa that no right click was long just shorten it delete the junk or shorten it in flash action script.

Mentor
25-09-2005, 12:05 PM
This is true, but why right click any way to see the popup? only people who want to see the popup would right click and there are no ways to get round a good combanation of right click and <body> scripts,
Yes there are? simply disable javascript for exsample, and you dont even need to to rip a site, sorce can be accessed from the toolbar, and keyboard shortcuts anyway, and images are already in the cache "/

/Rossco\
25-09-2005, 12:13 PM
habbox has disabled right clicking on the main site at parts i'm sure??

Mentor
25-09-2005, 12:15 PM
They have? it dosnt stop people riping, annoys a few other people, and makes a few think its a site full of clueless noobs, and who dont return again, but they still have it "/ (And not just that, they also have a pointless and useless load of javascript rather than a simple clean one "/ )

Kardan
25-09-2005, 12:23 PM
Simple to get past it ;)

/Rossco\
25-09-2005, 12:58 PM
yeh its true. on the habbox main site evry page has right clkicking disabled. u not gona visit habbox anymore lol

i also see how it is easy to get past lol. thts just stupid. y make a code that is THAT easy to get past lol:-P


<script LANGUAGE="JavaScript">
function click() {
if (event.button==2) {
alert('Habbox has disabled right-clicking');
}

Mentor
25-09-2005, 03:41 PM
yeh its true. on the habbox main site evry page has right clkicking disabled. u not gona visit habbox anymore lol

i also see how it is easy to get past lol. thts just stupid. y make a code that is THAT easy to get past lol:-P
I dont go on the habbo site anyway lol, its boring since i dont go on habbo, i just like the forum

splintercell!
25-09-2005, 04:16 PM
same :D I think in habbox's case it sometimes serves a purpose because of the sheer amount of noobs that visit and try to rip images etc and because they have no knowledge of how to "use a computer" they cant think of anyother way to do it ;) But other than that its really annoying.

Want to hide these adverts? Register an account for free!