SweetIlluzionz
04-13-2003, 11:17 PM
Ok i have a right block click on my site CLICK HERE (http://sour-apple.tk) But if someone really wanted my graphics all they had to do was open 2 windows(restored,Not maximized), one with my website, one with nothing in it, or a default website or what have they, drag my images to the window, and its there. How can i stop that? Please Help
MaGiCSuN
04-14-2003, 04:52 PM
here is a script that prevents dragging:
http://www.xs4all.nl/~ppk/js/improt.html
Love,
Mirna
designhazard
05-15-2003, 09:26 AM
but they can click on View -> View Source and search on the image link and copy and paste it into the toolbar. they can also steal it!
SSPrincess
05-15-2003, 12:40 PM
Actually there is a code that stops that, along with right clicking:
<script language="JavaScript1.2">
//original author unknown
//modified by, and displayed on www.a1javascripts.com
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//-->
</script>
However, the simplest way to copying things is to select everything and then hitting, Ctrl + C and there's no way to block that...:(