RE: hwg-basics-digest V1 #874
by Chris Kasper <CKasper(at)softad.com>
|
| Date: |
Tue, 22 May 2001 16:57:14 -0400 |
| To: |
"'hwg-basics(at)mail.hwg.org'" <hwg-basics(at)mail.hwg.org> |
| |
todo: View
Thread,
Original
|
|
Jennifer,
There are many such scripts out there that will disable the right-click
function through JavaCcript. One such is:
<script language="Javascript1.2">
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
The problem is that these scripts are not foolproof. Surfers can get the
image by typing the complete path to the image (then only the image loads in
the browser and NOT the JavaCcript that protects it). The can retrieve it
from their cache. They can use a program such as WebZip that downloads
entire sites. Or they can simply disable JavaScript in their browser.
As long as images need to be displayed through a web browser, there will be
a way for people to save and/or steal them.
HTH,
Chris M. Kasper
Associate Web Engineer
The SoftAd Group, Inc.
ckasper(at)softad.com
"We should develop anti-satellite weapons because we could not have
prevailed without them in 'Red Storm Rising'." -- Senator Dan Quayle,
9/6/88
---- ORIGINAL MESSAGE ----
> Date: Tue, 22 May 2001 09:41:26 -0700
> From: jenniferwynell <jennw(at)jenniferwynell.com>
> Subject: Re: website with code?
>
> Which leads me to a silly question... I had heard that there was a
javascript
> (I've never seen one) but I've heard there is a javascript that would keep
the
> user from right-clicking on an image to save it. And if there is one, why
don't
> more people use it. But then I suppose there are other ways to get an
image if
> you really want it... like "Print Screen".
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.