Try this one... put it into /body/ section.
Code:
<body>
<body oncopy="return notcopy()">
<script language="JavaScript"><!--
var message='You can't copy this!'; function click(e)
{if (document.all) {if (event.button == 2) {alert(message);return false;}}
if (document.layers) {if (e.which == 3) {alert(message);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
function notcopy()
{
alert(message)
return false
}
// -->
</SCRIPT>
this one is also good against dragging the picture into the bar for copying...
I would recommend to put both of these codes together.
Code:
<SCRIPT LANGUAGE="JavaScript">
document.ondragstart = test;
//no dragging
document.onselectstart = test;
//no select
document.oncontextmenu = test;
//no context menu
function test() {
return false
}
</SCRIPT>
Bookmarks