Advertise Here

Author Topic: [Code] No Right Click  (Read 3190 times)

0 Members and 1 Guest are viewing this topic.

Offline Supernovadelta

  • SMF For Free Member
  • *
  • Posts: 92
  • Supernovadelta Productions.
    • View Profile
    • supernovadelta

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
[Code] No Right Click
« 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: [Select]
<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 »

Offline Kiwigold

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 20
    Badges: (View All)
    Apple User Search Poll Voter Level 4 Sixth year Anniversary
Re: [code]No Right Click[/code]
« 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.

 :)

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [code]No Right Click[/code]
« 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

Offline Kiwigold

  • SMF For Free Full Member
  • *
  • Posts: 172
    • View Profile

  • Total Badges: 20
    Badges: (View All)
    Apple User Search Poll Voter Level 4 Sixth year Anniversary
Re: [code]No Right Click[/code]
« Reply #3 on: June 16, 2008, 02:20:31 am »
Thanks Sibyl.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [code]No Right Click[/code]
« 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. 

Offline Supernovadelta

  • SMF For Free Member
  • *
  • Posts: 92
  • Supernovadelta Productions.
    • View Profile
    • supernovadelta

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [code]No Right Click[/code]
« Reply #5 on: June 16, 2008, 02:26:20 am »
Thank you for your comments.I'l be posting more Java scripts  :)

Offline atlantic reefer

  • SMF For Free Full Member
  • *
  • Posts: 187
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] No Right Click
« 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?
Shane
My Forums (still under construction) - , http://tropiccentral.smfforfree4.com/ <--- maintenance mode

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] No Right Click
« 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  ;)

Offline Drowning

  • SMF For Free Member
  • *
  • Posts: 41
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] No Right Click
« Reply #8 on: July 12, 2008, 07:04:20 pm »
People can still Ctrl C

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] No Right Click
« 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.  :-\


And I Play:  Mafia-Mandemz

Offline Celebrus

  • SMF For Free Hero
  • *
  • Posts: 941
    • View Profile
    • Vikhyat Korrapati

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] No Right Click
« 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'.

Offline Mayhem Maker

  • SMF For Free Full Member
  • *
  • Posts: 194
    • View Profile
    • Mayhem Maker's Forums!

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] No Right Click
« 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

Click the Banner above to go to the Best Forums in the world!

Offline Suki The Saluki

  • SMF For Free Sponsors
  • *
  • Posts: 827
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] No Right Click
« 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

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
3302 Views
Last post January 27, 2008, 10:08:47 am
by glough
3 Replies
7506 Views
Last post February 26, 2008, 05:02:24 am
by Qub1
0 Replies
558 Views
Last post March 08, 2008, 01:23:10 pm
by GamesGalore™
0 Replies
1110 Views
Last post May 07, 2008, 03:28:30 am
by iBella
10 Replies
2538 Views
Last post June 15, 2009, 08:53:59 am
by Games