PDA

View Full Version : IE 6 Information Bar error w/ no right click



synergy46
03-15-2005, 07:04 AM
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. :confused:

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? :eek:

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">&nbsp;</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>

jscheuer1
03-15-2005, 09:22 AM
This generally only happens locally, have you tried uploading the file to your server and viewing it there?

cr3ative
03-15-2005, 01:40 PM
No-right click scripts are useless.

If I can see your image, I can grab it. Via at least 5 means.

Just my two cents.
-cr3