PDA

View Full Version : Disable right click script III



jimk
10-10-2004, 11:57 AM
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?

cr3ative
10-10-2004, 01:13 PM
You mean one of these?

http://www.dynamicdrive.com/dynamicindex9/noright.htm

cr3ative

jimk
10-10-2004, 01:47 PM
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.

cr3ative
10-10-2004, 02:22 PM
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

jimk
10-10-2004, 03:13 PM
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

cr3ative
10-10-2004, 03:33 PM
krautlarger@charter.net is an email address.. what what?

cr3ative

jimk
10-10-2004, 03:54 PM
OK, I have attached a zip file to this message.
Jim

cr3ative
10-10-2004, 04:43 PM
Your bitmaps are invalid.. *sigh*

cr3ative

simonf
10-11-2004, 03:05 AM
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

jimk
10-11-2004, 11:39 AM
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.

simonf
10-12-2004, 12:25 PM
HI Jimk

Strange as it works on mine, please can you check as I'm running I.E6

http://www.smos.co.za

rgds,Simonf :eek: