Have copyrights for the pictures on your web site?
Don't want visitors to be able to save them?
Copy and paste this simple code into your html pages
to disable your visitors right click mouse button.
Function: Disables right click mouse button
This JavaScript code disables the right click
of a surfers mouse. The code can be used to stop
unauthorized saving of pictures or viewing the source
code of your pages.
Note that JavaScript can be disabled within a
browser and effectively render this code useless.
The benefit of this code is to keep the 'average'
surfer from your materials.
To use this on your pages copy and paste from
<
SCRIPT> to </SCRIPT>
|
<HTML>
<HEAD>
<TITLE>Right Click Disabler</TITLE>
</HEAD>
<SCRIPT>
<!-- Change 'Disabler Active' with your own message
function click() {if (event.button==2) { alert('Disabler Active') } } document.onmousedown=click
// -->
</SCRIPT>
<BODY>
Right click your mouse to see the Disabler in action.
</BODY>
</HTML>
|