Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This article contains information about protecting the images on your website.

Follow the directions below.

<h1>And here is the 'no right clicks' script.</h1>
<p>You can stop right clicks with a script (copy and paste it from this page if you want to) in the HEAD section of your page.</p>

<p><font color="#cc0000">

<script type="text/javascript"><BR><BR>

var msg="mouse right click disabled.nn(or any message you want)";<BR><BR>

function click(e) {<BR>
if (document.all) {<BR>
if (event.button == 2) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
if (e.which == 3) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
document.captureEvents(Event.MOUSEDOWN);<BR>
}<BR>
document.onmousedown=click;<BR><BR>

</script><BR></font></p>

There is no content with the specified labels

  • No labels