Otuatail wrote in message ...
I used this javascript below on one of my 'hobby' sites as lots of
people were 'Hotlinking' to the images in message-forums.
It's not perfect but it's cured the 'Hotlinking' problem. It's only
placed on the "Enlarged images" pages if you want to try it here at
...
http://www.Gilera-Nexus.co.uk - Just alter the text to suit
your own requirements.
<script type="text/javascript">
<!--
var ErrMsg = "Please do not 'Hotlink' to these images";
function disableRightClick (btnClick)
{
if (navigator.appName == "Netscape" && btnClick.which == 3)
{
alert(ErrMsg);
return false;
}
else if (navigator.appName == "Microsoft Internet Explorer" &&
event.button == 2)
{
alert(ErrMsg);
return false;
}
}
document.onmousedown = disableRightClick;
-->
</script>
Cheers ..... Trevor, Bristol, UK.
http://www.OnMyWindow.co.uk