Ive used the protect script to stop people clicking on my images and saving them.
This has stoped the javascript menu i have on the same page from working. The mouse over events work but when you click on one of the images it does nothing.
Ive used the following protection script.
<!– TWO STEPS TO INSTALL PROTECT IMAGES:
1. Copy the coding into the HEAD of your HTML document2. Add the onLoad event handler into the BODY tag –>
<!– STEP ONE: Paste this code into the HEAD of your HTML document –>
<HEAD>
<SCRIPT LANGUAGE=”JavaScript”>
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
function protect(e) {
alert(“Sorry, you don’t have permission to right-click.”);
return false;
}
function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = protect;
}
// End –>
</SCRIPT>
<!– STEP TWO: Insert the onLoad event handler into your BODY tag –>
<BODY OnLoad=”trap()”>
<p><center>
<font face=”arial, helvetica” size=”-2″>Free JavaScripts provided<br>
by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>
</center><p>
<!– Script Size: 0.81 KB –>
It apears that the script has taken over the left as well as the right hand clicks.
Can any one see how I can fix this?