You are here: Re: Disable right click - and source code view « HTML « IT news, forums, messages
Re: Disable right click - and source code view

Posted by techfiddle on 11/01/06 02:14

richard wrote:
> Unless you personally took the image with your own camera, you do not own
> rights to that image.

I paid someone to take the image. So I think I own the rights to it.

This block of code may work:

<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com)
//For full source code, visit http://www.dynamicdrive.com

var message="Sorry This function is disabled. The graphics and script
on this page are not Public Domain and are not available for download
or use.";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>


Not sure, about to try it. Which is from:

http://www.sheilascorner.com/sheila.shtml

Sheila's code is a total mystery to me.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация