SMF For Free Support Forum
Signup For Free Forum
September 08, 2008, 05:11:18 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] No Right Click  (Read 725 times)
0 Members and 1 Guest are viewing this topic.
Supernovadelta
SMF For Free Full Member
*
Offline Offline

Posts: 106


Supernovadelta Productions.


View Profile WWW
« on: June 16, 2008, 01:58:21 am »

No Right Click
Hello beloved people of SMF here is another Java code for all you.
What this code allows you to do is,when ever a person on your site trys to right click,a pop up will automaticly come and say (CopyRight Info)

This is a very helpful code for disabling plagerism.
Here is a preview:
http://i25.tinypic.com/34j2o29.jpg

And here is the code:
Code:
<script language="JavaScript">
<!--
/*
No rightclick script v.2.5
(c) 1998 barts1000
barts1000@aol.com
Don't delete this header!
*/

var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED";

// 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>

If you get any unexpected errors please comment,and i'l try to help you out.

Thank you for your time.
« Last Edit: June 16, 2008, 02:25:52 am by simply sibyl » Logged

Kiwigold
SMF For Free Member
*
Offline Offline

Posts: 98


View Profile
« Reply #1 on: June 16, 2008, 02:12:07 am »

Nice,

Please excuse me for not knowing, but where would we place this code.

Thanks.

 Smiley
Logged
simply sibyl
not a dude
Global Moderator
*
Offline Offline

Posts: 8034


Don't PM me for Support


View Profile WWW
« Reply #2 on: June 16, 2008, 02:19:06 am »

I just want to add a heads up that if you use this code -- when you want to right mouse click to copy and paste in your admin panel in the edit header/footer area, or the css area you will not be able to do so.   You'll have to use Ctrl-C and Ctrl-V on your keyboard
Logged

Kiwigold
SMF For Free Member
*
Offline Offline

Posts: 98


View Profile
« Reply #3 on: June 16, 2008, 02:20:31 am »

Thanks Sibyl.
Logged
simply sibyl
not a dude
Global Moderator
*
Offline Offline

Posts: 8034


Don't PM me for Support


View Profile WWW
« Reply #4 on: June 16, 2008, 02:24:23 am »

Thanks Sibyl.

np Kiwigold.  Just wanted to be sure everyone knows it'll disable right mousing everywhere on your forum - Admin Panel - posts - everywhere. 
Logged

Supernovadelta
SMF For Free Full Member
*
Offline Offline

Posts: 106


Supernovadelta Productions.


View Profile WWW
« Reply #5 on: June 16, 2008, 02:26:20 am »

Thank you for your comments.I'l be posting more Java scripts  Smiley
Logged

atlantic reefer
SMF For Free Full Member
*
Offline Offline

Posts: 187



View Profile WWW
« Reply #6 on: June 16, 2008, 09:04:27 am »

just got a quick question - i haven't added this code to my forums yet but does this work on firefox too?
Logged

Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode
simply sibyl
not a dude
Global Moderator
*
Offline Offline

Posts: 8034


Don't PM me for Support


View Profile WWW
« Reply #7 on: June 16, 2008, 09:48:00 am »

just got a quick question - i haven't added this code to my forums yet but does this work on firefox too?

I just tried it and it works in IE but not in Firefox.
I know there are some out there that do work in Firefox.   A Google search would most likely find one.
Non-solicited comment:
There IS no real way to completely prevent anyone from taking images from a site.   All disabling right mouse click does is takes away one way of doing it  Wink
Logged

Drowning
SMF For Free Member
*
Offline Offline

Posts: 41


View Profile
« Reply #8 on: July 12, 2008, 07:04:20 pm »

People can still Ctrl C
Logged
LaundryLady
Global Moderator
*
Offline Offline

Posts: 3045



View Profile WWW
« Reply #9 on: July 13, 2008, 11:44:50 am »

WARNING!!

There are some "disable right click" codes out there that will not allow you to get back into your admin section.  Be very careful using these codes.
* LaundryLady speaks from embarrassing personal experience.  Undecided
Logged

Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 758


Previously known as Omikron


View Profile WWW
« Reply #10 on: July 14, 2008, 04:38:05 am »

I don't think these codes are worth using. They can cause a lot of inconvenience to you and your members while doing very little to actually prevent 'plagiarism'.
Logged

Mayhem Maker
SMF For Free Full Member
*
Offline Offline

Posts: 199



View Profile WWW
« Reply #11 on: July 21, 2008, 12:10:38 am »

Ugh,I wish You could add disable right click for certain boards,because i don't want the whole forum to be copyrighted or whatever,but nice anyways.
very nice :0
Logged


Click the Banner above to go to the Best Forums in the world!
Agent Z ™
SMF For Free Sponsors
*
Offline Offline

Posts: 410



View Profile
« Reply #12 on: August 02, 2008, 08:18:30 am »

I like it i used it then removed it. it gets on your nerves sometimes LOL
Logged

Agent Z

Ready to help Smiley


Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.255 seconds with 16 queries.