Disable right mouse click Disable right mouse click
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disable right mouse click

Started by football-pics.com, September 25, 2004, 12:45:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

football-pics.com

How can I disable this to prevent people from randomly downloading my pics? Is there any tool or code I can use or where do I have to install it?
On my old page a friend installed this

<!-- Begin
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
if (ns4up) {document.captureEvents(Event.MOUSEDOWN)}
document.onmousedown=taste
function taste(e) {
if (ns4up) {z=e.which}
if (ie4up) {z=event.button}
if (z>1) {
alert ("(c) Marc Schüler (GAMEDAY MEDIA SERVICES).Bei Interesse an einem Bild: foto@football-pics.com")
return false
}
}
// end -->

to prevent Downloads. But if I add it in displayimage.php it won´t work. HELP!!!
Thanks,
Marc

poubao

put it in your    ../theme/template.htm   ;)
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

football-pics.com

Got it... Thank you very much...
Marc

kiig

Where exactly in the template.html should  it go ??

I can see from your site, Marc, - that's it's working :-) did you do exactly this ??
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

kiig

#4
Got it, - think you code is missing a semicolon after : document.onmousedown=taste

It's working now, - thanx.

EDIT : removed the semicolon again, just to check it, - and it still works... must have made something else right :-) Your code contribution is right. Thanx.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Casper

@ football-pics.com

this is a very often asked, and answered question.  Please use the search facility before starting a new thread.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

PCGUY112887

Althougt this is sort of useless to disable right clicks now... in IE you just hovor over the image and usually a toolbar pops up allowing you to hit save.  And other browsers (like Firefox) just ignore it and let you right click anyways.

Tranz

People like to use right-click for myriads of other things, too, and it would be irritating to cripple such a functionality.