Help
-
Search
-
Members
-
Calendar
Full Version:
any code for no right click?
Forums
>
Resource Center
>
Webmasters' Corner
>
Webmasters' Corner Resolved Topics
spiffeyxangel
Jun 1 2005, 07:24 PM
Does anybody know the code for not being able to right click? I want it for my site...
Spiffey.tk
...plz help.
Pulchritude
Jun 1 2005, 08:04 PM
You can try these
-
http://www.createblog.com/forums/index.php?showtopic=19872
^ that once disables highlighting and right clicking
-
http://www.createblog.com/forums/index.php?showtopic=54
^ thats a pop up.
For more scripts check out the xanga scripts
-
http://www.createblog.com/forums/index.php?showforum=3
talcumpowder
Jun 1 2005, 08:57 PM
For this first one, you can remove the ondragstart part to make it right-click only.
CODE
<body bgcolor="#FFFFFF"onselectstart="return false" oncontextmenu="return false">
miix-tape
Jun 2 2005, 02:32 AM
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// © 1998 barts1000
// barts1000@aol.com
//provided free at [url=http://www.lissaexplains.com]http://www.lissaexplains.com[/url]
// Don't delete this header!
var message="hey bitch, dun take my shit!."; // Message for the alert box
// Don't edit below!
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
[
please use a codebox for long scripts!
]
this worked for me, but sometimes it makes it so there's no right click for the whole page
The-Mach-Hare
Jun 4 2005, 07:58 PM
CODE
<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false" oncontextmenu="return false">
try that
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.