preCharge Forums - View Single Post - Website for a book
View Single Post
Old 08-24-2006   #6 (permalink)
scoooooty
Senior Member
 
scoooooty's Avatar
 
Join Date: Aug 2006
Location: Victoria Australia
Age: 22
Posts: 360
Send a message via MSN to scoooooty
Default Re: Website for a book

This simple Java script will stop people from right click on your images and saving them. But they can allways do it other ways.

Place in the <head>

Code:
<script language="JavaScript"> <!--
// No rightclick script v.2.5
// (c) 1998 barts1000
// barts1000@aol.com
// Don't delete this header!

var message="Sorry, that function is disabled.\n\nContents & Graphics Copyright ©your name\nOur work is not Public Domain, and should NOT be taken from this site."; // Message for the alert box

// Don't edit below!

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;
// --> </script>
__________________
www.tutocity.com - Free Website Templates And Tutorials - www.tutocity.com
scoooooty is offline   Reply With Quote

 
Bankruptcy | Mobile Phone | Advertising | Bad Credit Mortgages | Free Ringtones