rightclick

  • Thread starter Outlook dialing rules
  • Start date
R

Ronx

You can't. Modern browsers will (or can be set up to) ignore any script
that affects the right click context menu or the status bar. Anyway,
preventing right click does not affect the main browser menus.

Also see

http://www.digitalmidget.com/help/noclick/index.php

http://www.jamesshuggins.com/h/web1/how_do_i_stop_downloading.htm

http://www.jimcosoftware.com/protect.aspx

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Outlook dialing rules" <[email protected]>
wrote in message
 
R

Rob Giordano \(Crash\)

don't waste your time, it won't prevent anyone from copying your
images...all it does is piss people off that need/want to right click to
create shortcut to your pages..etc.

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





"Outlook dialing rules" <[email protected]>
wrote in message | how do I prevent rightclick on photos
 
J

JA

I use this. I hope this is the whole thing, if not, you can find it at the
site mentioned. It will only disable right-click on images, not the whole
page. If the user right-clicks on the image, they will get an alert popup.
You can change the message to whatever you want - in the quotes right after

var msg =


Of course, a savvy user can still get to the images, but it might help
somewhat. Put it in the head section of the pages you want it to work on.



<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, this image can not be saved.";
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.onmousedown = right;
document.images.onmouseup = right;
}
}
}
// End -->
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top