WebCamMask Patch for IE's "Save as"
Even though WebCamMask can prevent viewers that use Netscape to save your
webcam image into their hard drive by right click on the image and select "save
as", it can not do that for Internet Explore. In order to solve this problem you need to wrap WebCamMask
into a JavaScript that disables right click and doesn't display the image if the viewers
disables JavaScript execution from their browser.
Add this JavaScript somewhere in <HEAD> part of
your HTML code:
<script LANGUAGE="JavaScript">
<!-- Hide from older browsers
function CamImage(cyberxstreamurl)
{
document.write('<IMG HEIGHT=240 width=320 alt="Loading..." border=0
SRC="'+cyberxstreamurl+'"> ');
}
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("Protected with WebCamMask from CyberXstream.com"); return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script>
Replace:
<img
SRC="http://www.cyberxstream.com/wmask/cgi-bin/nph-mask.cgi?uid=XXXXXXXXX"
HEIGHT="240" width="320" alt="Loading..."
BORDER="0">
With:
<script LANGUAGE="JavaScript">
CamImage("http://www.cyberxstream.com/wmask/cgi-bin/nph-mask.cgi?uid=XXXXXXXXX")
</script>
|