News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Protect Your Web Page Content

Started by vinod, July 21, 2006, 12:07:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vinod

This script will discourage the more novice Internet users from copying your content. An alert box will appear displaying your copyright information when the right mouse button is clicked. This script will not completely protect your content from more experienced users.

Copy and Paste the following code into the BODY of your web page. Insert your own copyright information where indicated in red.



<SCRIPT language="JavaScript">
<!-- Script courtesy of You are not allowed to view links. Register or Login - Your Guide to Professional Web Site Design and Development
var message="Copyright 2000 by Your Site. WARNING ! All content contained within this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
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;
// -->
</SCRIPT>