View Full Version: Right click on pic?

Forfeit The Game Linkin Park Forums > Question & Answer > Right click on pic?



Title: Right click on pic?


Linkin Lynn - December 28, 2003 11:16 PM (GMT)
How do you get the 'no right click on images' thing?

I want that for my message boards.

Sorry if I keep pestering, but I want my boards to be as good as this one! :D

7l-ll211l-l0l_l53 - December 29, 2003 12:06 AM (GMT)
if you still want it? here it is. Place this on your Board Wrappers - Javascript

CODE
<!---------------anti right click------------->
<HEAD>
<script LANGUAGE="JavaScript1.1">
<!-- Original:  Martin Webb (martin@irt.org) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
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("Sorry, you do not have permission to right click.");
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;
//  End -->
</script>
<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
<BODY>
<!---------------anti right click------------->

Dashino - December 29, 2003 12:24 PM (GMT)
QUOTE (Linkin Lynn @ Dec 28 2003, 11:16 PM)
How do you get the 'no right click on images' thing?

I want that for my message boards.

Sorry if I keep pestering, but I want my boards to be as good as this one! :D

Lol, there you go. :)

Can you please PM one of the admins in the future if you have any questions about the board wrappers instead of making a thread about it? ;)


*Closes Thread & Moves it to Question & Answer*




Hosted for free by InvisionFree