Kevin said:
Can you READ the page? The page Murray pointed out does not have a
right-click disabled feature on it. It has a don't-read learning disabled
feature on it. If you don't read it, you don't learn from it.
The view source for this page in Firefox:
http://www.digitalmidget.com/help/noclick/copy3.php
Gives me:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="
http://www.halfadot.com/favicon.ico" />
<meta name="robots" content="FOLLOW,INDEX" />
<meta name="REVISIT-AFTER" content="4 weeks" />
<meta name="copyright" content="Copyright 1999-2003, all rights
reserved. No part of this website may be reproduced in any way,
including graphics, text, coding, or presentation" />
<meta name="author" content="(e-mail address removed)" />
<meta name="owner" content="halfadot smallwebs - Andy Bowers" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="description" content="Cost-effective web development and web
design services - sensible solutions for small business from halfadot
smallwebs in Toronto, Canada" />
<meta name="Keywords" content="free web help, web design and
development, business web site, small business site, toronto, toronto
web design, business web page design, ontario, canada" />
<title>halfadot web design presents: no right clicks</title>
<link rel="stylesheet" href="../help.css" type="text/css" />
<script type="text/javascript" src="../halfadot.js"></script>
</head>
<body>
<table width="760" cellpadding="0" cellspacing="0" border="0"
align="center">
<tr>
<td width="100%"><a href="home.php"><img src='sitelogo.gif' width='340'
height='80' alt='you wish!' border='0' /></a></td>
<td width="150"><a href="
http://www.llamasery.com"
target="portfolio"><img src="../common/llama-banner.jpg" width="120"
height="60" hspace="15" alt="Llamasery Co-operative Web Forum"
border="0" /></a></td>
<td><script type="text/javascript" src="../banner.js"></script></td>
</tr>
</table>
<br />
<table width="760" cellpadding="0" cellspacing="0" border="0"
align="center">
<tr>
<td colspan="5"><img src="../common/help-table-top.gif" width="760"
height="22" border="0" alt="" /></td>
</tr>
<tr>
<td width="9" style="background:url(../common/help-table-edge.gif)">
<img src="../common/help-table-edge.gif" width="9" height="9" border="0"
alt="" />
</td>
<td width="13">
<img src="../common/clear.gif" width="9" height="1" border="0" alt="" />
</td>
<td valign="top" width="716">
<script language="JavaScript">
var msg="mouse right click disabled.\n\n(or any message you want)";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(msg);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(msg);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
<h1>More about how to protect your source.</h1>
<p>Click on the <b>View</b> button, then choose <b>Source</b>. What
appears seems to be blank [varies depending on your browser - so it's
not a very good 'protection' method] actually it isn't blank, it's a
normal html file with lots of white space added at the top. But, it
still isn't the source code for <b>this</b> page. That's because this
page of the demonstration uses frames .. and view source displays the
frameset html not the page html. So, remember frames as one method for
'protecting' your source code. In combination with the 'no right clicks'
scripts it takes protection a step further.
</p>
<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.\n\n(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>
<p>And you could use frames as well to prevent the code on your page
being viewable when the toolbar View button is used.</p>
<p>And if you really want to keep your images 'safe', use a graphics
editor to add your site URL to them. Why would someone want to re-use
an image on their site that obviously came from somewhere else?</p>
<h1>I don't want frames and/or I don't understand frames!!</h1>
<p>Well, if you don't understand frames this is as far as it's worth
going. Take that script and add it to your pages. </p>
<p>But if you want to go deeper into the realms of javascript so that
the toolbar disappears ... choose the next page. Are you sure your code
and images are really worth it?</p>
<h1>... so, the last question is ...</h1>
<p>What can I do to make it a bit more difficult??
<p class="small" align=right><A
HREF="copy2.php"><b>PREVIOUS</b></A> | <A
HREF="copy4.php"><b>NEXT</b></A></p>
</td>
<td width="13"><img src="../common/clear.gif" width="9" height="1"
border="0" alt="" />
<td width="9" style="background:url(../common/help-table-edge.gif)"><img
src="../common/help-table-edge.gif" width="9" height="9" border="0"
alt="" /></td>
</tr>
<tr>
<td colspan="5"><img src="../common/help-table-bottom.gif" width="760"
height="22" border="0" alt="" /></td>
</tr>
</table>
<table width="760" cellpadding="0" cellspacing="0" border="0"
align="center">
<tr>
<td>
<p class="foot"><br /><img src="../common/clear.gif" width="22"
height="10" border="0" alt="" />Copyright ©1999-2003 - <a
href="
http://www.halfadot.com" target="portfolio">halfadot
smallwebs</a>: all rights reserved.</p>
</td>
<td align="right" valign="bottom">
<a href="../index.php"><img src="../common/icon-help.gif" vspace="5"
border="0" alt="Help Site main page" /></a>
<a href="home.php"><img src="../common/icon-home.gif" vspace="5"
border="0" alt="Home" /></a>
<a href='../taf.php?id='><img src="../common/icon-taf.gif" border="0"
vspace="5" alt="" /></a>
<a href="../contact.php"><img src="../common/icon-contact.gif"
vspace="5" border="0" alt="Contact Us" /></a>
<a
href="
http://pub43.bravenet.com/guestbook/show.php?usernum=3678068255&cpv=2"><img
src="../common/icon-guestbook.gif" vspace="5" border="0" alt=""
/></a>
</td>
</tr>
</table>
</body>
</html>