Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Re: Flash: Disable right-click
From: mholley
Date: Thu, 27 Jan 2000 15:33:09 GMT



I don't know if this will work or not because I haven't tried it yet. It is a
script that I got from "The Javascript Source" that is used to disable image
nabbing off of a web page.. These parameters will simply pop up a message box
saying that you can't use right-click, but I'm assuming you can modify it.
Would be curious to know if you get it to work.

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source! http://javascript.internet.com -->

<!-- Begin
function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName ==
'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}

function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = right;
}
// End -->
</SCRIPT>
Don't forget to add an onload function to your <BODY> tag and you'll be ready to
roll! *


* <BODY onLoad="trap()">



Hi there,

Is there any way of turning the right mouse click option off when the mouse
is over a flash movie in a web page under Windows?

Thanks

Paul





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Trapping clicks..., m i l e s l i g h t w o
  Re: FLASH: Re: Flash: Disable right-clic, 2Nerotik

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]