-
Disable right click script III
This script works fine in Netscape but MSIE ignors it, is there a way to get this or some other script to work in MSIE?
-
-
-
-
Hello,
Yes, like the one you provided, however, I pasted the code from yours and it does not work in MSIE either. Works fine in Netscape.
Any other suggestions?
Jim K.
-
-
That's very odd. Very odd indeed. Post screenshots.
Host them at imageshack.us if you can.
Usually no-right-clicks don't work in netscape but do in IE, not t'other way round.
cr3ative
-
-
Ok, I am not familiar with imageshack but I think I was successful in uploading a screen.zip file at the following location: krautlarger@charter.net's Images
In the zip file are two screen shots, one from each browser.
I hope this is what you want and will help. I would send the page but it appears that I cannot attach an html file.
Jim
-
-
krautlarger@charter.net is an email address.. what what?
cr3ative
-
-
OK, I have attached a zip file to this message.
Jim
-
-
Your bitmaps are invalid.. *sigh*
cr3ative
-
-
Hi
Try this
<SCRIPT language=JavaScript1.1>
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("All Content Copyright Your Company Name");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</SCRIPT>
rgds,Simonf
-
-
Sorry Simonf,
Neither browser recognizes your script, both allow a right click.
Thanks for trying, I need all the help I can get.
Jim K.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks