Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

disable right click

0 views
Skip to first unread message

OrangeAnts

unread,
Feb 19, 2001, 11:15:22 PM2/19/01
to
How do i do it so tat no 1 can save the pic on my homepage?

peter.stocks

unread,
Feb 20, 2001, 3:01:01 AM2/20/01
to
<SCRIPT TYPE="text/javascript">
<!--
var msg = "Right-Click Disabled";
if(document.layers) window.captureEvents(Event.MOUSEDOWN);

function no_click(e){
if (navigator.appName == 'Netscape' && ( e.which == 2 || e.which == 3))
{
alert(msg);return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button ==
2 || event.button == 3))
{
alert(msg);return false;
}
}
window.onmousedown=no_click;
document.onmousedown=no_click;
//-->
</SCRIPT>

The above will disable right-click.

However, the determined viewer can still get your pictures easily enough.
You can't stop them.

Pete

"OrangeAnts" <ah...@pacific.net.sg> wrote in message
news:96srot$885$4...@newton.pacific.net.sg...

Shane

unread,
Feb 20, 2001, 4:36:00 PM2/20/01
to
There is not way to do that. Even if you could disable right click,
once it is viewd it
is most assuridly in the Cache of the viewer. It's one of the hazzards
of revealing yourself on the Net ;)

--
"Everyone has a right to be stupid. Some just abuse the privilege."
http://www.shanebrain.com

0 new messages