View Full Version : Anyone know Javascript?


Rich
24-04-2005, 14:50
Hi.

I'm looking for a Javascript to disable right clicking on images for my site (see the link in my sig), does anyone know where I could get one or could someone write one for me?

Thanks in advance.

Rich

Postie. :shocked:

yammy
24-04-2005, 14:56
Rich

a copy and paste one is available here if this is any good

http://javascript.internet.com/page-details/no-right-click.html

underground1
24-04-2005, 14:59
Originally posted by Rich
Hi.

I'm looking for a Javascript to disable right clicking on images for my site (see the link in my sig), does anyone know where I could get one or could someone write one for me?

Thanks in advance.

Rich

Postie. :shocked:

Your pictures ca still be stolen with this code, because you can drag the photo onto your desktop. You can find lots of diffrent codes on this site.

http://www.boogiejack.com/

JoeP
24-04-2005, 15:05
Hi Rich,

As has been pointed out pictures can still be nicked even if you disable the right mouse click.

If you're concerned about stopping the images being ripped off then the best thing I can suggest is watermarking them; this won't stop them being borrowed but will certainly prevent them being displayed with impunity!

Joe

xafier
24-04-2005, 15:16
there are large number of ways to obtain the images from another site, the only way really is what Joe said and to put some sort of mark on them to stop people wanting to steal them...

then again, someone with good image skills could probably remove them and make it unnoticeable something was there... but then, why would they be stealing your pics if they were good? lol

anyways, other ways to steal images include, looking at the source code and just typing the images url into the url bar and saving it... browsing your tempory internet files... also those disable right click codes dont work 100% as there is a way round them...

you just left click on the "ok" button of the "right clicking has been disabled" prompt, hold it down and then quickly right click... that usually works :)

theres a way to get round everything with computers :)

Rich
24-04-2005, 15:25
Originally posted by JoePritchard
Hi Rich,

As has been pointed out pictures can still be nicked even if you disable the right mouse click.

If you're concerned about stopping the images being ripped off then the best thing I can suggest is watermarking them; this won't stop them being borrowed but will certainly prevent them being displayed with impunity!

Joe

And how would I do that Joe? Please explain in idiot proof language.. I'm no noob when it comes to computers but I'm only just learning HTML (teaching myself from practice and books).

JoeP
24-04-2005, 16:43
Hi Rich,

Well, you need a graphics package to start with - most of them support laying a watermark in and others allow you to write data in to the graphic that is invisible - you know where to find it and so you can prove the image is yours.

Something like Paint Shop Pro will do the job. However, I'm not a graphics specialist - I tend to use a graphics designer for my front end stuff unless I just need something 'quick and dirty'.

Of course, even after all this you still have to find people ripping off your images. Some folks are dim and deep link to your images - just keep an eye on your log files for gets that seem to only go to graphics files and that come from outside your own site.

alchresearch
26-04-2005, 11:26
Here's a tutorial for watermarking photos in PaintShop Pro:

http://www.grafx-design.com/24psp.html

...and one for Photoshop:

http://photoshop911.typepad.com/help/2004/04/watermarking_ph.html

This is a really good site for all kinds of tutorials:

http://www.good-tutorials.com/tutorials/2/60

There are lots of useful Javascripts at:

http://www.dynamicdrive.com

....including a few different ones for disabling the right-click. But, as has been pointed out you can still get the image by hovering over it until the picture toolbar appears, or copy the screen to the clipboard with the PRINT SCREEN button.

Rich
26-04-2005, 12:03
Thanks for all the help folks :thumbsup:

Captain_Scarlet
26-04-2005, 22:18
Originally posted by Rich
Hi.

I'm looking for a Javascript to disable right clicking on images for my site (see the link in my sig), does anyone know where I could get one or could someone write one for me?

Thanks in advance.

Rich

Postie. :shocked: I have that on my website to the dislike of many users.

Here is the script to include in the HEAD.

<SCRIPT language=Javascript1.2><!--
var mymessage = "YOUR COPYRIGHT MESSAGE";
function rtclickcheck(keyp){
if (navigator.appName == "Netscape" && keyp.which == 3) {
alert(mymessage);
return false;
}

if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {
alert(mymessage);
return false;
}
}

document.onmousedown = rtclickcheck
//--></SCRIPT>

Enjoy.

Originally posted by Rich
And how would I do that Joe? Please explain in idiot proof language.. I'm no noob when it comes to computers but I'm only just learning HTML (teaching myself from practice and books). By repeatedly right clicking and pressing ENTER on your keyboard you can over ride right clic scripts.
Also you can always 'view source' and get your pictures' URL.