// PROTECT IMAGES SCRIPT by Square Plugins document.oncontextmenu = function(e){ var target = (typeof e !="undefined")? e.target: event.srcElement if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) return false } window.onload = function () { var images = document.getElementsByTagName('IMG'); for (var i = 0; img = images[i++];) { img.ondragstart = function() { return false; }; } };