HTML NO RIGHT CLICK

Does anyone know any method of such on preventing right click?

Ive tried using javascript :

var message = "function disabled";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } }
document.onmousedown = rtclickcheck;

But it doesnt work, any other ways?
Appreciate any help.
Edited Jun 17 at 8:32 AM
mscg
MSCG
Jun 17 at 8:30 AM
You can copy mine on http://ore-sama.org/naruto/boss.htm if you want. It works fine and you can customize the message. I do think it's a different code.
Edited Jun 17 at 12:25 PM
Ore-sama
Money's Grave - Mother's Grief
Jun 17 at 12:24 PM
That would be great. I entered your site, theres a hitler looking pics of Kakashi lolz...

Can you send me the html code here or through my feedback email? thanks.

Many appreciation.
mscg
MSCG
Jun 17 at 1:47 PM
ore-sama used this long javascript:

--
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("eloim_essaim@hotmail.com.");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
--

you have to change the alert-tag with your own email address or what ever else you want it to say ... (and of course add the javascript-tags around it ... could not add it in this forum)

but I know an easier way ... I always add to my body-tag this additions:

oncontextmenu="return false" ondragstart="return false" onselectstart="return false" onunload="return false"

all 4 things are helping to protect ... but if someone wants to take something from a page there will ever be a way ... so it's all only a nice try ... (^_~) ...

[color=#ff3355]Zetsu[/color]
Edited Jun 17 at 2:48 PM
Zetsuai
Zetsu's Cel Gallery
Jun 17 at 2:44 PM
Cheers Zetsu.

But I still cant get the no right click thing working.

Copy & pasting onto text menu just doesnt work.
I guess I'll just leave it...

But i truely appreciate you taking the time trying to help me out ^^
mscg
MSCG
Jun 18 at 2:06 PM
Welcome! Login or Register