On Friday 19 April 2002 02:25, Fifield, Mike wrote:
> This is not PHP so does not really belong here but since you asked. Here is
> a java script that will disable right clicking and display a copyright.
>
> <Script language='Javascript'>
> <!--
> var message='Copyright (c) 1999 Sakki.';
> 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>

It's probably a futile measure:

1) The pictures are probably cached on the hard disk somewhere.
2) In IE people can just save the page along with the images.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Statistics are no substitute for judgement.
                -- Henry Clay
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to