»
AnglaisFran�aisVietnamien

Imprimer - Cliquez sur l'image n'a pas le droit - JavaScriptBank.com

Version compl�te: jsB@nk » Snippet » Cliquez sur l'image n'a pas le droit
URL: https://www.javascriptbank.com/no-rightclick-image.html

Cliquez sur l'image n'a pas le droit © JavaScriptBank.comCet JavaScript permet de désactiver clic droit sur les images.

Version compl�te: jsB@nk » Snippet » Cliquez sur l'image n'a pas le droit
URL: https://www.javascriptbank.com/no-rightclick-image.html



JavaScript
<script type="text/javascript"><!-- Begin// Created by: Bethan :: http://www.freewebs.com/bdude183/imagething.htmfunction whichElement(event) {  var tname  tname=event.srcElement.tagName  if (event.button==2 && tname=="IMG"){pressed="picture"}  if (pressed=="picture")  {window.alert("Hey! Stop trying to steal my images!")}  pressed=0}//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<img src="../../jsbsource/gif_logojsb2.gif" border="0" onmousedown="whichElement(event)"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->