I want to prevent (ie, not make easy) the right clicking of images. To that end I have installed no less than 5 'no right click' scripts; including Dynamic Drive's . The behavior is the same.![]()
When I right click on the DynamicDrive code page everything functions as expected. When I paste the code into the BODY of my FP2003 web page I keep activating the stupid IE Information bar. Yes, I can turn off the Information bar but what has me puzzled is why things work as expected on the code page but when copied into MY page, they don't.
Can anyone see the problem here?![]()
Thanks for looking.
Ron
Here is the code: (one picture and the 'no right click' script. )
====================================================
<head>
<meta http-equiv="Content-Language" content="en-us">
</head>
<p align="center">This is ben franklin</p>
<p align="center"><img border="0" src="BenFranklin.gif" width="99" height="126"></p>
<p align="center"> </p>
<body>
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
</body>



Reply With Quote


Bookmarks