|
|
|||||||
|
Try using galleryimg="no" |
||||||||
|
|
|||||||
|
Thanks, but whereabouts do I put it? I've tried a few ways but without any luck. Your help would be truly appreciated! David |
||||||||
|
|
|||||||
|
The following javascript in your source code will bring up an alert box when the user right-clicks: Alt = "PUT YOUR ALERT WARNING IN HERE"; IsNS = navigator.appName=="Netscape" IsIE = navigator.appName=="Microsoft Internet Explorer" Ver = parseInt(navigator.appVersion) function DoIt(a) { if (IsNS&&a.which>1) { alert(Alt); return false } else if (IsIE&&(event.button >1)) { alert(Alt); return false; } } document.onmousedown = DoIt; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (IsNS&&Ver<5) window.onmousedown = DoIt; This code (unlike may others) will also work when the visitor holds down the left mouse button when right-clicking. The following meta tag will get rid of the image toolbar (put it in the head of your document): <meta http-equiv="imagetoolbar" content="no"> You can see them in action at http://www.lakelandscape.co.uk Hope this helps. Michael Sayles |
||||||||
|
|
|||||||
|
Thing is when you disable right click you also stop viewers from using the other items on the menu. This can loose potential return visits. Also, the viewer only has to use the View/source from the menu bar to see the source code anyway. If they want any graphics from the page they will perform a screen dump. All in all I don't see the point in disabling the right click. If you want to put the code in anyway, put into the body of the html. http://www.jonny555.co.uk The best amateur watercolour community on the net. |
||||||||
|
|
|||||||
|
It doesn't work, I can and have bypassed all such codes inside of a few seconds. The code runs once only until you reset the alert box. So leave the box open then click again, the alert fails. That's assuming enter+click together didn't break it first time anyway. Bottom line, you cannot protect pages this way, all elements are cached by the browser, so can be taken from there. You turn off caching, I'll bring in my tiny DOS downloader and steal the piccys that way, and unless you used server side code to stop it by naming my program, it will bypass anything you used to block with. If you did manage to block that, I'd do a screen dump then work with it to crop out the images, which you can never stop. The general rule is, if you don't want it taking, don't put it up there. safeTsurfa Stay alert! Stay safe! Stay alive! |
||||||||
|
|
|||||||
|
Yes, I know the only way to prevent image 'theft' is to not put them up there in the first place, and I know all methods have their weaknesses. But putting up an alert box when the user right-clicks acts as a reminder that the images are copyrighted. If this doesn't stop people from taking the images then OK, but it can be used as evidence that visitors were alerted to the presence of copyright in any dispute. Plus, a lot of web-users aren't aware of the various ways around a disabled right-click - I asked some colleagues how they'd copy an image off a website if they couldn't right-click and they didn't know how. So if the code stops one person from stealing a pic then it's worth it. Not everybody surfing the www is a web-wizard. |
||||||||
|
|
|||||||
|
"So leave the box open then click again, the alert fails. That's assuming enter+click together didn't break it first time anyway" The code above works even when the visitor holds down the left button when right-clicking - this is effectively exactly the same as enter+click! As for leaving the box open and clicking again - I've tried and I don't see how the alert fails? You can't do anything until you OK the alert. |
||||||||
|
|
|||||||
|
All you need to do to make people aware the website content is copyrighted is to place a copyright marking at the bottom of each page, just like at the bottom of this and every Web-User page. My site carries lots of paintings and each one is signed to establish copyright and each page has the copyright warning. http://www.jonny555.co.uk The No.1 amateur watercolour community on the net. |
||||||||
|
|
|||||||
|
Set up a page for me to test? I visited that lakeland site that was cited, and took three sample images from there using the method I described. So either the code does indeed fail, or the example given was a poor one. :) safeTsurfa Stay alert! Stay safe! Stay alive! |
||||||||
|
|
|||||||
|
OK, explain EXACTLY how you took the images from the site, because doing what you described above doesn't work. |
||||||||
|
|
|||||||
|
Defeating scripts like that is no mystery... it's just that it's not exactly common knowledge. Some work better than others and that particular one can be defeated just by keeping the right mouse button depressed while canceling out the pop-up with the left. All you can do is to try and make it less easy (for want of a better phrase) for your visitors to take them or make them less attractive by adding you site URL on an important part of the image. You're never going to stop everyone from taking your images but you will stop a few that way. My own favourite methods are to put a transparent image over the top of the main image so that they save nothing, or splitting up the image into small sections with a program like Splitz... http://www.b-zone.de/software/splitz.htm That way they'll just save a little bit of the image unless they do a screen grab... and most people wouldn't even know that they hadn't got the whole thing until they went back to the image later. Just my 2 pence worth :) |
||||||||
|
|
|||||||
|
you might find this interesting http://www.web-wise-wizard.com/javascript-tutorials/disable-right-click.html This also explains disable printing , disable copy and paiste, redirecting those who disable javascript so they can get to your stuff, diabling context menu, disabling image bar etc etc |
||||||||
|
|
|||||||
|
I'm sure there must be a good reason for resurrecting a two year old thread but I can't quite see what it is. In any case the link has the following at the top Quote: which seems to repeat the advice already given, if you don't want people to copy your images, don't put them on the Web in the first place. |
||||||||
|
|
|||||||
Quote: They're little devils those context menus.
|
||||||||
|
|
|||||||
|
I thought it was only me and Fusion who had nothing better to do on Christmas Day. Why haven't you started drinking yet? |
||||||||
|
|
|||||||
|
Bah, Humbug!! ![]() I know it's an abomination for someone not to drink in this country these days, but I don't (apart from the occasional glass of red or port). I did enough drinking in my teens and 20's to last a lifetime. However, that's not to say I have no vices or bad habits.
|
||||||||
|
|
|||||||
|
Funny you should say that. Now I've reached the grand old age of 62 more than one glass of red wine sends me to sleep! Like you, I had my fill in my early years. Can't see the point now. |
||||||||
|
|
|||||||
|
I had a glass of Baileys last night and discovered I can no longer take a drink! Extremely annoying as I love the taste of Baileys.
|